Astra_Theme_Update::v_1_4_0_beta_5()
Function to backward compatibility for version less than 1.4.0
Description
Source
File: inc/theme-update/class-astra-theme-update.php
public static function v_1_4_0_beta_5() {
// Set default toggle button style.
$theme_options = get_option( 'astra-settings' );
if ( ! isset( $theme_options['mobile-header-toggle-btn-style'] ) ) {
$theme_options['mobile-header-toggle-btn-style'] = 'fill';
}
$theme_options['hide-custom-menu-mobile'] = 0;
update_option( 'astra-settings', $theme_options );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.4.0-beta.5 | Introduced. |