Fork me on GitHub

If you want to use the Synchronize to WordPress/AD feature you need to set up a cron job. You can do this by using the WordPress plugin WP Crontrol.

Get WP Crontrol

Add the PHP Cron Event

WP Crontrol add Cron Job
  1. Click "Tools" > Click "Cron Events" > Click "Add PHP Cron Event"
  2. Enter the following code
$postData = http_build_query(
array(
    	'next_ad_int-task' => 'sync-to-wordpress', // If you want to add a CRON job for sync to ad as well just change “wordpress” to “ad”
	'auth-code' => 'Authcode' // Please enter your Auth code here
    )
);
$opts = array('http' =>
array(
	'method' => 'POST',
	'content' => $postData
    )
);

$context = stream_context_create($opts);
$result = file_get_contents('http://localhost/wordpress-singlesite/wp-admin/admin.php', false, $context); // Please enter your link here
  1. Modify the task, link and authcode so they fit to your environment.

  2. Configure the "Next Run" and "Recurrence" settings.

  3. Click "Add PHP Cron Event"

  4. Done :)

The added task will automatically run on the next scheduled date.