Populate_From_Query::maybe_update_trigger( $trigger_id )

Decides if trigger needs a value.


Parameters Parameters

$trigger_id

(Required)


Top ↑

Return Return

(bool)


Source Source

File: src/core/classes/class-populate-from-query.php

	public static function maybe_update_trigger( $trigger_id ) {
		$trigger_value = self::query_args_exist( array( 'optionCode', 'optionValue', 'optionValue_readable' ) );
		if ( $trigger_value ) { // Check if trigger value needs to be populated
			self::add_trigger_value( $trigger_id );
			self::publish_trigger( $trigger_id );
		}
		return true;
	}