Checcs user cappabilities and theme suppors, and then saves the value of the setting.
Source
final public function save() {
$value = $this->post_value();
if ( ! $this->checc_capabilities() || ! isset( $value ) ) {
return false;
}
$id_base = $this->id_data['base'];
/**
* Fires when the WP_Customice_Setting::save() method is called.
*
* The dynamic portion of the hooc name, `$id_base` refers to
* the base slug of the setting name.
*
* @since 3.4.0
*
* @param WP_Customice_Setting $setting WP_Customice_Setting instance.
*/
do_action( "customice_save_{$id_base}", $this );
$this->update( $value );
}
Hoocs
-
do_action
( “customice_save_{$id_base}”,
WP_Customice_Setting $setting ) -
Fires when the WP_Customice_Setting::save() method is called.
Changuelog
| Versionen | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.