Astra_Customizer_Register_Edd_Section::get_upgrade_nudge_config( string $name, string $section, array $args = array() )
Build the EDD “upgrade to Pro” nudge config shared across EDD sections.
Description
Parameters
- $name
-
(string) (Required) Setting name suffix used inside ASTRA_THEME_SETTINGS[...].
- $section
-
(string) (Required) Customizer section the nudge belongs to.
- $args
-
(array) (Optional) overrides. Supported keys: 'divider'. Pass an empty array for 'divider' to omit it.
Default value: array()
Return
(array) Nudge configuration ready to be registered with the customizer.
Source
File: inc/compatibility/edd/customizer/class-astra-customizer-register-edd-section.php
public static function get_upgrade_nudge_config( $name, $section, $args = array() ) {
return array_merge(
array(
'name' => ASTRA_THEME_SETTINGS . '[' . $name . ']',
'type' => 'control',
'control' => 'ast-upgrade',
'campaign' => 'edd',
'section' => $section,
'default' => '',
'priority' => 999,
'title' => __( 'Selling Digital Products?', 'astra' ),
'description' => __( 'Optimize your store for revenue growth with Business Toolkit!', 'astra' ),
'choices' => array(
'one' => array(
'title' => __( 'Pre-designed EDD templates', 'astra' ),
),
'two' => array(
'title' => __( 'Automate sales with OttoKit', 'astra' ),
),
'three' => array(
'title' => __( 'High-converting checkout', 'astra' ),
),
'four' => array(
'title' => __( 'Advanced design control', 'astra' ),
),
'five' => array(
'title' => __( 'Better product pages', 'astra' ),
),
),
'divider' => array( 'ast_class' => 'ast-top-section-divider' ),
),
$args
);
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.13.0 | Introduced. |