Warning: This method has been deprecated.

Automator_Functions::maybe_create_recipe_log_entry( int $recipe_id, int $user_id, bool $create_recipe = true, array $args = array(), bool $maybe_simulate = false, null $maybe_add_log_id = null )


Parameters Parameters

$recipe_id

(int) (Required)

$user_id

(int) (Required)

$create_recipe

(bool) (Optional)

Default value: true

$args

(array) (Optional)

Default value: array()

$maybe_simulate

(bool) (Optional)

Default value: false

$maybe_add_log_id

(null) (Optional)

Default value: null


Top ↑

Return Return

(array)


Source Source

File: src/core/lib/class-automator-functions.php

	public function maybe_create_recipe_log_entry( $recipe_id, $user_id, $create_recipe = true, $args = array(), $maybe_simulate = false, $maybe_add_log_id = null ) {
		if ( defined( 'AUTOMATOR_DEBUG_MODE' ) && true === AUTOMATOR_DEBUG_MODE ) {
			_doing_it_wrong( 'maybe_create_recipe_log_entry', 'Please use Automator()->process->user->maybe_create_recipe_log_entry() instead.', 3.0 );
		}

		return $this->process->user->maybe_create_recipe_log_entry( $recipe_id, $user_id, $create_recipe, $args, $maybe_simulate, $maybe_add_log_id );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0 This method has been deprecated.
2.0 Introduced.