function add_link_to_admin_bar($admin_bar) { $args = array( ‘id’ => ‘orders’, ‘title’ => ‘~ ORDERS ~’, ‘href’ => esc_url( admin_url( ‘edit.php?post_type=shop_order’ ) ) ); $admin_bar->add_node($args); } add_action(‘admin_bar_menu’, ‘add_link_to_admin_bar’, 999);Continue reading
function add_link_to_admin_bar($admin_bar) { $args = array( ‘id’ => ‘orders’, ‘title’ => ‘~ ORDERS ~’, ‘href’ => esc_url( admin_url( ‘edit.php?post_type=shop_order’ ) ) ); $admin_bar->add_node($args); } add_action(‘admin_bar_menu’, ‘add_link_to_admin_bar’, 999);Continue reading
function add_link_to_admin_bar_2($admin_bar) { $args = array( ‘id’ => ‘products’, ‘title’ => ‘# PRODUCTS #’, ‘href’ => esc_url( admin_url( ‘edit.php?post_type=product’ ) ) ); $admin_bar->add_node($args); } add_action(‘admin_bar_menu’, ‘add_link_to_admin_bar_2’, 999);Continue reading
function add_link_to_admin_bar_2($admin_bar) { $args = array( ‘id’ => ‘products’, ‘title’ => ‘# PRODUCTS #’, ‘href’ => esc_url( admin_url( ‘edit.php?post_type=product’ ) ) ); $admin_bar->add_node($args); } add_action(‘admin_bar_menu’, ‘add_link_to_admin_bar_2’, 999);Continue reading
function add_link_to_admin_bar_3($admin_bar) { $args = array( ‘id’ => ‘carts’, ‘title’ => ‘$ CARTS $’, ‘href’ => esc_url( admin_url( ‘/admin.php?page=automatewoo-carts’ ) ) ); $admin_bar->add_node($args); } add_action(‘admin_bar_menu’, ‘add_link_to_admin_bar_3’, 999);Continue reading
function add_link_to_admin_bar_3($admin_bar) { $args = array( ‘id’ => ‘carts’, ‘title’ => ‘$ CARTS $’, ‘href’ => esc_url( admin_url( ‘/admin.php?page=automatewoo-carts’ ) ) ); $admin_bar->add_node($args); } add_action(‘admin_bar_menu’, ‘add_link_to_admin_bar_3’, 999);Continue reading
function add_link_to_admin_bar_4($admin_bar) { $args = array( ‘id’ => ‘users’, ‘title’ => ‘* USERS *’, ‘href’ => esc_url( admin_url( ‘users.php’ ) ) ); $admin_bar->add_node($args); } add_action(‘admin_bar_menu’, ‘add_link_to_admin_bar_4’, 999);Continue reading
function remove_link_from_admin_bar( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘wp-logo’ ); } add_action( ‘admin_bar_menu’, ‘remove_link_from_admin_bar’, 999 );Continue reading
function remove_link_from_admin_bar( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘wp-logo’ ); } add_action( ‘admin_bar_menu’, ‘remove_link_from_admin_bar’, 999 );Continue reading
// add tags for attachments function add_tags_for_attachments() { register_taxonomy_for_object_type( ‘post_tag’, ‘attachment’ ); } add_action( ‘init’ , ‘add_tags_for_attachments’ );Continue reading