PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
spotlight-social-photo-feeds
/
src
/
core
/
Actions
<?php declare(strict_types=1); namespace RebelCode\Spotlight\Instagram\Actions; use RebelCode\Iris\Importer; use RebelCode\Spotlight\Instagram\ErrorLog; use RebelCode\Spotlight\Instagram\Feeds\FeedManager; use Throwable; class UpdateFeedsAction { /** @var Importer */ protected $importer; /** @var FeedManager */ protected $feedManager; /** Constructor */ public function __construct(Importer $importer, FeedManager $feedManager) { $this->importer = $importer; $this->feedManager = $feedManager; } public function __invoke() { try { do_action('spotlight/instagram/before_update_feeds'); $feeds = $this->feedManager->query(); $sources = []; foreach ($feeds as $feed) { foreach ($feed->sources as $source) { $sources[(string) $source] = $source; } } $this->importer->importForSources(array_values($sources)); } catch (Throwable $exception) { ErrorLog::exception($exception); } } }
[+]
..
[-] UpdateFeedsAction.php
[edit]
[-] CleanUpMediaAction.php
[edit]
[-] DeleteAllPostsAction.php
[edit]
[-] AuthCallbackListener.php
[edit]
[-] IgImageProxy.php
[edit]
[-] RenderShortcode.php
[edit]
[-] BatchHandler.php
[edit]
[-] UpdateAccountsAction.php
[edit]
[-] RefreshAccessTokensAction.php
[edit]
[-] OEmbedHandler.php
[edit]