WF_SETUSERTAG::define_action()
Define and register the action by pushing it into the Automator object
Source Source
File: src/integrations/wp-fusion/actions/wf-setusertag.php
public function define_action() { $action = array( 'author' => Automator()->get_author_name(), 'support_link' => Automator()->get_author_support_link( $this->action_code, 'integration/wp-fusion/' ), 'integration' => self::$integration, 'code' => $this->action_code, /* translators: Action - WP Fusion */ 'sentence' => sprintf( esc_attr__( 'Add {{a tag:%1$s}} to the user', 'uncanny-automator' ), $this->action_meta ), /* translators: Action - WP Fusion */ 'select_option_name' => esc_attr__( 'Add {{a tag}} to the user', 'uncanny-automator' ), 'priority' => 11, 'accepted_args' => 3, 'execution_function' => array( $this, 'set_user_tag' ), 'options' => [ Wp_Fusion_Helpers::fusion_tags( '', $this->action_meta ), ], ); Automator()->register->action( $action ); }
Expand full source code Collapse full source code View on Github