customize_save_validation_before WordPress Action Hook

The customize_save_validation_before hook is called before changes are saved to the database. This hook can be used to validate settings before they are saved.

do_action( 'customize_save_validation_before', WP_Customize_Manager $manager ) #

Fires before save validation happens.


Description

Plugins can add just-in-time ‘customize_validate_{$this->ID’} filters at this point to catch any settings registered after customize_register. The dynamic portion of the hook name, $this->ID refers to the setting ID.


Top ↑

Parameters

$manager

(WP_Customize_Manager)WP_Customize_Manager instance.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More