Title: Filter for Open Graph article:published_time
Last modified: May 9, 2020

---

# Filter for Open Graph article:published_time

 *  Resolved [jacky_K](https://wordpress.org/support/users/jacky_k/)
 * (@jacky_k)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/)
 * Hello!
    I used a filter `add_filter( 'wpseo_og_article_published_time', 'my_func_yoast_publish_date',
   90, 2 );`
 * But after the last update, it stopped working.
    How can I change the publication
   date of article?
    -  This topic was modified 6 years ago by [jacky_K](https://wordpress.org/support/users/jacky_k/).
    -  This topic was modified 6 years ago by [jacky_K](https://wordpress.org/support/users/jacky_k/).

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/page/2/?output_format=md)

 *  [Suwash Kunwar](https://wordpress.org/support/users/suascat_wp/)
 * (@suascat_wp)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12805953)
 * [@jacky_k](https://wordpress.org/support/users/jacky_k/),
 * Are you trying to hide the article published date? You can use this filter.
 * `add_filter( 'wpseo_og_article_published_time', '__return_false' );`
 *  Thread Starter [jacky_K](https://wordpress.org/support/users/jacky_k/)
 * (@jacky_k)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12806186)
 * This filter does not work.
 *  Plugin Support [amboutwe](https://wordpress.org/support/users/amboutwe/)
 * (@amboutwe)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12808929)
 * I just tested the filter and the return false removes the Open Graph published
   time as expected on a post.
 * To be sure we’re on the same page, this filter applies to this line as output
   by Yoast SEO:
    `<meta property="article:published_time" content="2020-05-09T17:
   03:46+00:00" />`
 * Can you elaborate on what you are seeing and what you expect to see? Are you 
   changing the published time of a post, page, taxonomy or custom post type?
 *  Thread Starter [jacky_K](https://wordpress.org/support/users/jacky_k/)
 * (@jacky_k)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12809516)
 * Hello!
    I added the code to function.php [http://ipic.su/img/img7/fs/kiss_45kb.1589096505.jpg](http://ipic.su/img/img7/fs/kiss_45kb.1589096505.jpg)
   This filter does not work. Test page: [http://kalinsg5.bget.ru/wordpress/lorem-ipsum/](http://kalinsg5.bget.ru/wordpress/lorem-ipsum/)
   I see the following code: [http://ipic.su/img/img7/fs/kiss_139kb.1589096585.jpg](http://ipic.su/img/img7/fs/kiss_139kb.1589096585.jpg)
 *  [Satinder Singh](https://wordpress.org/support/users/satindersingh/)
 * (@satindersingh)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12810727)
 * Yes, these filters to remove modified/updated time do not work.
 *     ```
       add_filter( 'wpseo_og_article_published_time', '__return_false' );
       add_filter( 'wpseo_og_article_modified_time', '__return_false' );
       add_filter( 'wpseo_og_og_updated_time', '__return_false' );
       ```
   
 * I want to remove:-
 * `<meta property="article:modified_time" content="2020-05-10T14:11:26+00:00" /
   >`
    -  This reply was modified 6 years ago by [Satinder Singh](https://wordpress.org/support/users/satindersingh/).
 *  [mihdan](https://wordpress.org/support/users/mihdan/)
 * (@mihdan)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12811846)
 * `add_filter( 'wpseo_opengraph_show_publish_date', '__return_false' );`
 *  Thread Starter [jacky_K](https://wordpress.org/support/users/jacky_k/)
 * (@jacky_k)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12811940)
 * I need to not hide the date. I need to change the publication date.
 *  [Satinder Singh](https://wordpress.org/support/users/satindersingh/)
 * (@satindersingh)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12812465)
 * [@mihdan](https://wordpress.org/support/users/mihdan/) how to hide **property
   =”article:modified_time”** ?
 *  [mihdan](https://wordpress.org/support/users/mihdan/)
 * (@mihdan)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12814906)
 * [@satindersingh](https://wordpress.org/support/users/satindersingh/) There is
   no filter 🙁
 * ![](https://i0.wp.com/i.imgur.com/vzheqOW.jpg?ssl=1)
 *  [mihdan](https://wordpress.org/support/users/mihdan/)
 * (@mihdan)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12815461)
 * But there is a solution:
 *     ```
       add_filter(
           'wpseo_frontend_presenter_classes',
           function ( $filter ) {
   
       	if (($key = array_search('Yoast\WP\SEO\Presenters\Open_Graph\Article_Modified_Time_Presenter', $filter)) !== false) {
       		unset($filter[$key]);
       	}
   
       	return $filter;
           }
       );
       ```
   
 *  [mihdan](https://wordpress.org/support/users/mihdan/)
 * (@mihdan)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12815865)
 * [@jacky_k](https://wordpress.org/support/users/jacky_k/) [https://gist.github.com/mihdan/7d1adf827469f4ccb385f0321f36c92a](https://gist.github.com/mihdan/7d1adf827469f4ccb385f0321f36c92a)
 *  [Satinder Singh](https://wordpress.org/support/users/satindersingh/)
 * (@satindersingh)
 * [6 years ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12816003)
 * [@mihdan](https://wordpress.org/support/users/mihdan/) thanks a lot for sharing
   best solution 🙂
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12844515)
 * [@jacky_k](https://wordpress.org/support/users/jacky_k/) Can you please confirm
   whether you were able to resolve this by using the [@mihdan](https://wordpress.org/support/users/mihdan/)
   provided solution?
 *  Thread Starter [jacky_K](https://wordpress.org/support/users/jacky_k/)
 * (@jacky_k)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12844856)
 * [@mazedulislamkhan](https://wordpress.org/support/users/mazedulislamkhan/), yes
   [@mihdan](https://wordpress.org/support/users/mihdan/)’s solution helped me. 
   But I hoped that the developers will return the desired filter.
 *  [Olaf Lederer](https://wordpress.org/support/users/finalwebsites/)
 * (@finalwebsites)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/#post-12882855)
 * Hi,
    I don’t get this, how is this issue resolved? After the big frontend change
   in version 14.x, none of these filters are working anymore. Sure the workaround
   from [@mihdan](https://wordpress.org/support/users/mihdan/) works, but (again)
   a good working filter is gone.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/page/2/?output_format=md)

The topic ‘Filter for Open Graph article:published_time’ 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/)

 * 16 replies
 * 8 participants
 * Last reply from: [blissyung](https://wordpress.org/support/users/blissyung/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/filter-for-open-graph-articlepublished_time/page/2/#post-13013965)
 * Status: resolved