WordPress2022 后台美化 QuarterAdmin

        一个好看的wordpress后台主题插件,https://pan.iculture.cc/s/dkKiy 提取码84kbh0

WordPress2022 后台美化 QuarterAdmin  第1张

PHP8.1会出错,将插件下的quarter_admin.php改为如下代码就行:

<?php
/*
Plugin Name: Quarter Admin Theme
Plugin URI: 
Description: 一个WordPress仪表板主题,几乎不影响响应速度。
Author: WinChin
Version: 1.0
Author URI: 
*/
function my_admin_theme_style() {
wp_enqueue_style('my-admin-theme', plugins_url('colors.css', __FILE__));
}
add_action('admin_enqueue_scripts', 'my_admin_theme_style');
add_action('login_enqueue_scripts', 'my_admin_theme_style');
function custom_admin_js() {
    $url_index = plugin_dir_url(__FILE__ ) . '';
$url_jquery = plugin_dir_url(__FILE__ ) . '';
    echo '"<script type="text/javascript" src="'. $url_index . '"></script>"';
echo '"<script type="text/javascript" src="'. $url_jquery . '"></script>"';
}
add_action('admin_footer', 'custom_admin_js');
function custom_adminbar_menu( $meta = TRUE ) {  
    global $wp_admin_bar;  
        if ( !is_user_logged_in() ) { return; }  
        if ( !is_super_admin() || !is_admin_bar_showing() ) { return; }  
    $wp_admin_bar->add_menu( array(  
        'id' => 'custom_menu',  
        'title' => __( '' ),  
        'href' => 'index.php',  
        'meta'  => array( 'target' => '' ) )  
    );  
}  
add_action( 'admin_bar_menu', 'custom_adminbar_menu', 10 );  
function wps_login_error() {
        remove_action('login_head', 'wp_shake_js', 12);
}
add_action('login_head', 'wps_login_error');
function custom_loginlogo_url($url) {
return '/';
}
add_filter( 'login_headerurl', 'custom_loginlogo_url' );
function blogname(){
    return get_bloginfo('name');
}
add_filter('login_headertitle', 'blogname');
© 版权声明
THE END
喜欢就支持一下吧
点赞16 分享