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() { $welcome_page_title = __( 'Welcome to WooCommerce', 'woocommerce' ); // About $about = add_dashboard_page( $welcome_page_title, $welcome_page_title, 'manage_options', 'wc-about', array( $this, 'about_screen' ) ); // Credits $credits = add_dashboard_page( $welcome_page_title, $welcome_page_title, 'manage_options', 'wc-credits', array( $this, 'credits_screen' ) ); add_action( 'admin_print_styles-'. $about, array( $this, 'admin_css' ) ); add_action( 'admin_print_styles-'. $credits, array( $this, 'admin_css' ) ); } /** * 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 ) ); } /** * 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' ); // 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(); ?>