customize_refresh_nonces filter-hook . WP 4.2.0
Filters nonces for Customizer.
Usage
add_filter( 'customize_refresh_nonces', 'filter_function_name_3470', 10, 2 ); function filter_function_name_3470( $nonces, $this ){ // filter... return $nonces; }
- $nonces(string[])
- Array of refreshed nonces for save and preview actions.
- $this(WP_Customize_Manager)
- WP_Customize_Manager instance.
Changelog
Since 4.2.0 | Introduced. |
Where the hook is called
customize_refresh_nonces
wp-includes/class-wp-customize-manager.php 4759
$nonces = apply_filters( 'customize_refresh_nonces', $nonces, $this );
Where in WP core the hook is used WordPress
wp-includes/class-wp-customize-manager.php 59
add_filter( 'customize_refresh_nonces', array( $this, 'filter_nonces' ) );
wp-includes/class-wp-customize-manager.php 120
add_filter( 'customize_refresh_nonces', array( $this, 'refresh_nonces' ) );