Astra_Theme_Extension::astra_addon_quick_settings( array $quick_settings = array() )
Modified Astra Quick settings links update based on the activated plugins
Description
Parameters
- $quick_settings
-
(array) (Optional) quick settings list.
Default value: array()
Return
(array) $quick_settings Updated quick settings list.
Source
File: classes/class-astra-theme-extension.php
public function astra_addon_quick_settings( $quick_settings = array() ) { $enabled_extensions = Astra_Ext_Extension::get_addons(); // Update the quick setting link for header group. $headers_addons = array( 'header-sections', 'transparent-header', 'sticky-header' ); foreach ( $enabled_extensions as $addon_slug => $value ) { if ( ! in_array( $addon_slug, $headers_addons ) || ! Astra_Ext_Extension::is_active( $addon_slug ) ) { continue; } $quick_settings['header']['quick_url'] = admin_url( 'customize.php?autofocus[panel]=panel-header-group' ); } return $quick_settings; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.2.1 | Introduced. |