1
// Create post objects
$my_post = array();
$my_post['post_title'] = 'Main Blog Post Title';
$my_post['post_content'] = 'Main Blog Post Content';
$my_post['post_type'] = 'post';
// Insert the post into the database
wp_insert_post($my_post);
Comment puis-je rendre ce message collant via le script?WordPress rendre post-collant via un script?
Parfait. Merci! –