function feedwordpress_update_magic_url() { // Explicit update request in the HTTP request (e.g. from a cron job) if (FeedWordPress::update_requested()) { $feedwordpress = new FeedWordPress(); // need to include includes/bookmark.php for wp link functions require_once ABSPATH . 'wp-admin/includes/bookmark.php'; $feedwordpress->update(FeedWordPress::update_requested_url()); // Magic URL should return nothing but a 200 OK header packet // when successful. exit; } }