Grazie al nostro amato WordPress, possiamo fare tante cose, e, tra queste, la possibilità di integrare tante funzionalità nel codice è l'arma vincente di questo CMS.
Oggi ci occuperemo di come integrare (tramite il comando oEmbed) Instagram in WordPress.
Tutto ciò di cui avete bisogno è di aprire un file .php vuoto e chiamarlo wpb-instagram.php, poi copiate il codice seguente e salvate il file
03 |
Plugin Name: WPB Add Instagram oEmbed |
04 |
Description: Adds oEmbed support for Instagram |
09 |
// Add Instagram oEmbed |
10 |
function wpb_oembed_instagram(){ |
14 |
add_action( 'init' , 'wpb_oembed_instagram' ); |
Caricate il file nella cartella dei plugin e attivatelo.
Fatto! facile, no?