Automattic\WooCommerce\Internal\TransientFiles

TransientFilesEngine::handle_query_varspublicWC 1.0

Handle the "query_vars" action, add the "wc-transient-file-name" variable for the "wc/file/transient" endpoint.

Method of the class: TransientFilesEngine{}

No Hooks.

Returns

Array. The updated query variables.

Usage

$TransientFilesEngine = new TransientFilesEngine();
$TransientFilesEngine->handle_query_vars( $vars );
$vars(array) (required)
The original query variables.

TransientFilesEngine::handle_query_vars() code WC 9.9.4

public function handle_query_vars( $vars ) {
	$vars[] = 'wc-transient-file-name';
	return $vars;
}