Warning: This method has been deprecated.

Automator_Recipe_Process_User::insert_trigger( $user_id = null,  $trigger_id = null,  $recipe_id = null,  $completed = false,  $recipe_log_id = null )

Insert trigger for the user


Parameters Parameters

$user_id

(Optional)

Default value: null

$trigger_id

(Optional)

Default value: null

$recipe_id

(Optional)

Default value: null

$completed

(Optional)

Default value: false

$recipe_log_id

(Optional)

Default value: null


Top ↑

Return Return

(int|null)


Source Source

File: src/core/lib/process/class-automator-recipe-process-user.php

	public function insert_trigger( $user_id = null, $trigger_id = null, $recipe_id = null, $completed = false, $recipe_log_id = null ) {
		if ( defined( 'AUTOMATOR_DEBUG_MODE' ) && true === AUTOMATOR_DEBUG_MODE ) {
			_doing_it_wrong( 'Automator()->insert_trigger()', 'User Automator()->db->trigger->add() instead', '3.0' );
		}

		return Automator()->db->trigger->add( $user_id, $trigger_id, $recipe_id, $completed, $recipe_log_id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.