Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- foreach (file('/tweet-ids.txt') as $tweet_id) {
- $tweet_id = trim($tweet_id);
- $url = home_url('index.php').'?'.http_build_query(array(
- 'aktt_action' => 'import_tweet',
- 'tweet_id' => $tweet_id,
- 'social_api_key' => Social::option('system_cron_api_key')
- ), null, '&');
- // error_log('Importing tweet '.$tweet_id.' '.$url);
- wp_remote_get(
- $url,
- array(
- 'timeout' => 0.01,
- 'blocking' => false,
- 'sslverify' => apply_filters('https_local_ssl_verify', true),
- )
- );
- }
Add Comment
Please, Sign In to add comment