Skip to content

Commit

Permalink
Removed "Getting Started" page.
Browse files Browse the repository at this point in the history
  • Loading branch information
seb86 committed Dec 17, 2023
1 parent 864b13e commit ea397e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 186 deletions.
32 changes: 0 additions & 32 deletions includes/admin/class-cocart-admin-menus.php
Expand Up @@ -46,11 +46,6 @@ public function admin_menu() {
$section = ! isset( $_GET['section'] ) ? 'getting-started' : trim( sanitize_key( wp_unslash( $_GET['section'] ) ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended

switch ( $section ) {
case 'getting-started':
/* translators: %s: CoCart */
$title = sprintf( esc_attr__( 'Getting Started with %s', 'cart-rest-api-for-woocommerce' ), 'CoCart' );
$breadcrumb = esc_attr__( 'Getting Started', 'cart-rest-api-for-woocommerce' );
break;
default:
$title = apply_filters( 'cocart_page_title_' . strtolower( str_replace( '-', '_', $section ) ), 'CoCart' );
$breadcrumb = apply_filters( 'cocart_page_wc_bar_breadcrumb_' . strtolower( str_replace( '-', '_', $section ) ), '' );
Expand Down Expand Up @@ -127,17 +122,6 @@ public function admin_menu() {
'parent' => 'woocommerce',
)
);

// Add Page.
Automattic\WooCommerce\Admin\Features\Navigation\Menu::add_plugin_item(
array(
'id' => 'cocart',
'title' => esc_attr__( 'Getting Started', 'cart-rest-api-for-woocommerce' ),
'capability' => apply_filters( 'cocart_screen_capability', 'manage_options' ),
'url' => 'cocart',
'parent' => 'cocart-category',
)
);
}
} // END admin_menu()

Expand All @@ -153,28 +137,12 @@ public static function cocart_page() {
$section = ! isset( $_GET['section'] ) ? 'getting-started' : trim( sanitize_key( wp_unslash( $_GET['section'] ) ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended

switch ( $section ) {
case 'getting-started':
self::getting_started_content();
break;

default:
do_action( 'cocart_page_section_' . strtolower( str_replace( '-', '_', $section ) ) );
break;
}
} // END cocart_page()

/**
* Getting Started content.
*
* @access public
* @static
* @since 2.0.0
* @version 2.6.0
*/
public static function getting_started_content() {
include_once dirname( __FILE__ ) . '/views/html-getting-started.php';
} // END getting_started_content()

/**
* Upgrade CoCart content.
*
Expand Down
154 changes: 0 additions & 154 deletions includes/admin/views/html-getting-started.php

This file was deleted.

0 comments on commit ea397e4

Please sign in to comment.