BDB_ADDTOGROUP::define_action()
Define and register the action by pushing it into the Automator object
Source Source
File: src/integrations/buddyboss/actions/bdb-addtogroup.php
public function define_action() { $bp_group_args = array( 'uo_include_any' => false, 'status' => array( 'public', 'hidden', 'private' ), ); $action = array( 'author' => Automator()->get_author_name(), 'support_link' => Automator()->get_author_support_link( $this->action_code, 'integration/buddyboss/' ), 'integration' => self::$integration, 'code' => $this->action_code, /* translators: Action - BuddyBoss */ 'sentence' => sprintf( esc_attr__( 'Add the user to {{a group:%1$s}}', 'uncanny-automator' ), $this->action_meta ), /* translators: Action - BuddyBoss */ 'select_option_name' => esc_attr__( 'Add the user to {{a group}}', 'uncanny-automator' ), 'priority' => 10, 'accepted_args' => 1, 'execution_function' => array( $this, 'add_to_bb_group' ), 'options' => [ Automator()->helpers->recipe->buddyboss->options->all_buddyboss_groups( null, 'BDBGROUPS', $bp_group_args ), ], ); Automator()->register->action( $action ); }
Expand full source code Collapse full source code View on Github