Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
AC_USER_ADD_TAG::setup_action()

Setup Action.

Contents


Return Return

(Uncanny_Automatorvoid.)


Source Source

File: src/integrations/active-campaign/actions/ac-user-add-tag.php

	protected function setup_action() {
		$this->set_integration( 'ACTIVE_CAMPAIGN' );
		$this->set_action_code( $this->prefix . '_CODE' );
		$this->set_action_meta( $this->prefix . '_META' );
		$this->set_is_pro( false );
		$this->set_requires_user( true );
		/* translators: Action - WordPress */
		$this->set_sentence( sprintf( esc_attr__( 'Add {{a tag:%1$s}} to the user', 'uncanny-automator' ), $this->get_action_meta() ) );
		/* translators: Action - WordPress */
		$this->set_readable_sentence( esc_attr__( 'Add {{a tag}} to the user', 'uncanny-automator' ) );
		$options_group = array(
			$this->get_action_meta() => array(
				array(
					'option_code'           => $this->get_action_meta(),
					/* translators: Email field */
					'label'                 => esc_attr__( 'Tag', 'uncanny-automator' ),
					'input_type'            => 'select',
					'supports_custom_value' => false,
					'required'              => true,
					'is_ajax'               => true,
					'endpoint'              => 'active-campaign-list-tags',
					'fill_values_in'        => $this->get_action_meta(),
				),
			),
		);
		$this->set_options_group( $options_group );
		$this->register_action();
	}