• Anyone here knows how to hide specific folder/file inside specific wordpress plugin folder through admin page?

    Lets say I have a wordpress plugin named myPlugin and inside myPlugin are a folder named folder1 and folder2.

    • This topic was modified 7 years, 1 month ago by IamMarvin.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What are you trying to accomplish?

    Thread Starter IamMarvin

    (@wp-marvin261)

    I want to know if there is a way or code to hide specific file in wordpress plugin files where I see in the plugin editor page via admin page

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What do you mean “hide”?

    Thread Starter IamMarvin

    (@wp-marvin261)

    there are lots of files I see in the plugin editor page. I want to hide some of the files inside the plugin folder so that I do not see those file in the screen monitor.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You can use whatever folder structure you want. Please refer to the plugin developer’s guide. https://developer.www.ads-software.com/plugins/

    Thread Starter IamMarvin

    (@wp-marvin261)

    May I know how to quickly get what I am looking for on this link:. https://developer.www.ads-software.com/plugins/
    <br><br><br>

    How to hide specific files in wordpress plugin file so that I do not see the file in screen monitor on plugin editor page.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    1. What does it matter? What’s the point?
    2. It’s in how you structure your directories.
    3. If you keep asking the exact same question over and over, you’re going to get the same answer, so please either read the documentation or explain it in a different way.

    Thread Starter IamMarvin

    (@wp-marvin261)

    May I know how can I quickly find my answer on this plugin documentation base on my question. I cannot see/read what I am looking.

    • This reply was modified 7 years, 1 month ago by IamMarvin.
    Thread Starter IamMarvin

    (@wp-marvin261)

    I think this might help. My question is something like this wordpress DISALLOW_FILE_EDIT
    but I need to disallow specific file not all files in plugin/theme directory.

    Hi @wp-marvin261, how are you?

    Actually there’s no point to hide files in dashboard because users still can edit/see them in FTP or plugin’s official repository or even in SVN.

    But anyway you can change the folders to be excluded from the tree using the filter plugin_files_exclusions.

    This array is passed to list_files:

    $list_files = list_files( $dir, 100, $exclusions );

    And used to “skip” the folder/file.

    (thanks @pross for indicate the filter)

    Thread Starter IamMarvin

    (@wp-marvin261)

    Hi Mario Valney. Folder exclusion from the tree is what I am looking for. Right now I see many files from JQuery. I want to exclude or hide them from the tree of files in plugin editor.

    But I do not know how to use these code. Can you give me an example code how to use this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘wordpress how to hide file in plugin file by admin page’ is closed to new replies.