customize_refresh_nonces
Filter HookDescription
Filters nonces for Customizer.Hook Information
File Location |
wp-includes/class-wp-customize-manager.php
View on GitHub
|
Hook Type | Filter |
Line Number | 4807 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$nonces
|
Array of refreshed nonces for save and preview actions. |
WP_Customize_Manager
|
$manager
|
WP_Customize_Manager instance. |
Usage Examples
Basic Usage
<?php
// Hook into customize_refresh_nonces
add_filter('customize_refresh_nonces', 'my_custom_filter', 10, 2);
function my_custom_filter($nonces, $manager) {
// Your custom filtering logic here
return $nonces;
}
Source Code Context
wp-includes/class-wp-customize-manager.php:4807
- How this hook is used in WordPress core
<?php
4802 *
4803 * @param string[] $nonces Array of refreshed nonces for save and
4804 * preview actions.
4805 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
4806 */
4807 $nonces = apply_filters( 'customize_refresh_nonces', $nonces, $this );
4808
4809 return $nonces;
4810 }
4811
4812 /**
PHP Documentation
<?php
/**
* Filters nonces for Customizer.
*
* @since 4.2.0
*
* @param string[] $nonces Array of refreshed nonces for save and
* preview actions.
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/class-wp-customize-manager.php
Related Hooks
Related hooks will be displayed here in future updates.