WPide icon indicating copy to clipboard operation
WPide copied to clipboard

Editing only some files

Open davidericardo opened this issue 10 years ago • 1 comments

Hello guys, Nice plugin.

Just a question: Is it possible to use this plugin to edit just some files? I would like to show only some files instead of the full directories and files.

Thanks in advance.

Regards, DR

davidericardo avatar Jan 26 '15 16:01 davidericardo

Hi David,

Unfortunately not - it displays all files and folders under a root directory. This, itself is adjustable via the filter 'wpide_filesystem_root', which defaults to the value of the WP_CONTENT_DIR constant (example here).

The function that actually is used to return the HTML for the file tree may be found here. You may modify these to your needs.

Unfortunately, that's all I can provide you with at the current time, as there's no ability to filter out each individual entry through our plugin. You can go through the path of filtering WP_Filesystem::dir_list - that will work (see here), but you will probably need to get your hands dirty studying the WP_Filesystem_Base class, examining the code as there is currently no documentation at codex.

Regards, Shane

shanept avatar Mar 04 '15 04:03 shanept