Add Orders link to the top admin toolbar

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

Add Orders link to the top admin toolbar

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

Add Products Link to the Top Admin Toolbar

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

Add Products Link to the Top Admin Toolbar

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

Add Carts Link to the Top Admin Toolbar

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

Add Carts Link to the Top Admin Toolbar

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

Add Users Link to the Top Admin Toolbar

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

Add Tags Option to Images

// 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