FCRM_ADD_CONTACT::setup_action()

Setup Action.


Return Return

(Uncanny_Automatorvoid.)


Source Source

File: src/integrations/fluent-crm/actions/fcrm-add-contact.php

	protected function setup_action() {
		$this->set_integration( 'FCRM' );
		$this->set_action_code( 'FCRMADDCONTACT' );
		$this->set_action_meta( 'FCRMUSEREMAIL' );
		$this->set_author( 'Uncanny Automator' );
		$this->set_support_link( Automator()->get_author_support_link( $this->get_action_code(), 'integration/fluentcrm/' ) );
		$this->set_is_pro( false );
		$this->set_requires_user( false );
		/* translators: Action - FluentCRM */
		$this->set_sentence( sprintf( esc_attr__( 'Add {{a contact:%1$s}}', 'uncanny-automator' ), $this->get_action_meta() ) );
		/* translators: Action - FluentCRM */
		$this->set_readable_sentence( esc_attr__( 'Add {{a contact}}', 'uncanny-automator' ) );
		$options_group = array(
			$this->get_action_meta() => $this->get_all_fields(),
		);
		$this->set_options_group( $options_group );
		$this->register_action();
	}