Guest User

Untitled

a guest
Dec 11th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if (isset($_POST['file_edit_note']) && isset($_POST['file_notes']) && !empty($_POST['file_edit_note'])) {
  2. $my_post = array();
  3. $my_post['ID'] = $_POST['file_edit_note'];
  4. $my_post['post_content'] = $_POST['file_notes'];
  5. $wpdb->insert($wpdb->prefix.'posts', array(
  6. "post_content" => $_POST['file_notes'],
  7. "post_parent" => $_POST['file_edit_note']),array( '%s'), array('%d'));
  8. wp_redirect(get_permalink() . '?upd=1');
  9. }
  10.  
  11. <?php echo !empty($file->post_content)?$file->post_content:'Content not found.'; ?>
Add Comment
Please, Sign In to add comment