Created
October 19, 2017 14:06
-
-
Save matthijs166/1237152ff84f47d9127f13bfa53a1f17 to your computer and use it in GitHub Desktop.
remove content editor in post catogroies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function remove_product_editor() { | |
remove_post_type_support( 'product', 'editor' ); | |
} | |
add_action( 'init', 'remove_product_editor' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment