Reputation: 23
I have a simple thing to accomplish. But, it seems like I am not getting on top of it using Google search and stack-overflow etc.
What I want is:
In WordPress 'standard page'
admin panel, you always have the content text-area on top position. Since I added different input fields to define all of the pages content, there is no need of it anymore, so i would like to hide it for better usability.
Question: Is there a way to hide the content text-area from the standard pages admin panel? And how to?
I know it is possible for custom post types! But, how do I get rid of it in the standard static page (admin panel)?
Upvotes: 2
Views: 2888
Reputation: 3316
You can try with:
add_action( 'init', 'my_remove_post_type_support', 999 );
function my_remove_post_type_support() {
remove_post_type_support( 'page', 'editor' );
}
Upvotes: 4