AI Verified

Name

Disable description/editor for Woocommerce products

About

Disable the description/editor for Woocommerce products

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

enable and go!

Codevault

Lexvd

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: Not Specified

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

14/11/2022

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Disable description/editor for Woocommerce products

 
                    
1function reset_editor()
2{
3 global $_wp_post_type_features;
4 
5 $post_type="product";
6 $feature = "editor";
7 if ( !isset($_wp_post_type_features[$post_type]) )
8 {
9 
10 }
11 elseif ( isset($_wp_post_type_features[$post_type][$feature]) )
12 unset($_wp_post_type_features[$post_type][$feature]);
13}
14 
15add_action("init","reset_editor");

0

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

AI Verified

0

Upgrade User to VIP Role After First Purchase

Added: 2 weeks ago

Last Updated: 2 weeks ago

This code automatically promotes users to the VIP role after their first purchase on the WooCommerce platform. It checks if the user hasn't already been assigned the VIP role, and if not, it changes t...

WooCommerce

AI Verified

0

Hide Fields if Virtual @ WooCommerce Checkout

Added: 1 year ago

Last Updated: 1 year ago

WooCommerce

AI Verified

1

WooCommerce Remove Cart Notices

Added: 1 year ago

Last Updated: 9 months ago

When adding or removing a product to or from the cart in WooCommerce, a message appears under the header letting the the user know the action has been successful. These messages are known as cart noti...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WordPress Admin

AI Verified

3

Infinite media library scrolling

Added: 1 year ago

Last Updated: 5 months ago

With this snippet your media library will scroll for infinity and beyond!

WooCommerce

AI Verified

1

Move add to card button underneath the price for Woocommerce product pages

Added: 1 year ago

Last Updated: 1 year ago

I always like to have the add to card button underneath the price ( I mean there is where you buy)

WooCommerce

AI Verified

0

Gutenberg for Woocommerce product pages

Added: 1 year ago

Last Updated: 1 year ago

Want to use Gutenberg for Woocommerce? This snippet will make it happen (but might be useless in the future though)