Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['file_edit_note']) && isset($_POST['file_notes']) && !empty($_POST['file_edit_note'])) {
- $my_post = array();
- $my_post['ID'] = $_POST['file_edit_note'];
- $my_post['post_content'] = $_POST['file_notes'];
- $wpdb->insert($wpdb->prefix.'posts', array(
- "post_content" => $_POST['file_notes'],
- "post_parent" => $_POST['file_edit_note']),array( '%s'), array('%d'));
- wp_redirect(get_permalink() . '?upd=1');
- }
- <?php echo !empty($file->post_content)?$file->post_content:'Content not found.'; ?>
Add Comment
Please, Sign In to add comment