I haven’t tested but something like this should work:
function wpse70000_add_author_metabox_to_cpt_book( $args, $post_type ) {
if ('product' === $post_type ){
unset($args['editor'] ); // set the 'supports' array
}
return $args;
}
add_filter( 'register_post_type_args', 'wpse70000_add_author_metabox_to_cpt_book', 10, 2 );
Related Posts:
- Woocommerce add to simple product attribute programmatically [closed]
- Creating loop within functions.php
- Set quantity of woocommerce product on page visit [closed]
- When sale price is 0.00 show only regular price
- Create custom function for hero image
- Parent category as WOOCommerce Categories widget title
- Woocommerce custom calculation function
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- Move Custom Fields on General Settings Page to New Location
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- Redirect to another page using contact form 7? [closed]
- help I changed one currency in woocommerce and everything is ruined [closed]
- different style sheet for just one page template
- Functions when woocommerce isn’t installed
- How to override woocommerce.css?
- How can I use Woocommerce $product->get_attribute in functions.php? (if at all)
- Condition OR for current user ID
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- How to retrieve the current post’s generated featured image size?
- (Woocommerce) Order by price when entering specific category
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- Why There Is No “get content by ID” Function
- Custom HTML markup
- Use a shortcode to display custom meta box contents
- Wp-query Order By problem
- Randomizing wp_tag_cloud() in child theme
- replace text in Sort Box
- login_headertitle is deprecated since version 5.2.0
- How to append classname to body tag if guest user
- add_filter to specific WooCommerce Category
- Woocommerce checkout field
- Where do I go to edit this area? [closed]
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- add referrer to woo
- Replace plugin function with a custom function?
- Add attribute only to first image of every post via functions.php
- Way to redirect all Product Sub Category to its Main category Page?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Different favicon on different pages
- The_content and Preg_replace in loaded Iframe [closed]
- Create a Woocommerce product widget with category filter
- Delay a function, any function!
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- How do i wrap woocomerce attribute in list?
- Problem with images URL after filter applying
- How add body_class from wp_termmeta
- Adding product to WooCommerce cart [closed]
- Change WooCommerce add_to_cart Button Text?
- two search forms on the same page
- Function to replace comment’s accented characters before posting
- WooCommerce -> wc_enqueue_js not working [closed]
- Use existing image sizes for WooCommerce
- Insert a field with PREG_REPLACE – strange behaviour
- How to echo Widget Title in Custom Frontend-Template Box
- New checkbox in custom widget isn’t saving data
- Linking Javascript in functions.php file
- how to display a page before the home page
- loginout function customization
- Function to check if custom page is used by page?
- implementing a centralized content “show-do-not-show” toggle?
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- Customise Grouped Product display in Woocommerce with custom column
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to hide content on mobile in the functions.php file – woocommerce
- Woocommerce Default sorting product by product type
- How to hide WooCommerce product title and short description to non logged in users?
- How to remove font awesome from loading in wp theme
- How to add custom metakey to shop_order page’s searching function?
- localize_script but data changes dependent on product ID
- Changing the HTML of notices in WooCommerce [closed]
- How to replace ACTION url from original wordpress login form?
- Change class woocommerce on function.php
- Show ‘Add to Cart’ on Out of Stock products
- Header menu aligned right on all pages except for single-post page [closed]
- Hide ‘add to cart’ when certain value in dropdown is selected
- Save_post – Warning: Cannot modify header information
- removing description tabs – single product page – breaks footer
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Adding discount functionality to the cart
- Link product attribute value to a URL – woocommerce
- How to assign a specific service to a specific provider based on location
- Modifying a WordPress Plugin
- CF7 select value get to function and reciept value from function
- Hide author info in single posts by certain users
- Remove text after a dot and a colon in Woocommerce product title
- When are the user meta fields created in the database? Admin vs Woo API REST
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- price of product can’t return when get data of product in functions.php
- Woocommerce product price change
- CSS style and app.js not loading
- Help with with my function for wordpress
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- is_product_category(‘Services’) not working
- Problems adding a new field to product in cart
- Woocommerce Display Discount On cart
- Problem with my footer after changing WooCommerce Products Sorting [closed]
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs