FACEBOOK_GROUP_PUBLISH_LINK::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-link.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_LINK_URL',
					'label'                 => esc_attr__( 'External link URL', 'uncanny-automator' ),
					'placeholder'           => esc_attr__( 'https://', 'uncanny-automator' ),
					'description'           => esc_attr__( "Enter the URL of the site you want to share to your Facebook Group. Start with 'https://' to share an external link.", 'uncanny-automator' ),
					'input_type'            => 'url',
					'supports_custom_value' => false,
					'required'              => true,
				),
				array(
					'option_code' => 'FACEBOOK_GROUPS_PUBLISH_LINK_MESSAGE',
					'label'       => esc_attr__( 'Message', 'uncanny-automator' ),
					'input_type'  => 'textarea',
					'required'    => true,
				),
			),
		);
	}