Custom Plugin Admin Options page - Change page / post status

Completed Posted Mar 20, 2011 Paid on delivery
Completed Paid on delivery

Hello,

I am looking for someone who knows how to make a custom plugin. The plugin would have a custom admin options page. On the admin options page it will list specific page ID's and give the user (admin) the ability to somehow select / toggle between that page post status and select either (draft | publish)

Here is the function that changes the post status:

/*

$post_id - The ID of the post you'd like to change.

$status - The post status publish|pending|draft|private|static|object|attachment|inherit|future|trash.

*/

function change_post_status($post_id,$status){

$current_post = get_post( $post_id, 'ARRAY_A' );

$current_post['post_status'] = $status;

wp_update_post($current_post);

}

Then call the function EXAMPLE

change_post_status(12,'draft');

I need this function to have an admin options page and be dynamic for the user to select between draft and publish. Also the above example is for one single post.. I need it to work with 2 or more. Once you set it up with 2 or more I am pretty sure I can see whats going on and replicate it with the specific post ID's I want listed.

This should be a quick and easy gig for someone who knows wordpress and PHP - if that is you please contact me with a quote and time frame.

PHP Website Design WordPress

Project ID: #991723

About the project

1 proposal Remote project Active Mar 20, 2011

Awarded to:

chitraphp

i can do [login to view URL] venki.

$50 USD in 1 day
(13 Reviews)
4.1