Astra_Edd_Single_Colors_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Easy Digital Downloads Shop Single Color Layout Configurations.
Description
Parameters
- $configurations
-
(Array) (Required) Astra Customizer Configurations.
- $wp_customize
-
(WP_Customize_Manager) (Required) instance of WP_Customize_Manager.
Return
(Array) Astra Customizer Configurations with updated configurations.
Source
File: addons/edd/classes/sections/class-astra-edd-single-colors-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Single Product Title Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-color]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'edd-single-product-title-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Product Title', 'astra-addon' ), 'priority' => 231, ), /** * Single Product Content Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-color]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'edd-single-product-content-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Product Content', 'astra-addon' ), 'priority' => 231, ), /** * Single Product Breadcrumb Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-navigation-color]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'edd-single-product-navigation-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[disable-edd-single-product-nav]', 'operator' => '!=', 'value' => '1', ), ), 'transport' => 'postMessage', 'title' => __( 'Product Navigation', 'astra-addon' ), 'priority' => 231, ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.6.10 | Introduced. |