Title: Remove article:modified_time Meta Tag
Last modified: February 4, 2025

---

# Remove article:modified_time Meta Tag

 *  Resolved [ekesto](https://wordpress.org/support/users/ekesto/)
 * (@ekesto)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/remove-articlemodified_time-meta-tag/)
 * Aloha everyone,
 * First of all, thank you for the great plugin!
 * I’m looking for a solution to entirely remove the `article:modified_time` meta
   tag from _all_ pages, posts and custom posts.
 * It shows up when sharing in some messaging apps, and I don’t want/need that.
 * My search for hooks and filters was not successful.
 * Appreciate any hint!
 * Best wishes,
 * Beat

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * (@611shabnam)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/remove-articlemodified_time-meta-tag/#post-18288296)
 * Hi [@ekesto](https://wordpress.org/support/users/ekesto/)
 * You can use `wpseo_frontend_presenters` filter to remove the `Article_Modified_Time_Presenter`
   from the page source.
 * The Yoast SEO plugin code documents the available developer filters for customizing
   many of our plugin features. We also have a [developer portal with more information](https://developer.yoast.com/customization/apis/metadata-api/)
   about filters and many examples of how to implement them. Typically code snippets
   are added to your theme’s functions.php file. If you’re unfamiliar with using
   code snippets, we’d like to refer you to the WordPress documentation on [how to use a filter](https://developer.wordpress.org/plugins/hooks/filters/#add-filter).
 * **We recommend creating regular backups of your site and database for your site’s
   health and safety.** A backup is crucial before making important changes on your
   website and provides you with a safety net if something were to go wrong. Learn
   more about the [benefits of regular backups](https://yoast.com/help/how-to-backup-your-wordpress-site/).
 * Please know that, Google may still show the date in the search results even if
   the the date-related meta tags and schema are removed from your page source.
 *  Thread Starter [ekesto](https://wordpress.org/support/users/ekesto/)
 * (@ekesto)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/remove-articlemodified_time-meta-tag/#post-18289994)
 * Hi Mushrit,
 * thanks for pointing me in the right direction!
 * For anyone interested in the solution of this specific case: I’ll post the code
   here (works with v24.4):
 *     ```wp-block-code
       function remove_canonical_presenter($presenters) {    return array_map(function ($presenter) {        if (!$presenter instanceof Yoast\WP\SEO\Presenters\Open_Graph\Article_Modified_Time_Presenter) {            return $presenter;        }    }, $presenters);}add_action('wpseo_frontend_presenters', 'remove_canonical_presenter');
       ```
   
 * This displays all _but_ the modified time meta tag.
 * I had to use the class name _including_ namespace to make it work.
 * Best wishes!
 *  [Sam Smith](https://wordpress.org/support/users/gepotenuz/)
 * (@gepotenuz)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/remove-articlemodified_time-meta-tag/#post-18290518)
 * Thank you Ekesto, but in my Open Graph markup there is still a modified time,
   version 24.4
    -  This reply was modified 1 year, 2 months ago by [Sam Smith](https://wordpress.org/support/users/gepotenuz/).
 *  Thread Starter [ekesto](https://wordpress.org/support/users/ekesto/)
 * (@ekesto)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/remove-articlemodified_time-meta-tag/#post-18291153)
 * [@gepotenuz](https://wordpress.org/support/users/gepotenuz/) , the code above
   removes `<meta property="article:modified_time` in my case.
 * By the way, for more clarity I would rename the callback function from `remove_canonical_presenter`
   into `custom_theme_remove_article_modified_time_presenter`.
 * The published and modified date is still in the `<script type="application/ld
   +json` script, but this is not shown when sharing a website or post in messaging
   apps, which was what I was looking for.
 * Good luck!
 *  [Sam Smith](https://wordpress.org/support/users/gepotenuz/)
 * (@gepotenuz)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/remove-articlemodified_time-meta-tag/#post-18291288)
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove article:modified_time Meta Tag’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [Meta Tag](https://wordpress.org/support/topic-tag/meta-tag/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 5 replies
 * 3 participants
 * Last reply from: [Sam Smith](https://wordpress.org/support/users/gepotenuz/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/remove-articlemodified_time-meta-tag/#post-18291288)
 * Status: resolved