ActionScheduler_DBStore::get_args_for_query()protectedWC 1.0

Get action args query param value from action args.

Method of the class: ActionScheduler_DBStore{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_args_for_query( $args );
$args(array) (required)
Action args.

ActionScheduler_DBStore::get_args_for_query() code WC 8.7.0

protected function get_args_for_query( $args ) {
	$encoded = wp_json_encode( $args );
	if ( strlen( $encoded ) <= static::$max_index_length ) {
		return $encoded;
	}
	return $this->hash_args( $encoded );
}