Closed

Custom Plugin Admin Options page - Change page / post status

This project was awarded to chitraphp for $50 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30 - $250 USD
Total Bids
1
Project Description

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.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online