welcome_page_title = __( 'Welcome to WooCommerce', 'woocommerce' ); 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() { // About $about = add_dashboard_page( $this->welcome_page_title, $this->welcome_page_title, 'manage_options', 'wc-about', array( $this, 'about_screen' ) ); // Credits $credits = add_dashboard_page( $this->welcome_page_title, $this->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', dirname( dirname( __FILE__ ) ) ) ); } /** * Add styles just for this page, and remove dashboard page links. * * @access public * @return void */ public function admin_head() { global $woocommerce; remove_submenu_page( 'index.php', 'wc-about' ); remove_submenu_page( 'index.php', 'wc-credits' ); // Badge for welcome page $badge_url = $woocommerce->plugin_url() . '/assets/images/welcome/wc-badge.png'; ?> version, '0.0' ) ? substr( $woocommerce->version, 0, 3 ) : $woocommerce->version; ?>
get_product() function.', 'woocommerce' ); ?>
WC-API now has real endpoints, and we\'ve optimised the gateways API significantly by only loading gateways when needed.', 'woocommerce' ); ?>
Contribute to WooCommerce.', 'woocommerce' ); ?>
contributors(); ?>