Astra_Global_Misc_Configs
Register Astra Global Misc Configurations.
Description
Source
File: inc/customizer/configurations/global-misc/class-astra-global-misc-configs.php
class Astra_Global_Misc_Configs extends Astra_Customizer_Config_Base { /** * Register Astra Global Misc Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 4.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Scroll to id. */ array( 'name' => ASTRA_THEME_SETTINGS . '[enable-scroll-to-id]', 'default' => astra_get_option( 'enable-scroll-to-id' ), 'type' => 'control', 'control' => 'ast-toggle-control', 'title' => __( 'Enable Smooth Scroll to ID', 'astra' ), 'section' => 'section-global-misc', 'priority' => 10, ), ); return array_merge( $configurations, $_configs ); } }
Expand full source code Collapse full source code View on Trac
Methods
- register_configuration — Register Astra Global Misc Configurations.