New answers tagged

2

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 ...


0

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


0

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