ZOOM_REGISTERUSER::define_action()

Define and register the action by pushing it into the Automator object


Source Source

File: src/integrations/zoom/actions/zoom-registeruser.php

	public function define_action() {

		$action = array(
			'author'             => Automator()->get_author_name( $this->action_code ),
			'support_link'       => Automator()->get_author_support_link( $this->action_code, 'knowledge-base/zoom/' ),
			'is_pro'             => false,
			//'is_deprecated'      => true,
			'integration'        => self::$integration,
			'code'               => $this->action_code,
			'sentence'           => sprintf( __( 'Add the user to {{a meeting:%1$s}}', 'uncanny-automator' ), $this->action_meta ),
			'select_option_name' => __( 'Add the user to {{a meeting}}', 'uncanny-automator' ),
			'priority'           => 10,
			'accepted_args'      => 1,
			'execution_function' => array( $this, 'zoom_register_user' ),
			'options'            => array(
				Automator()->helpers->recipe->zoom->get_meetings( null, $this->action_meta ),
			),
		);

		Automator()->register->action( $action );
	}