New answers tagged


Ok I managed to solve this! Did some digging through how the embed system works, and it turns out it wasn't the use of wp_oembed_add_provider() that was wrong. Debugging autoembed_callback() in wp-includes\class-wp-embed.php showed that my YouTube URL was coming through but my Facebook URL never made it to this function. Echo'ing the post content before it ...


It's a missing configuration on the apache hosts file which cause troubles on serveur 'self call'. For exemple, if serveur is using, I've a timeout when I typing curl with shh. Adding in /etc/hosts file and it's work !


WordPress embed the URLs on same filter with priority of 8 in /wp-includes/class-wp-embed.php // Attempts to embed all URLs in a post add_filter( 'the_content', array( $this, 'autoembed' ), 8 ); and you are parsing content after it with priority of 10 then defiantly you will get the parsed output. You just need to do it early before WordPress embed ...

Top 50 recent answers are included