当前位置 : 主页 > 网络编程 > PHP >

wordpress自定义

来源:互联网 收集:自由互联 发布时间:2021-06-28
function,php //my change bedinadd_action( 'admin_bar_menu', 'remove_wp_logo', 999 );function remove_wp_logo( $wp_admin_bar ) { $wp_admin_bar - remove_node( 'wp-logo-external' );}function remove_dashboard_widgets() { global$wp_meta_boxes; //
function,php
//my change bedin
add_action( 'admin_bar_menu', 'remove_wp_logo', 999 );

function remove_wp_logo( $wp_admin_bar ) {
   $wp_admin_bar -> remove_node( 'wp-logo-external' );
}

function remove_dashboard_widgets() {
    global$wp_meta_boxes;
    //unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
}
add_action('wp_dashboard_setup', 'remove_dashboard_widgets');
//my change end
网友评论