Ajax call not working anymore

I figured it out using this previous post: Issue with front-end ajax, getting a 302 redirect when accessing wp-admin/admin-ajax.php Basically, I had added an action to prevent subscribers from seeing certain wordpress pages. function limit_subscriber_access() { $redirect = home_url( “https://wordpress.stackexchange.com/” ); if ( ! ( current_user_can( ‘manage_options’ ) || current_user_can( ‘edit_posts’ ) )) exit( wp_redirect( … Read more

Ajax call from Plugin using Class

All the code is correct except the way i was calling. I created a different method for __construct and then called it on the plugin it self so the scripts and styles get hooked before the templates. In my template i called the class again and the methods i need it. I no longer constructed … Read more

Load oEmbed iframe within ajax call

I figured out that I needed to call specific plateform function to fire the process. In my case Instagram and Facebook : window.instgrm.Embeds.process(); if(typeof FB!==”undefined”){ FB.XFBML.parse(); }