__( 'Primary', 'baboo' ) ) ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'title-tag' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_theme_support( 'custom-logo', array( 'height' => 100, 'width' => 350, 'flex-height' => true, 'flex-width' => true, ) ); /* * Editor Style. */ add_editor_style( 'editor-style.css' ); } } add_action( 'after_setup_theme', 'baboo_starter_setup' ); if ( ! function_exists( 'baboo_starter_assets' ) ) { /** * Theme Scripts & Styles. * * @return void */ function baboo_starter_assets() { $min_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; wp_enqueue_style('baboo', get_template_directory_uri() . '/style' . $min_suffix . '.css', [], BABOO_STARTER_VERSION); wp_enqueue_style('baboo-starter-theme-style', get_template_directory_uri() . '/assets/css/theme' . $min_suffix . '.css', [], BABOO_STARTER_VERSION); } } add_action( 'wp_enqueue_scripts', 'baboo_starter_assets' ); /* add_action('init', 'unhide_all_bp_message'); function unhide_all_bp_message(){ global $wpdb; $wpdb->update($wpdb->prefix.'bp_messages_recipients', ['is_hidden' => 0], ['is_hidden' => 1]); } */