Astra_Addon_Admin_Loader::update_addon_options_defaults( array $defaults )
Update defaults on REST call.
Description
Parameters
- $defaults
-
(array) (Required) Defaults for admin app.
Source
File: admin/core/class-astra-addon-admin-loader.php
public function update_addon_options_defaults( $defaults ) { $white_label_markup_instance = Astra_Ext_White_Label_Markup::get_instance(); $defaults['pro_addons'] = Astra_Ext_Extension::get_enabled_addons(); $defaults['enable_file_generation'] = get_option( '_astra_file_generation', 'disable' ); $defaults['show_self_branding'] = Astra_Ext_White_Label_Markup::show_branding(); $defaults['enable_beta_update'] = Astra_Admin_Helper::get_admin_settings_option( '_astra_beta_updates', true, 'disable' ); $defaults['plugin_description'] = $white_label_markup_instance->astra_pro_whitelabel_description(); $defaults['plugin_name'] = $white_label_markup_instance->astra_pro_whitelabel_name(); $defaults['theme_screenshot_url'] = $white_label_markup_instance::get_whitelabel_string( 'astra', 'screenshot', false ); $defaults['theme_description'] = $white_label_markup_instance::get_whitelabel_string( 'astra', 'description', false ); $defaults['theme_name'] = $white_label_markup_instance::get_whitelabel_string( 'astra', 'name', false ); $defaults['agency_license_link'] = $white_label_markup_instance::get_whitelabel_string( 'astra-agency', 'licence', false ); $defaults['agency_author_url'] = $white_label_markup_instance->astra_pro_whitelabel_author_url(); $defaults['agency_author_name'] = $white_label_markup_instance->astra_pro_whitelabel_author(); $defaults['theme_icon_url'] = $white_label_markup_instance::get_whitelabel_string( 'astra', 'icon', false ); $defaults['st_plugin_name'] = $white_label_markup_instance::get_whitelabel_string( 'astra-sites', 'name', false ); $defaults['st_plugin_description'] = $white_label_markup_instance::get_whitelabel_string( 'astra-sites', 'description', false ); return $defaults; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |