cron_request

過濾鉤子
引數
  • (array) $cron_request_array { An array of cron request URL arguments. @type string $url The cron request URL. @type int $key The 22 digit GMT microtime. @type array $args { An array of cron request arguments. @type int $timeout The request timeout in seconds. Default .01 seconds. @type bool $blocking Whether to set blocking for the request. Default false. @type bool $sslverify Whether SSL should be verified for the request. Default false. } }
    Required:
    Default:
  • (string) $doing_wp_cron The unix timestamp of the cron lock.
    Required:
定義位置
相關勾子
requestparse_requestcron_schedulespre_http_requestdo_parse_request
相關方法
rest_do_requestwp_favicon_requestwp_remote_requestwp_is_json_requestrest_ensure_requestwp_is_jsonp_request
引入
4.5.0
棄用
-

cron_request是一個過濾器鉤子,它允許你在發出cron請求時修改傳遞給wp_remote_post函式的引數。你可以使用這個鉤子來新增或刪除引數,例如超時值,來定製cron請求。

過濾cron請求的引數。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$cron_request = apply_filters(
$cron_request = apply_filters(
$cron_request = apply_filters(

常見問題

FAQs
檢視更多 >