PHP code example of innocode-digital / wp-instagram

1. Go to this page and download the library: Download innocode-digital/wp-instagram 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/ */

    

innocode-digital / wp-instagram example snippets

`
add_filter( 'innocode_instagram_redirect_uri', function ( string $url ) {
    return $url;
} );
`
add_filter( 'innocode_instagram_scope', function ( array $scope ) {
    return $scope; // Default is array containing 'user_profile' and 'user_media'.
} );
`
add_filter( 'innocode_instagram_endpoint_mask', function ( $mask, $endpoint ) {
    return $mask; // Default is EP_ROOT constant.
}, 10, 2 );