added shortcode for posts update
This commit is contained in:
@@ -78,24 +78,6 @@
|
||||
|
||||
function mp_get_published_posts() {
|
||||
|
||||
// FOR TESTS
|
||||
// script to publish or unpublish posts
|
||||
//
|
||||
// $post_args = array(
|
||||
// 'numberposts' => -1,
|
||||
// 'post_status' => 'draft',
|
||||
// //'post_status' => 'publish',
|
||||
// 'post_type' => 'post',
|
||||
// );
|
||||
// $post_list = get_posts($post_args);
|
||||
// foreach ($post_list as $post) {
|
||||
// wp_update_post(array(
|
||||
// 'ID' => $post->ID,
|
||||
// //'post_status' => 'draft',
|
||||
// 'post_status' => 'publish',
|
||||
// ));
|
||||
// };
|
||||
|
||||
$get_posts_args = array(
|
||||
'numberposts' => -1,
|
||||
'post_status' => 'publish',
|
||||
@@ -127,6 +109,7 @@ function mp_fill_fields_value($id) {
|
||||
"adresse",
|
||||
"prenom",
|
||||
"nom",
|
||||
"test",
|
||||
"location",
|
||||
);
|
||||
$event = (object)[];
|
||||
|
||||
Reference in New Issue
Block a user