Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo '<input type="submit" name="submit" id="submit" value="Submit" />';
- if (isset($_POST['submit']) && ($_POST['submit'] == 'Submit')) {
- $query = array(
- 'ID' => $post->ID,
- 'post_status' => 'publish',
- );
- wp_update_post( $query, true );
- }
Add Comment
Please, Sign In to add comment