Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $post_cours = array(
- 'post_title' => $_POST['nom'],
- 'post_content' => $_POST['description'],
- 'post_status' => 'publish',
- 'post_type' => 'page',
- );
- wp_insert_post($post_cours);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement