Astra_Addon_Update::v_1_0_0_rc_6()
Update options of older version than 1.0.0-rc.6.
Description
Return
(void)
Source
File: classes/class-astra-addon-update.php
public static function v_1_0_0_rc_6() {
// Get the site-wide option if we're in the network admin.
if ( is_multisite() ) {
$white_label = get_site_option( '_astra_ext_white_label' );
} else {
$white_label = get_option( '_astra_ext_white_label' );
}
// updated white label options.
$updated_branding = array();
if ( isset( $white_label['theme_name'] ) ) {
$updated_branding['astra']['name'] = $white_label['theme_name'];
}
if ( isset( $white_label['theme_desc'] ) ) {
$updated_branding['astra']['description'] = $white_label['theme_desc'];
}
if ( isset( $white_label['theme_author'] ) ) {
$updated_branding['astra-agency']['author'] = $white_label['theme_author'];
}
if ( isset( $white_label['theme_author_url'] ) ) {
$updated_branding['astra-agency']['author_url'] = $white_label['theme_author_url'];
}
if ( isset( $white_label['theme_screenshot'] ) ) {
$updated_branding['astra']['screenshot'] = $white_label['theme_screenshot'];
}
if ( isset( $white_label['plugin_name'] ) ) {
$updated_branding['astra-pro']['name'] = $white_label['plugin_name'];
}
if ( isset( $white_label['plugin_desc'] ) ) {
$updated_branding['astra-pro']['description'] = $white_label['plugin_desc'];
}
if ( isset( $white_label['plugin_licence'] ) ) {
$updated_branding['astra-agency']['licence'] = $white_label['plugin_licence'];
}
if ( isset( $white_label['hide_branding'] ) ) {
$updated_branding['astra-agency']['hide_branding'] = $white_label['hide_branding'];
}
// Update the site-wide option since we're in the network admin.
if ( is_multisite() ) {
update_site_option( '_astra_ext_white_label', $updated_branding );
} else {
update_option( '_astra_ext_white_label', $updated_branding );
}
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.0-rc.3 | Introduced. |