Removing wp-embed in WordPress can help pass the AMP validation test for your website to become AMP ready. All you may need is to deregister the wp-embed script.
1 answers
1
Remove wp-embed from WordPress
You can remove this by adding the below function to your WordPress theme’s functions.php file.
- Open functions.php by navigating to Appearance > Editor > Theme Functions in WordPress;
- Add the function below function and WordPress action.
function deregister_wp_scripts() { wp_deregister_script( 'wp-embed' ); } add_action( 'wp_footer', 'deregister_wp_scripts' );
— Support WizardAnswer 1