Learn in this tutorial how to remove WordPress editor in Easy Digital Downloads (EDD) posts using code.
In a previous tutorial you learned how to support the block editor in Easy Digital Downloads.
But there are other cases, especially when you use custom fields (native or with ACF), where you don’t need the editor. In these cases it may be a good idea to remove it, especially if it will be used by the end customer.
You know that the ideal is to leave the customers the right and necessary elements so that they can manage their content easily.
So, if they should not enter anything in the editor, it is better that they do not even see it. 😉
Do you want to remove the WordPress editor from EDD downloads?
You only need a few lines of code:
Snippet to remove the WordPress editor in Easy Digital Downloads.
Add the following code at the end of functions.php or in your functionality plugin:
To see this and another 1097 code snippets of this website, login or subscribe here.
In this case, you use the filter remove_post_type_support
to remove WordPress editor support on the CTP created by Easy Digital Downloads.
Conclusions
Do you want to remove the WordPress editor in Easy Digital Downloads for simplicity? Now you know how to achieve this in a simple way using code.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂