Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to disable Yoast meta description for all pages

This should do the job:

<?php

/**
Plugin Name: wpse425362
Description: Site specific code changes for example.com
*/

if (!defined('ABSPATH')) exit; // Exit if accessed directly   

/**
 * Removes the meta description generated by Yoast
 *
 * @param array $presenters the registered presenters.
 *
 * @return array the remaining presenters.
 */
function wpse425362_remove_description( $presenters ) {
    return array_map( function( $presenter ) {
        if ( ! $presenter instanceof Meta_Description_Presenter ) {
            return $presenter;
        }
    }, $presenters );
}

add_action( 'wpseo_frontend_presenters', 'wpse425362_remove_description' );

Save this as /wp-content/plugins/wpse425362/wpse425362.php and activate it in the plugins menu.

Related Posts:

  1. How to roll back a WordPress plugin update?
  2. How can I modify the Capability needed to access a plugin’s options?
  3. Allowing Yoast SEO plugin to track me
  4. Update Multiple Post Meta for the Same Post In One call?
  5. Comparisson between date() and a date from wp_postmeta
  6. Show the “ratingValue” and “ratingCount” values ​of KK Star Ratings Plugin
  7. Updating post meta for custom post types
  8. How can I add a custom meta value on file upload?
  9. Exclude custom post_type in sitemap generation?
  10. How to get custom field image url of specific size
  11. Yoast SEO Calling content filters 2 additional times
  12. How do I add advanced custom fields / meta fields to Elasticsearch? [closed]
  13. Yoast SEO blocking/re-initialising longer running process
  14. Can’t access my WP dashboard: fatal error? [closed]
  15. Set attached to state
  16. How to change ID of an attachment in wp_posts and its related tables correctly?
  17. Add multiple attributes to product from php
  18. Make the checkbox meta field checked by default
  19. Add custom taxonomy to title tag [closed]
  20. Where to hook my plugin’s action
  21. Is there a filter for get_post_custom()?
  22. dynamically generating plugin syntax
  23. Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
  24. One of my plugins broke when I tried to update it, how do I safely uninstall it?
  25. Create digital-virtual-downloadable WooCommerce products from the frontend using Gravity Forms? [closed]
  26. Error “preg_match_all” with WordPress SEO by Yoast plugin [closed]
  27. What is generating my meta og:description?
  28. Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
  29. How to display the “ratingValue” and “ratingCount” values ​generated by the KK Star Ratings plugin into my page’s recipe ld+json schema
  30. WordPress display breadcrumbs using Yoast plugin [closed]
  31. Yoast SEO plugin “could detect no serious SEO problems” on dashboard
  32. get current date + 90 days and checking every day
  33. WordPress Sitemap including pages that aren’t there
  34. 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
  35. Replace default og:image tag YOAST
  36. How can I change the meta_key for a particular piece of information?
  37. WordPress Post Visibility Options for Frontend
  38. Bulk update all posts from plugin settings screen
  39. Every new post/draft has a custom field variable “yst_is_cornerstone” showing
  40. How to remove/hide Yoast’s “SEO” tab in admin panel?
  41. Show Sitename on Yoast SEO Title tag [closed]
  42. Meta box losing its value when scheduled post is published
  43. How to insert multiple postmeta values with one query?
  44. Help in using SEO Plugins: SEO Ultimate And Yoast SEO Plugin
  45. Mass SQL WordPress Meta Key deletion
  46. Yoast SEO settings unavailable in an archive page from wordpress plugin
  47. Remove Yoast jQuery from front end
  48. Date format – Meta Box plugin
  49. get meta value from database by post id
  50. Yoast Force Rewrite Crashed Site [closed]
  51. How to remove bulk actions from custom post type
  52. Adding custom meta boxes to specified custom post type
  53. How to select a paragraph other than the 1st to be the post’s excerpt?
  54. How-to: This block can only be used once
  55. Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
  56. wp-admin send 404 error
  57. How can I concatenate variables to search results title? [closed]
  58. How to track analytics with a WordPress site under the same domain as my main site?
  59. YOAST Seo xmlsitemap menu item not showing in the dashboard [closed]
  60. Remember the Meta Value With Radio Buttons
  61. Set domain level rel canonical with Yoast SEO [closed]
  62. Override methods in Yoast SEO breadcrumb class
  63. Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
  64. Link Posts to External URL
  65. Why does “updated_post_meta” did not fire when uploading media other than image?
  66. What snippet do I need to type to show my ACF field show up on my theme?
  67. Is there a way to make [Table Of Content] plugin while not using revision data?
  68. custom wordpress theme and yoast seo injecting text in body
  69. Help to Create a Simple Plugin to make a post
  70. get_post_meta shortcode returns empty field
  71. Add an action based on custom post meta field
  72. Does anyone know why my SEO and title become one?
  73. how to auto random increment for post view
  74. How to securely controlling data without keeping it in postmeta?
  75. My wordpress local urls is still displayed even moved to live
  76. “Enable Media Replace” plugin does not update serialized object in WPMeta
  77. Custom Field used to allow a Free Story; no longer works
  78. Performance considerations – postmeta table versus new table for custom posts with foreign keys?
  79. Get and Update Most Meta Value as an array in HTML form
  80. Storing values in Post Meta vs new tables
  81. Add meta tags with a plugin?
  82. WordPress User Frontend Editing Custom Fields
  83. Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin
  84. wordpress last all added get meta value by post id
  85. Get post id in Post Page within Wp-admin
  86. Output plugin post like system count [closed]
  87. How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?
  88. getting image alt text via ACF plugin in WordPress [closed]
  89. Open graph issue on my theme
  90. TypeErrors with Yoast, jQuery in conflict?
  91. Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
  92. Update post meta Rest Api
  93. Yoast Seo noindex added to pages outside wordpress
  94. Fatal error in wordpress
  95. how to add meta for order in woocommerce
  96. YOAST slug does not take the custom permalink I have made
  97. how to make yoast seo read text from custom fields in custom post type
  98. Remove a specific sitemap from Sitemap_index.xml
  99. Remove wpseo filter from polylang plugin
  100. Force post update with React
Categories plugins Tags plugin-wp-seo-yoast, plugins, post-meta
There is no option to click the button in header only on some pages
Not displaying the wp_query object for the following code in the frontend

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress