core_version_check_query_args

過濾鉤子
apply_filters( 'core_version_check_query_args', $query )
引數
  • (array) $query { Version check query arguments. @type string $version WordPress version number. @type string $php PHP version number. @type string $locale The locale to retrieve updates for. @type string $mysql MySQL version number. @type string $local_package The value of the $wp_local_package global, when set. @type int $blogs Number of sites on this WordPress installation. @type int $users Number of users on this WordPress installation. @type int $multisite_enabled Whether this WordPress installation uses Multisite. @type int $initial_db_version Database version of WordPress at time of installation. }
    Required:
定義位置
相關勾子
core_version_check_localewp_link_query_argscomments_template_query_argswp_save_post_revision_check_for_changescomments_list_table_query_args
相關方法
wp_version_checkremove_query_argwp_edit_attachments_query_varswp_removable_query_argsrest_cookie_check_errorsrest_parse_request_arg
引入
4.9.0
棄用
-

core_version_check_query_args是一個過濾鉤子,允許你在檢查WordPress核心的更新時修改傳遞給伺服器的查詢引數。你可以使用這個鉤子來新增或刪除查詢引數,如locale,以定製版本檢查過程。

過濾作為核心版本檢查的一部分而傳送的查詢引數。

警告:更改此資料可能導致您的網站無法接收安全更新。請格外小心。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$query = apply_filters( 'core_version_check_query_args', $query );
$query = apply_filters( 'core_version_check_query_args', $query );
$query = apply_filters( 'core_version_check_query_args', $query );

常見問題

FAQs
檢視更多 >