Astra_Edd_Shop_Single_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Easy Digital Downloads shop single 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-shop-single-configs.php
public function register_configuration( $configurations, $wp_customize ) {
$_configs = array(
/**
* Option: Enable Ajax add to cart.
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[disable-edd-single-product-add-to-cart]',
'default' => astra_get_option( 'disable-edd-single-product-add-to-cart' ),
'type' => 'control',
'section' => 'section-edd-single',
'title' => __( 'Disable Add To Cart Button', 'astra-addon' ),
'divider' => array( 'ast_class' => 'ast-bottom-divider' ),
'priority' => 18,
'control' => Astra_Theme_Extension::$switch_control,
),
/**
* Option: EDD Product Title Typography
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-typo]',
'default' => astra_get_option( 'edd-single-product-title-typo' ),
'type' => 'control',
'control' => 'ast-settings-group',
'title' => __( 'Product Title Font', 'astra-addon' ),
'section' => 'section-edd-single',
'transport' => 'postMessage',
'priority' => 233,
'divider' => array( 'ast_class' => 'ast-top-divider' ),
),
/**
* Option: EDD Product Content Typography
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-typo]',
'default' => astra_get_option( 'edd-single-product-content-typo' ),
'type' => 'control',
'control' => 'ast-settings-group',
'title' => __( 'Product Content Font', 'astra-addon' ),
'section' => 'section-edd-single',
'transport' => 'postMessage',
'priority' => 233,
),
);
$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. |