PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
spotlight-social-photo-feeds
/
modules
<?php namespace RebelCode\Spotlight\Instagram\Modules; use Dhii\Services\Factories\Constructor; use Dhii\Services\Factories\Value; use Psr\Container\ContainerInterface; use RebelCode\Spotlight\Instagram\Actions\OEmbedHandler; use RebelCode\Spotlight\Instagram\Module; class OEmbedModule extends Module { public function run(ContainerInterface $c): void { wp_embed_register_handler( $c->get('id'), $c->get('regex'), $c->get('handler') ); } public function getFactories(): array { return [ // The ID of the handler 'id' => new Value('sl_instagram_embed'), // The base URL to use to request embeds from Facebook's API 'url' => new Value('https://graph.facebook.com/v10.0/instagram_oembed'), // The regex to match Instagram post URLs 'regex' => new Value('#https?://((m|www)\.)?instagram\.com/p/(.*)#i'), // The handler function that creates the HTML string 'handler' => new Constructor(OEmbedHandler::class, [ 'url', '@ig/client', '@accounts/cpt', ]), ]; } }
[+]
..
[-] NewsModule.php
[edit]
[-] MigrationModule.php
[edit]
[-] UpdateCronModule.php
[edit]
[-] FeedsModule.php
[edit]
[-] TokenRefresherModule.php
[edit]
[-] SecurityModule.php
[edit]
[-] WpBlockModule.php
[edit]
[-] ShortcodeModule.php
[edit]
[-] MediaModule.php
[edit]
[-] WordPressModule.php
[edit]
[-] OEmbedModule.php
[edit]
[+]
Dev
[-] RestApiModule.php
[edit]
[-] ServerModule.php
[edit]
[-] AccountsModule.php
[edit]
[-] CleanUpCronModule.php
[edit]
[-] Survey2023Module.php
[edit]
[-] NotificationsModule.php
[edit]
[-] UserModule.php
[edit]
[-] UiModule.php
[edit]
[-] WidgetModule.php
[edit]
[-] AtlasModule.php
[edit]
[-] ConfigModule.php
[edit]
[-] PreviewModule.php
[edit]
[-] InstagramModule.php
[edit]
[-] TemplatesModule.php
[edit]
[-] SaasModule.php
[edit]
[-] CacheIntegrationsModule.php
[edit]
[-] AdminModule.php
[edit]
[-] LeaveReviewModule.php
[edit]
[-] AnalyticsSurveyModule.php
[edit]
[-] EngineModule.php
[edit]