Created
October 19, 2017 14:06
-
-
Save matthijs166/e55d870b92582820cd023e74626dc5fb 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