Home / Admin / Remove article:published_time and article:modified_time meta tags from all posts
Duplicate Snippet

Embed Snippet on Your Site

Remove article:published_time and article:modified_time meta tags from all posts

This filter can be used to remove article:published_time and article:modified_time meta tags from all posts

10+
Code Preview
php
<?php
add_filter( 'aioseo_facebook_tags', 'aioseo_filter_facebook_article_tags' );
function aioseo_filter_facebook_article_tags( $facebookMeta ) {
   if ( is_singular() ) {
      $facebookMeta['article:published_time'] = '';
      $facebookMeta['article:modified_time']  = '';
   }
   return $facebookMeta;
}

Comments

Add a Comment