Wordpress Plugin: WPMU Protect Pages

Published December 26, 2009 5 Comments 0 Delicious Bookmarks

When creating a new project of mine, I needed a way to protect certain page ids from being deleted because I was hard coding them into my WPMU themes. I was using the WPMU Blog Templates plugin, and after figuring out what IDs those new “pre-setup” pages were, I needed a way to protect them from ever being deleted by my users.

This plugin does just that – protects a list of post or page ids. It also gives you the ability to change the error message they see when trying to delete one of these protected pages.

Download

Download the latest from Wordpress Extend

Screenshot of Administrator Panel

This entry was posted under Projects, Wordpress and has an RSS feed
5 Comments | Save to Del.ico.us |  

5 Comments

  1. December 27th, 2009 @ 12:52 am

    This is very useful. I wonder how difficult would it be to make this compatible with single user WordPress, as well, though?

    Either way, it’s smart and simple. I like the idea and implementation a lot.

  2. Thanks Jason! Maybe in the future I will look into making this single-WP compatible…

  3. Sleenie said:

    Want to make sure i understand. I have a WPMU installation happening now and the owner wants certain pages to be never deleted by others. In other words forced content on blog pages.

    If so, you have sure saved me.

    sleenie

  4. Sleenie said:

    Actually, I see that in re-reading you are hrad-coding those pages into your themes?

    In order for this to work, all pages would need to have the same across the bogs, correct?

    Since I’m not a coder, how difficult would this be to do? I’m assuming that once the code is written, it would pretty much go in the same place in all themes?

    Sleenie

  5. February 23rd, 2010 @ 11:00 am

    Only the pages you want to save would need to be hard-coded. I use the WPMU Blog Templates plugin to auto-setup certain pages. Because of this, every new user setup has the same exact pages as soon as they sign in. Since this is done programically, every “About” page has the same page_id, say in this case might be #5.

    So I would add “5″ into this plugin and now instantly, every blog cannot delete their page id #5 – which would be “About”

    It kind of sounds convoluted, but it really isn’t. Hopefully I made it more clear and not less.

Leave your Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get your own Gravatar