WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1085 | * |
| 1086 | * Plugins can add just-in-time {@see 'customize_validate_{$this->ID}'} filters |
| 1087 | * at this point to catch any settings registered after `customize_register`. |
| 1088 | * The dynamic portion of the hook name, `$this->ID` refers to the setting ID. |
| 1089 | * |
| 1090 | * @since 4.6.0 |
| 1091 | * |
| 1092 | * @param WP_Customize_Manager $this WP_Customize_Manager instance. |
| 1093 | */ |
| 1094 | do_action( 'customize_save_validation_before', $this ); |
| 1095 | |
| 1096 | // Validate settings. |
| 1097 | $setting_validities = $this->validate_setting_values( $this->unsanitized_post_values() ); |
| 1098 | $invalid_setting_count = count( array_filter( $setting_validities, 'is_wp_error' ) ); |
| 1099 | $exported_setting_validities = array_map( array( $this, 'prepare_setting_validity_for_js' ), $setting_validities ); |
| 1100 | if ( $invalid_setting_count > 0 ) { |
| 1101 | $response = array( |
| 1102 | 'setting_validities' => $exported_setting_validities, |
| 1103 | 'message' => sprintf( _n( 'There is %s invalid setting.', 'There are %s invalid settings.', $invalid_setting_count ), number_format_i18n( $invalid_setting_count ) ), |