FACEBOOK_GROUP_PUBLISH_LINK::setup_action()

Setups our action.


Return Return

(void)


Source Source

File: src/integrations/facebook-groups/actions/facebook-group-publish-link.php

	public function setup_action() {

		$this->set_action_code( self::CODE );

		$this->set_action_meta( self::META );

		$this->set_integration( self::INTEGRATION );

		$this->set_is_pro( false );

		$this->set_support_link( Automator()->get_author_support_link( $this->get_action_code(), 'knowledge-base/facebook-groups' ) );

		$this->set_requires_user( false );

		/* translators: Action - WordPress */
		$this->set_sentence(
			/* translators:The action sentence */
			sprintf( esc_attr__( 'Share a link with a message to {{a Facebook group:%1$s}}', 'uncanny-automator' ), $this->get_action_meta() )
		);

		/* translators: Action - WordPress */
		$this->set_readable_sentence(
			esc_attr__(
				'Share a link with a message to {{a Facebook group}}',
				'uncanny-automator'
			)
		);

		$this->set_buttons(
			Automator()->helpers->recipe->facebook_groups->options->buttons(
				$this->get_action_meta(),
				automator_utm_parameters( $this->get_support_link(), 'facebook-group_publish_post', 'help_button' )
			)
		);

		$this->set_options_group( $this->get_options_group() );

		$this->register_action();

	}