ID)) . '">'. __('Read More', 'blanche-lite') .''; } add_filter('excerpt_more', 'blanche_new_excerpt_more'); /** * Adds excerpt support for pages. */ add_post_type_support( 'page', 'excerpt'); /** * Manages display of archive titles. */ function blanche_get_the_archive_title( $title ) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '' . get_the_author() . ''; } elseif ( is_year() ) { $title = get_the_date( __( 'Y','blanche-lite' ) ); } elseif ( is_month() ) { $title = get_the_date( __( 'F Y','blanche-lite' ) ); } elseif ( is_day() ) { $title = get_the_date( __( 'F j, Y','blanche-lite' ) ); } elseif ( is_post_type_archive() ) { $title = post_type_archive_title( '', false ); } elseif ( is_tax() ) { $title = single_term_title( '', false ); } else { $title = esc_html__( 'Archives', 'blanche-lite' ); } return $title; }; add_filter( 'get_the_archive_title', 'blanche_get_the_archive_title', 10, 1 ); // display custom admin notice function blanche_lite_notice() { global $current_user; $user_id = $current_user->ID; if (!get_user_meta($user_id, 'blanche_notice_ignore')) { echo '
'. esc_html__('Thanks for installing Blanche Lite! Want more features?', 'blanche-lite') .' '. esc_html__('Check Out the Pro Version →', 'blanche-lite') .'Dismiss Notice