• I have seen this with some plugins that do not want anyone altering their code. Can someone lend some advice on how to do this? We do not want to block all of the plugin editing, however.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • I would generally advise against this. Of course, nobody should customize the code of a plugin. This may change its functionality and you will no longer be able to provide support if you have any questions. Unfortunately, if you do it anyway, you won’t be able to help.

    In WordPress, you can at least deactivate the plugin editor globally. See: https://wpmudev.com/blog/how-to-disable-the-wordpress-plugin-and-theme-editor/ – for plugin developers, however, I would advise against including something like this in the plugin. This influences WordPress too much for the user.

    Of course, it would be interesting to know in which plugins you have seen such a plugin-specific setting?

    Thread Starter regerman926

    (@regerman926)

    Thank you for your opinion. I need to hide code for a specific plugin, not globally. Globally would simply magnify the problems that only one would create! No!

    Then again the question: why? In the end, you can access it via FTP anyway.

    And: with which plugin have you ever seen something like this?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Note that obfuscating/hiding code would be a violation of the plugin guidelines and get your plugin removed from wp.org (if it’s here). Or are you asking if there’s a way so it’s not seen under “plugin editor” without affecting other plugins? (If so, probably not.)

    Thread Starter regerman926

    (@regerman926)

    So it’s not seen under the plugin editor without affecting other plugins is exactly the issue. No assault on the sanctity of Word Press intended, just inquiring about what my client has asked if it is possible. I HAVE, however, seen this before with “Nothing here to edit” at the top of the page with no code below! Still trying to remember which one. If I remember . . . . you’ll be the first to hear about it!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    As far as I know, there’s no way to do this for just one plugin. You can turn off “edit plugins”: https://www.wpbeginner.com/wp-tutorials/how-to-disable-theme-and-plugin-editors-from-wordpress-admin-panel/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to hide the code for a specific plugin in the plugin editor’ is closed to new replies.