WordPress.org

Ready to get started?Download WordPress

Forums

Disable Plugins
example regex for single post/page (2 posts)

  1. 21clg
    Member
    Posted 1 year ago #

    Hello, could you please give me an example of a regular expression which will disable a particular plugin on a particular post/page id??

    In your documentation you list an example for disabling Hello Dolly on the home page, but an example of disabling Hello Dolly on a single post id would be FANTASTIC and really help to see how to customize it for any plugin and any particular page. Thanks man for this plugin Ive been searching around ALOT for something like this

    http://wordpress.org/extend/plugins/disable-plugins/

  2. nicomollet
    Member
    Posted 1 year ago #

    Exclude a plugin on a particular page:
    ^\/section\/page\/$ plugin

    Exclude a plugin on all pages except this section:
    ^((?!\/section\/).)*$ plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.