Restrict a plugin to particular posts or categories? (3 posts)

  1. 3stripe
    Posted 9 years ago #

    Hi folks,

    How could I modify a plugin so that it only shows within the edit page/post area when i'm editing certain items.

    Eg: so that a plugin only activates if i'm editing a post from category '15', or static page 'home'.

    This could also make a great plugin, "Plugin Management", perhaps with an options page where you could choose exactly when your edit page/post plugins were shown!

    (I'm a plugin newbie by the way so go easy on me)

    Thanks for your time.

  2. 3stripe
    Posted 9 years ago #

    Ooops. An example of a plugin I'd like to restrict:

    Custom Field GUI plugin

  3. 3stripe
    Posted 9 years ago #

    One thing I've realised, before a post is saved, there's no way of knowing what categories have been assigned to it, unless you did something javascripty/ajaxy?

Topic Closed

This topic has been closed to new replies.

About this Topic