Is there a way to tell WordPress not to list certain files of my plugin in the Plugins -> Editor screen?
Leave a Reply
You must be logged in to post a comment.
Is there a way to tell WordPress not to list certain files of my plugin in the Plugins -> Editor screen?
You must be logged in to post a comment.
Ok I figured it out, there is just one filter hook in the
wp-admin/plugin-editor.php
that can be useful but it’s enough (otherwise one would probably need to mess with the output buffer).and then
Note:
wp_reset_vars()
is called so the only way to know which plugin’s files are being edited is from the$_POST
.