WP_Customize_Manager::refresh_nonces
Refreshes nonces for the current preview.
Method of the class: WP_Customize_Manager{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->refresh_nonces();
Changelog
| Since 4.2.0 | Introduced. |
WP_Customize_Manager::refresh_nonces() WP Customize Manager::refresh nonces code WP 7.0
public function refresh_nonces() {
if ( ! $this->is_preview() ) {
wp_send_json_error( 'not_preview' );
}
wp_send_json_success( $this->get_nonces() );
}