add_node( array( 'id' => 'storeenginedashboard', 'title' => $title, 'href' => get_the_permalink( $dashboard_page_id ), 'parent' => 'site-name', ) ); } if ( is_singular( Helper::PRODUCT_POST_TYPE ) && current_user_can( 'storeengine_shop_manager' ) ) { $wp_admin_bar->add_menu( array( 'id' => 'storeengineproducts', 'title' => esc_html__( 'Edit Product', 'storeengine' ), 'href' => esc_url( admin_url( 'admin.php?page=storeengine-products&id=' . get_the_ID() . '&action=edit' ) ), ) ); } } }