Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • JB26

    (@jb26)

    anyone figure out how to get it to post to product_cat without
    http://ww.wp.xz.cn/extend/plugins/wp-user-frontend ?

    Thread Starter JB26

    (@jb26)

    yup, makes sense but what I did was empty out the toolbar and added what I wanted to it and then remove them from the admin menu

    Thanks for the help

    for those who may need this
    ///remove from toolbar///
    function wps_admin_bar() {
    global $wp_admin_bar;
    $wp_admin_bar->remove_menu(‘wp-logo’);
    }
    add_action( ‘wp_before_admin_bar_render’, array($this, ‘wps_admin_bar’ ) );

    ///add to toolbar///
    function mytheme_admin_bar_render() {
    global $wp_admin_bar;
    $wp_admin_bar->add_menu( array(‘id’ => ‘id’,’title’ => __(‘Title’),’href’ => admin_url( ‘URL’)));
    }
    add_action( ‘wp_before_admin_bar_render’, array($this, ‘mytheme_admin_bar_render’ ) );

    ///remove from admin menu///
    function remove_menus() {
    global $menu;
    global $submenu;
    remove_menu_page( ‘users.php’ );
    }
    add_action( ‘admin_menu’, array( $this, ‘remove_menus’ ) );
    add_action( ‘admin_menu’, array( $this, ‘remove_submenus’ ) );

Viewing 2 replies - 1 through 2 (of 2 total)