Astra_Global_Misc_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )

Register Astra Global Misc 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: inc/customizer/configurations/global-misc/class-astra-global-misc-configs.php

	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 );
	}

Changelog

Changelog
Version Description
4.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.