PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
dokan-lite
/
includes
/
Admin
<?php namespace WeDevs\Dokan\Admin; /** * WordPress settings API For Dokan Admin Settings class * * @author Tareq Hasan */ class AdminBar { /** * Class constructor * * Sets up all the appropriate hooks and actions * within our plugin. * * @return void */ public function __construct() { add_action( 'wp_before_admin_bar_render', array( $this, 'dokan_admin_toolbar' ) ); } /** * Add Menu in Dashboard Top bar * * @return void */ public function dokan_admin_toolbar() { global $wp_admin_bar; if ( ! current_user_can( 'manage_woocommerce' ) ) { return; } $args = array( 'id' => 'dokan', 'title' => __( 'Dokan', 'dokan-lite' ), 'href' => admin_url( 'admin.php?page=dokan' ) ); $wp_admin_bar->add_menu( $args ); $wp_admin_bar->add_menu( array( 'id' => 'dokan-dashboard', 'parent' => 'dokan', 'title' => __( 'Dashboard', 'dokan-lite' ), 'href' => admin_url( 'admin.php?page=dokan' ) ) ); $wp_admin_bar->add_menu( array( 'id' => 'dokan-withdraw', 'parent' => 'dokan', 'title' => __( 'Withdraw', 'dokan-lite' ), 'href' => admin_url( 'admin.php?page=dokan#/withdraw' ) ) ); $wp_admin_bar->add_menu( array( 'id' => 'dokan-pro-features', 'parent' => 'dokan', 'title' => __( 'PRO Features', 'dokan-lite' ), 'href' => admin_url( 'admin.php?page=dokan#/premium' ) ) ); $wp_admin_bar->add_menu( array( 'id' => 'dokan-settings', 'parent' => 'dokan', 'title' => __( 'Settings', 'dokan-lite' ), 'href' => admin_url( 'admin.php?page=dokan#/settings' ) ) ); /** * Add new or remove toolbar * * @since 2.5.3 */ do_action( 'dokan_render_admin_toolbar', $wp_admin_bar ); } }
[+]
..
[-] SetupWizardWCAdmin.php
[edit]
[-] Settings.php
[edit]
[-] AdminBar.php
[edit]
[-] Promotion.php
[edit]
[-] UserProfile.php
[edit]
[-] functions.php
[edit]
[-] SetupWizard.php
[edit]
[-] Menu.php
[edit]
[-] SetupWizardNoWC.php
[edit]
[-] Hooks.php
[edit]
[-] Pointers.php
[edit]