FACEBOOK_GROUP_PUBLISH_PHOTO::get_options_group()
Returns the list of options for our action.
Return Return
(array) The fields.
Source Source
File: src/integrations/facebook-groups/actions/facebook-group-publish-photo.php
public function get_options_group() { $facebook_groups = Automator()->helpers->recipe->facebook_groups->options; return array( $this->get_action_meta() => array( Automator()->helpers->recipe->facebook_groups->options->get_groups_field( $this->get_action_meta() ), array( 'option_code' => 'FACEBOOK_GROUPS_PUBLISH_PHOTO_IMAGE_URL', /* translators: Email field */ 'label' => esc_attr__( 'Image URL', 'uncanny-automator' ), 'placeholder' => esc_attr__( 'https://examplewebsite.com/path/to/image.jpg', 'uncanny-automator' ), 'input_type' => 'url', 'required' => true, 'description' => esc_attr__( 'Enter the URL of the image you wish to share. The URL must be publicly accessible.', 'uncanny-automator' ), ), array( 'option_code' => 'FACEBOOK_GROUPS_PUBLISH_MESSAGE', /* translators: Email field */ 'label' => esc_attr__( 'Message', 'uncanny-automator' ), 'placeholder' => esc_attr__( 'The context of the image or description.', 'uncanny-automator' ), 'input_type' => 'textarea', ), ), ); }
Expand full source code Collapse full source code View on Github