Automattic\WooCommerce\Internal\TransientFiles
TransientFilesEngine::handle_query_vars()
Handle the "query_vars" action, add the "wc-transient-file-name" variable for the "wc/file/transient" endpoint.
Метод класса: TransientFilesEngine{}
Хуков нет.
Возвращает
Массив
. The updated query variables.
Использование
$TransientFilesEngine = new TransientFilesEngine(); $TransientFilesEngine->handle_query_vars( $vars );
- $vars(массив) (обязательный)
- The original query variables.
Код TransientFilesEngine::handle_query_vars() TransientFilesEngine::handle query vars WC 9.6.1
public function handle_query_vars( $vars ) { $vars[] = 'wc-transient-file-name'; return $vars; }