plugin = 'woocommerce/woocommerce.php'; add_action( 'admin_menu', array( $this, 'admin_menus') ); add_action( 'admin_head', array( $this, 'admin_head' ) ); add_action( 'admin_init', array( $this, 'welcome' ) ); } /** * Add admin menus/screens * * @access public * @return void */ public function admin_menus() { if ( empty( $_GET['page'] ) ) { return; } $welcome_page_name = __( 'About WooCommerce', 'woocommerce' ); $welcome_page_title = __( 'Welcome to WooCommerce', 'woocommerce' ); switch ( $_GET['page'] ) { case 'wc-about' : $page = add_dashboard_page( $welcome_page_title, $welcome_page_name, 'manage_options', 'wc-about', array( $this, 'about_screen' ) ); add_action( 'admin_print_styles-'. $page, array( $this, 'admin_css' ) ); break; case 'wc-credits' : $page = add_dashboard_page( $welcome_page_title, $welcome_page_name, 'manage_options', 'wc-credits', array( $this, 'credits_screen' ) ); add_action( 'admin_print_styles-'. $page, array( $this, 'admin_css' ) ); break; case 'wc-translators' : $page = add_dashboard_page( $welcome_page_title, $welcome_page_name, 'manage_options', 'wc-translators', array( $this, 'translators_screen' ) ); add_action( 'admin_print_styles-'. $page, array( $this, 'admin_css' ) ); break; } } /** * admin_css function. * * @access public * @return void */ public function admin_css() { wp_enqueue_style( 'woocommerce-activation', plugins_url( '/assets/css/activation.css', WC_PLUGIN_FILE ), array(), WC_VERSION ); } /** * Add styles just for this page, and remove dashboard page links. * * @access public * @return void */ public function admin_head() { remove_submenu_page( 'index.php', 'wc-about' ); remove_submenu_page( 'index.php', 'wc-credits' ); remove_submenu_page( 'index.php', 'wc-translators' ); // Badge for welcome page $badge_url = WC()->plugin_url() . '/assets/images/welcome/wc-badge.png'; ?> version, 0, 3 ); ?>
Orders, Coupons, Customers, Products and Reports in both XML
and JSON
formats.', 'woocommerce' ); ?>
OAuth 1.0a specification if you don\'t have SSL. Data is only available to authenticated users.', 'woocommerce' ); ?>
filtering capabilities, a new customer report showing orders/spending, and the ability to export CSVs.', 'woocommerce' ); ?>
default_credit_card_form.', 'woocommerce' ); ?>
Contribute to WooCommerce.', 'woocommerce' ); ?>
contributors(); ?>Translate WooCommerce.', 'woocommerce' ); ?>
ABSOLUTE_Web, AIRoman, Andriy.Gusak, Apelsinova, Chaos, Closemarketing, CoachBirgit, DJIO, Dimis13, GabrielGil, GeertDD, Griga_M, JKKim, Janjaapvandijk, KennethJ, Lazybadger, RistoNiinemets, SergeyBiryukov, SzLegradi, TRFlavourart, Thalitapinheiro, TomiToivio, TopOSScz, Wen89, abdmc, adamedotco, ahmedbadawy, alaa13212, alichani, amitgilad, andrey.lima.ramos, arhipaiva, bobosbodega, calkut, cglaudel, claudiosmweb, coenjacobs, corsonr, cpelham, culkman, darudar, deckerweb, dekaru, denarefyev, e01, espellcaste, fdaciuk, flyingoff, fnalescio, fxbenard, gingermig, gopress.co.il, greguly, henryk.ibemeinhardt, iagomelanias, ideodora, inceptive, inpsyde, israel.cefrin, jameskoster, jeanmichell, jluisfreitas, joelbal, joesalty, josh_marom, jpBenfica, jujjer, karistuck, kraudio, lad.ruz, lubalee, maayehkhaled, marcosof, martian36, martinproject, math_beck, mattyza, me2you, mikejolley, mjepson, mobarak, mom0916, mortifactor, nsitbon, perdersongedal, potgieterg, rabas.marek, rafaelfunchal, ragulka, ramoonus, rcovarru, renatofrota, richardshaylor, rickserrat, rodrigoprior, scottbasgaard, sennbrink, stgoos, stuk88, sumodirjo, sylvie_janssens, tinaswelt, toszcze, tshowhey, tszming, tue.holm, uworx, vanbo, viamarket, wasim, zodiac1978