@izayin; aşağıdaki betiği deneyebilir misiniz?

<?php

	require('wp-load.php');

	function c_get_posts($args)
	{
		return get_posts($args);
	}

	function c_update_post($id, $status)
	{
		$post = get_post($id, 'ARRAY_A');

		$post['post_status'] = $status;

		wp_update_post($post);
	}

	$c_posts = c_get_posts(
		array(
			'post_status' => 'draft',
			'post_type' => 'post'
		)
	);

	foreach ($c_posts as $c_post)
	{
		c_update_post($c_post->ID, 'publish');
	}