Trigger_Setup::add_action( $action, int $priority = 10, int $args = 1 )


Parameters Parameters

$action

(Required)

$priority

(int) (Optional)

Default value: 10

$args

(int) (Optional)

Default value: 1


Source Source

File: src/core/lib/recipe-parts/triggers/trait-trigger-setup.php

	protected function add_action( $action, int $priority = 10, int $args = 1 ) {
		$this->set_action_hook( $action );
		$this->set_action_priority( $priority );
		$this->set_action_args_count( $args );
	}