Try this code:
add_filter( 'amp_post_template_data', 'xyz_amp_remove_featured_image' );
function xyz_amp_remove_featured_image( $data ) {
$data['featured_image'] = false;
return $data;
}
More info about the amp hooks here
https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
Related Posts:
- How can I make add_image_size() crop from the top?
- What plugin can I use to create a list / slideshow of featured images?
- Prevent publishing the post before setting a featured image?
- Modify featured image URL at runtime
- Add post thumbnail from external image with plugin
- Thumbnail with different sizes
- Meteor Slides as header only for homepage and Use featured image of each page as header for respective pages
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- AJAX image upload with a upload progress bar using media_handle_upload
- Converting Attachment to Images?
- ReOrder Post Within Categories plugin with featured image
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- Set featured image using javascript in post editor
- Add padding while generating thumbnail
- How to export all content with feature images?
- Redirect to another page using contact form 7? [closed]
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- Plugin to hide image in excerpt
- Cropping images from top center using Jetpack Photon
- Add “Featured Image” box in my plugin post page
- Couple of beginner’s questions [closed]
- Scrape a webpage for image and add it to post
- Adding featured image to posts created by a plugin
- Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won’t change to new image size?
- Add_image_size not generating correct size
- Multiple Post Thumbnails Plugin – Need help with code
- How to hide featured images of all posts falling under the same category in wordpress?
- Revision featured image
- Allow webp use on website but disallow webp as featured image during post creation
- Upload Image with a file URL and show dynamically on Frontend
- insert og image link in wordpress post
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- Display Multiple Photos as Featured Image when mouse moves on to it post
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- automatically set random featured image by category in wordpress on post
- Import 2000 posts from one website to another
- WordPress create thumbnails on demand
- Automatic set a featured image from the first image’s url (or tag) in the article
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- Update (a function) post’s featured image as soon as $image_url changes
- Can’t get or display post thumbnail in wordpress
- Adding featured image to post display widget
- Do something with thumbnail image on post publish
- How to force regenerate thumbnails in WordPress posts?
- How to add featured image on front end form?
- Lazy Load sometimes don’t work
- Determine if get_the_image has image on Get the image Plugin
- Advanced Custom Field User Help URL
- Retrieve post thumbnails
- featured image problem with custom post type
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- when i use wp automatic plugin post shows broken images
- Display Video as Post Thumbnail
- Get URL for featured image for posts? [closed]
- Multiple Post Thumbnails Not Returning URL for Background Image
- Disable email notification after change of password
- Get a list of all WordPress.org Plugins?
- Schedule WordPress Auto-Updates to only run during business hours
- Run WP-CLI using PHP
- Function to Set Product type in Woocommerce [closed]
- Calling function from within functions.php returns unwanted value
- add function to saving change on Options Pages
- Opendir and WordPress Path
- Has anyone used require.js for handling plugin scripts?
- Multiple files in a plugin
- Make the checkbox meta field checked by default
- Allow HTML in Excerpts in Elementor
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Classified ad website : which solutions to use? [closed]
- Constant Contact plugin forbidden error
- changing posts layout in ultimate member profile plugin
- Text only version of website [closed]
- Problems with migrating a WooCommerce orders [closed]
- Get User_id outside wordpress,
- HTTP 500 error after plugin install
- Integer in Array returns null
- Change the layout of action links under the plugin names
- How can i add simple code in only in posts by function.php
- Possibility to login without password
- Why are plugin settings not all nested in one place?
- Unable to use custom taxonomy with front end post form
- Replace image urls(absolute instead of relative) by using filter in single page
- WordPress and plugins update
- Links to plugin files not resolving
- Transfer from register plus to register plus redux plugin
- How to search post titles with whole words only, but not the exact word only?
- Can I disable xml-rpc by setting it to false?
- Cron: Update four post at Hour
- submit two file input fields in the same form
- Add post attachment images their links
- elementor development – custom widget like an inner section widget
- Disable plugin for administrator
- WordPress wp-admin redirects to home page
- Editing Global Variables from Inside Functions
- Posting code inside the post instead of in the template file using shortcode
- Very Slow loading. Plugins report provided by P3 included
- Allow users to enter and edit data in one-to-many configuration
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- contact form 7 captcha support anyother captcha plugin? [closed]
- wp_handle_upload – specified file failed upload test