plugin_assets . 'img/affcoupon_ic.png'; $iconspan = ''; $title = __( 'AffCoupon', 'affcoupon' ); $args = array( 'id' => 'wpaf_toolbar', 'title' => $iconspan . $title, 'href' => admin_url() . 'edit.php?post_type=wpaf_coupons', ); $wp_admin_bar->add_node( $args ); $args = array( 'id' => 'wpaf_toolbar_coupons', 'title' => __( 'Coupons', 'affcoupon' ), 'href' => admin_url() . 'edit.php?post_type=wpaf_coupons', 'parent' => 'wpaf_toolbar' ); $wp_admin_bar->add_node( $args ); $args = array( 'id' => 'wpaf_toolbar_new', 'title' => __( 'Add New Coupon', 'affcoupon' ), 'href' => admin_url() . 'post-new.php?post_type=wpaf_coupons', 'parent' => 'wpaf_toolbar' ); $wp_admin_bar->add_node( $args ); $args = array( 'id' => 'wpaf_toolbar_categories', 'title' => __( 'Coupon Categories', 'affcoupon' ), 'href' => admin_url() . 'edit-tags.php?taxonomy=wpaf_coupon_category&post_type=wpaf_coupons', 'parent' => 'wpaf_toolbar' ); $wp_admin_bar->add_node( $args ); $args = array( 'id' => 'wpaf_toolbar_vendors', 'title' => __( 'Coupon Vendors', 'affcoupon' ), 'href' => admin_url() . 'edit-tags.php?taxonomy=wpaf_coupon_vendor&post_type=wpaf_coupons', 'parent' => 'wpaf_toolbar' ); $wp_admin_bar->add_node( $args ); $args = array( 'id' => 'wpaf_toolbar_settings', 'title' => __( 'Settings', 'affcoupon' ), 'href' => admin_url() . 'edit.php?post_type=wpaf_coupons&page=wpaf_coupon_settings', 'parent' => 'wpaf_toolbar' ); $wp_admin_bar->add_node( $args ); } }