I gang

Custom Plugin Admin Options page - Change page / post status

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.

Færdigheder: PHP, Web Design, WordPress

Se mere: change post status wordpress, wordpress custom website design how, more gig, how to custom wordpress website, gig design, i need design for trash can, wordpress custom plugin, whats up, plugin design, options, make a custom, design an admin, d plugin, d custom, custom plugin wordpress, status page, custom function php, php frame options, quote plugin, select page, function call wordpress, wordpress page attachment, website plugin , wordpress change post status, wordpress page static

Om arbejdsgiveren:
( 1 bedømmelse ) Tempe, United States

Projekt-ID: #991723

Tildelt til:

chitraphp

i can do [url removed, login to view] venki.

$50 USD på 1 dag
(13 bedømmelser)
4.1