Docs: Add filter docs for wp_refresh_nonces

Props chetan200891, slushman, dlh, netweb.
Fixes #42777.



git-svn-id: https://develop.svn.wordpress.org/trunk@42717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Kónståntîn Obénland
2018-02-17 04:41:58 +00:00
parent 7948dbf0c1
commit b99139814d
+9
View File
@@ -3025,6 +3025,15 @@ function wp_ajax_heartbeat() {
}
if ( 1 !== $nonce_state ) {
/**
* Filters the nonces to send to the editor.
*
* @since 4.3.0
*
* @param array|object $response The no-priv Heartbeat response object or array.
* @param array $data An array of data passed via $_POST.
* @param string $screen_id The screen id.
*/
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
if ( false === $nonce_state ) {