wppaste
WordPress

apply_filters( 'wp_refresh_nonces', array $response, array $data, string $screen_id )

Since
4.3.0
Filters the nonces to send to the New/Edit Post screen.

Parameters

$responsearray
The Heartbeat response.
$dataarray
The $_POST data sent.
$screen_idstring
The screen ID.

Fired at · 1

  • wp-admin/includes/ajax-actions.php:3494wp_ajax_heartbeat()

Source

		 * @since 4.3.0		 *		 * @param array  $response  The Heartbeat response.		 * @param array  $data      The $_POST data sent.		 * @param string $screen_id The screen ID.		 */		$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id ); 		if ( false === $nonce_state ) {			// User is logged in but nonces have expired.			$response['nonces_expired'] = true;			wp_send_json( $response );		}

History

Introduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.