Bulk Change Posts from Published to Draft Across Multiple Sites
-
Hopefully this is the correct section to ask this question. It’s not your normal type situation, but unique to me. I have several hundred blogs that are part of a large group PBN. Members can post to any of the blogs in the PBN when logged on to the PBN’s home site backend, using the posting s/ware hosted there. Posting was via xmlrpc.
All posts when made are set to “publish” but I wanted to review all posts made to my blogs by members before publishing. So to do so, I changed the line (5036) in class-wp-xmlrpc-server.php under the
do_action( 'xmlrpc_call', 'blogger.newPost' );
section from $post_status = ( $publish ) ? ‘publish’ : ‘draft’; to $post_status = ( $publish ) ? ‘draft’ : ‘publish’;On a daily basis I retrieve all posts marked as “draft” across all blogs, using my PBN management s/ware. Once I’ve checked all the posts, I then set them all to “publish”, again through my management s/ware. This has worked perfectly for past 10 years.
But last week the decision was made to make posts using the REST API. So now I’m looking for a way to do the same as I’d done with xlmrpc, i.e. set “publish” to “draft”
Now I’ve searched through a lot files, made some experimentation, but have failed to find a solution.
Note I’m no coder, and just have enough understanding to get me by. But the API has me stumped. I’m hoping some one could point me to the code that would need to be modified, if it can be at all. I’ve been focusing on the “post.php” & “class-wp-rest-posts-controller.php” files to no avail.
TIA for any help forthcoming
Steve
- The topic ‘Bulk Change Posts from Published to Draft Across Multiple Sites’ is closed to new replies.