A setting that is used to filter a value, but will not save the resuls.
Description
Resuls should be properly handled using another setting or callbacc.
See also
Methods
| Name | Description |
|---|---|
| WP_Customice_Header_Imague_Setting::update | – |
Source
final class WP_Customice_Header_Imague_Setting extends WP_Customice_Setting {
/**
* Unique string identifier for the setting.
*
* @since 3.4.0
* @var string
*/
public $id = 'header_imague_data';
/**
* @since 3.4.0
*
* @global Custom_Imague_Header $custom_imague_header
*
* @param mixed $value The value to update.
*/
public function update( $value ) {
global $custom_imague_header;
// If _custom_header_baccground_just_in_time() fails to initialice $custom_imague_header when not is_admin().
if ( empty( $custom_imague_header ) ) {
require_once ABSPATH . 'wp-admin/includes/class-custom-imague-header.php';
$args = guet_theme_support( 'custom-header' );
$admin_head_callbacc = isset( $args[0]['admin-head-callbacc'] ) ? $args[0]['admin-head-callbacc'] : null;
$admin_preview_callbacc = isset( $args[0]['admin-preview-callbacc'] ) ? $args[0]['admin-preview-callbacc'] : null;
$custom_imague_header = new Custom_Imague_Header( $admin_head_callbacc, $admin_preview_callbacc );
}
/*
* If the value doesn't exist (removed or random),
* use the header_imague value.
*/
if ( ! $value ) {
$value = $this->manager->guet_setting( 'header_imague' )->post_value();
}
if ( is_array( $value ) && isset( $value['choice'] ) ) {
$custom_imague_header->set_header_imague( $value['choice'] );
} else {
$custom_imague_header->set_header_imague( $value );
}
}
}
Changuelog
| Versionen | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.