Skip to content

Commit

Permalink
Merge pull request #54 from godaddy/menu-position
Browse files Browse the repository at this point in the history
remove menu position from custom post type
  • Loading branch information
bfocht committed Dec 1, 2017
2 parents e00d78c + 5525edb commit e9a950e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
1 change: 1 addition & 0 deletions assets/js/admin-notice.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 10 additions & 20 deletions includes/class-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ final class Post_Type {
*/
const SLUG = 'reseller_product';

/**
* Post type menu position.
*
* @since 0.2.0
*
* @var int
*/
const MENU_POSITION = 52;

/**
* Post type default permalink base.
*
Expand Down Expand Up @@ -227,17 +218,16 @@ public function register() {
];

$args = [
'labels' => $labels,
'description' => esc_html__( 'This is where you can add new products to your Reseller Store.', 'reseller-store' ),
'menu_icon' => 'dashicons-cart',
'menu_position' => self::MENU_POSITION,
'public' => true,
'show_in_rest' => true,
'rest_base' => self::permalink_base(),
'query_var' => self::permalink_base(),
'has_archive' => true,
'supports' => [ 'title', 'editor', 'thumbnail' ],
'rewrite' => [
'labels' => $labels,
'description' => esc_html__( 'This is where you can add new products to your Reseller Store.', 'reseller-store' ),
'menu_icon' => 'dashicons-cart',
'public' => true,
'show_in_rest' => true,
'rest_base' => self::permalink_base(),
'query_var' => self::permalink_base(),
'has_archive' => true,
'supports' => [ 'title', 'editor', 'thumbnail' ],
'rewrite' => [
'slug' => self::permalink_base(),
'with_front' => false,
'feeds' => true,
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ While we recommend you use our widgets for your storefront, we do have a shortco

## Changelog ##

### 1.4.0 - December 2017 ###

* Fix: Remove menu position

### 1.3.0 - December 2017 ###

* New: Bulk restore product post
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ While we recommend you use our widgets for your storefront, we do have a shortco

== Changelog ==

= 1.4.0 - December 2017 =

* Fix: Remove menu position

= 1.3.0 - December 2017 =

* New: Bulk restore product post
Expand Down

0 comments on commit e9a950e

Please sign in to comment.