BDB_USERSENTINVITE::define_trigger()

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


Source Source

File: src/integrations/buddyboss/triggers/bdb-usersentinvite.php

	public function define_trigger() {

		$trigger = array(
			'author'              => Automator()->get_author_name( $this->trigger_code ),
			'support_link'        => Automator()->get_author_support_link( $this->trigger_code, 'integration/buddyboss/' ),
			'integration'         => self::$integration,
			'code'                => $this->trigger_code,
			'sentence'            => __( 'A user sends an email invitation', 'uncanny-automator' ),
			'select_option_name'  => __( 'A user sends an email invitation', 'uncanny-automator' ),
			'action'              => 'bp_member_invite_submit',
			'priority'            => 10,
			'accepted_args'       => 2,
			'validation_function' => array( $this, 'bp_core_activated_user' ),
			'options'             => array(),
		);
		Automator()->register->trigger( $trigger );
	}