PHP code example of digitoimistodude / dude-insta-feed
1. Go to this page and download the library: Download digitoimistodude/dude-insta-feed library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
digitoimistodude / dude-insta-feed example snippets
/**
* Dude Instagram hashtag feed.
*/
add_filter( 'dude-insta-feed/access_token/user=USERID_HERE', function() { return 'ACCESS_TOKEN_HERE'; } );
$instagram_feed = dude_insta_feed()->get_user_images( 'USERID_HERE' );
foreach ($instagram_feed['data'] as $item) :
/**
* Limit Instagram feed items
*/
add_filter( 'dude-insta-feed/user_images_parameters', function( $parameters ) {
$parameters['count'] = '6';
return $parameters;
} );