I have a Custom Post Type (Products) in my WordPress web site.
This is a WooCommerce Product, if it’s necessary to know.
I need to hide toolbar (1) into wp-editor on Add Product page.
Also I need to hide “Add media” button (2) and “Visual/Text” tabs (3).
How do I hide them?
Maybe it make sense to change this WordPress Editor to the textarea with the same value of “name” attribute with using of some hooks?
You can use function.php or plugin to manage this code.You need to put a action.
Remove media button:
Remove Visual tab
You can Identify post type is,
I found here this elegant solution:
I have found this solution:
But it hide toolbar everywhere, because this is “filter” but not “action”.
How do I hide it only on Product (Custom Post Type) Add/Edit page?