Action_Setup::register_action()
Define and register the action by pushing it into the Automator object
Source Source
File: src/core/lib/recipe-parts/actions/trait-action-setup.php
protected function register_action() { $action = array( 'author' => $this->get_author(), 'support_link' => $this->get_support_link(), 'integration' => $this->get_integration(), 'is_pro' => $this->is_is_pro(), 'is_deprecated' => $this->is_is_deprecated(), 'code' => $this->get_action_code(), 'sentence' => $this->get_sentence(), 'select_option_name' => $this->get_readable_sentence(), 'execution_function' => array( $this, 'do_action' ), ); if ( ! empty( $this->get_options() ) ) { $action['options'] = $this->get_options(); } if ( ! empty( $this->get_options_group() ) ) { $action['options_group'] = $this->get_options_group(); } $action = apply_filters( 'automator_register_action', $action ); Automator()->register->action( $action ); }
Expand full source code Collapse full source code View on Github