From b99139814d33aaac51aa22445618a754b7d3a918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=B3nst=C3=A5nt=C3=AEn=20Ob=C3=A9nland?= Date: Sat, 17 Feb 2018 04:41:58 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/ajax-actions.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index ab521ba0ad..7945bc4157 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -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 ) {