wp_refresh_nonces

過濾鉤子
apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id )
引數
  • (array) $response The Heartbeat response.
    Required:
  • (array) $data The $_POST data sent.
    Required:
  • (string) $screen_id The screen ID.
    Required:
定義位置
相關勾子
wp_preload_resourceswp_resource_hintswp_redirectwp_feed_optionswp_verify_nonce_failed
相關方法
wp_refresh_post_nonceswp_refresh_heartbeat_nonceswp_create_noncewp_refresh_post_lockwp_refresh_metabox_loader_nonceswp_verify_nonce
引入
4.3.0
棄用
-

wp_refresh_nonces:這是 WordPress 中的一個函式,它的作用是重新整理頁面中的 nonce 值。Nonce 是一個單次使用的令牌,用於驗證某個請求是否合法。使用這個函式可以在頁面中更新 nonce 的值,以保證請求的安全性。

過濾傳送至”新建/編輯文章”螢幕的非程式碼。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );

常見問題

FAQs
檢視更多 >