How to prevent specific plugin files or subfolders from appearing under “plugin files” listing

I have a folder inside my plugin that’s used to store cached data for the application.

There’s no need for the user to edit these files so I’d like to remove this folder’s files from appearing in the “Plugin files” listing that appears in the right sidebar when editing the plugin files via “Plugins > Editor”.

Is this possible?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Use the upload directory to store files.

You should never store files in the plugin directory. There is no guarantee that you have write access there.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x