Hello,
How can I disable auto generation of excerpts in WP? If the post doesn’t have an excerpt, I don’t want the rest API / GraphQL endpoint to return an auto generated one.
Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
Could add this to your theme’s function file:
remove_filter( ‘get_the_excerpt’, ‘wp_trim_excerpt’ );