Astra_Pro_Upgrade_Link_Configs::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Button Customizer 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/astra-pro/class-astra-pro-upgrade-link-configs.php
public function register_configuration( $configurations, $wp_customize ) { $_configs = array( array( 'name' => 'astra-pro', 'type' => 'section', 'ast_type' => 'astra-pro', 'title' => esc_html__( 'More Options Available in Astra Pro!', 'astra' ), 'pro_url' => htmlspecialchars_decode( astra_get_pro_url( 'https://wpastra.com/pricing/', 'customizer', 'upgrade-link', 'upgrade-to-pro' ) ), 'priority' => 1, 'section_callback' => 'Astra_Pro_Customizer', ), array( 'name' => ASTRA_THEME_SETTINGS . '[astra-pro-section-notice]', 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-hidden', 'section' => 'astra-pro', 'priority' => 0, ), ); return array_merge( $configurations, $_configs ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.4.3 | Introduced. |