GT Post Approval for GT Globalwarming Awareness2007 [WordPress Plugin]

GT Post approval is a plugin for multi user weblogs based on WordPress and it works with WordPress 2.0.X and WP 2.1.

This plugin adds an Approve/Reject button for every post visible just for administrators and editors in the wp-admin/edit.php page.

Clicking the approve/reject buttons (as you probably imagine) the posts become accepted or rejected.

GT Post approval interface
When a post is Accepted:
The post is visible in every section of the blog.
When Rejected:
The post is visible only in the Author’s archive.

I’ve made this plugin for us of the GT Globalwarming Awareness2007, but everyone can use it :)



Download:

  1. Download GT Post Approval 0.3 Beta 0.2. This version has an options page and it implements the features suggested from James:

    Options < Approval

    GT Post Approval options page

    Read more about GT Post Approval 0.3 »

  2. Download GT Post Approval 0.2


Installation:

  1. Download GT Post approval and save it in the [your blog]/wp-content/plugins/ directory.
  2. Go to “Plugins” in the admin area, find the “GT Post approval” row and click “Activate”.

Now every old post is approved and any new post will have to be approved.



Technicalities

The code of this plugin is full commented and subdivided in 4 blocks:

  1. Installation: Here you can find the function that alters database wp_posts table using the WP API to “do something” on the installation of a specific plugin.
  2. The Loop: Here the code to change post results in The_Loop. It uses a WP_Query Class’s API.
  3. Administration: The code to check user role and to change the edit page interface is here.
  4. Optimization: Just a function, it use a WP_Query Class’s API to get informations about current posts.

See GT Post approval’s source.


Tag:API blog Globalwarming Awareness2007 GT Plugins WordPress

Technorati , , , , ,