Skip to content

Commit

Permalink
More excluded CPTs
Browse files Browse the repository at this point in the history
  • Loading branch information
vladolaru committed Jan 12, 2022
1 parent 778393e commit dfe21ce
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion starter_content_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Starter Content Exporter
* Plugin URI: https://pixelgrade.com/
* Description: A plugin which exposes exportable data through the REST API.
* Version: 1.2.3
* Version: 1.2.4
* Author: Pixelgrade, Vlad Olaru
* Author URI: https://pixelgrade.com/
* License: GPL-2.0+
Expand Down Expand Up @@ -153,6 +153,14 @@ public function add_restapi_post_type_args( $args, $post_type ) {
'customize_changeset',
'oembed_cache',
'user_request',
'scheduled-action',
'schema',
'shop_order',
'shop_order_refund',
'shop_coupon',
'feedback',
'jp_pay_order',
'jp_pay_product',
];

if ( ! in_array( $post_type, $excluded_cpts ) && is_array( $args ) && ! isset( $args['show_in_rest'] ) ) {
Expand Down

0 comments on commit dfe21ce

Please sign in to comment.