'ffffff',
'default-image' => '',
)));
if ( ! defined( 'BUSINESS_STARTUP_EXPERT_DEMO_IMPORT_URL' ) ) {
define( 'BUSINESS_STARTUP_EXPERT_DEMO_IMPORT_URL', esc_url( admin_url( 'themes.php?page=businessstartupexpert-wizard' ) ) );
}
if ( ! defined( 'BUSINESS_STARTUP_EXPERT_WELCOME_MESSAGE' ) ) {
define( 'BUSINESS_STARTUP_EXPERT_WELCOME_MESSAGE', __( 'Welcome! Thank you for choosing Business Startup Expert', 'business-startup-expert' ) );
}
}
endif;
add_action('after_setup_theme', 'business_startup_expert_setup');
// Set content width
function business_startup_expert_content_width() {
$GLOBALS['content_width'] = apply_filters('business_startup_expert_content_width', 1170);
}
add_action('after_setup_theme', 'business_startup_expert_content_width', 0);
// Register widget areas
function business_startup_expert_widgets_init() {
register_sidebar(array(
'name' => __('Sidebar Widget Area', 'business-startup-expert'),
'id' => 'expert-business-advisor-sidebar-primary',
'description' => __('The Primary Widget Area', 'business-startup-expert'),
'before_widget' => '',
'before_title' => '
',
));
register_sidebar(array(
'name' => __('Footer Widget Area', 'business-startup-expert'),
'id' => 'expert-business-advisor-footer-widget-area',
'description' => __('The Footer Widget Area', 'business-startup-expert'),
'before_widget' => '',
'before_title' => '',
));
}
add_action('widgets_init', 'business_startup_expert_widgets_init');
// Remove customizer settings
function business_startup_expert_remove_custom($wp_customize) {
$wp_customize->remove_setting('expert_business_advisor_header_button');
$wp_customize->remove_control('expert_business_advisor_header_button');
$wp_customize->remove_setting('expert_business_advisor_header_link');
$wp_customize->remove_control('expert_business_advisor_header_link');
}
add_action('customize_register', 'business_startup_expert_remove_custom', 1000);
// NOTICE
function business_startup_expert_activation_notice() {
// Check if the notice has already been dismissed
if (get_option('expert_business_advisor_notice_dismissed')) {
return;
}
// Avoid showing the notice on the demo import wizard page
if (isset($_GET['page']) && $_GET['page'] === 'businessstartupexpert-wizard') {
return;
}
?>