• URL: https://www.johnrothra.com
    Customizr: 3.3.23

    There may be times when I post an article but, after posting it, see something I need to tweak (such as the most recent one in which I forgot to add the except). So, I immediately update the post. This triggers the “Recently Updated” notification.

    I love that notification, but I’m wondering if there is a way to keep it from displaying if the update is done on the same day. However, I want it to display if the update is the next day or later.

    Thoughts?

Viewing 1 replies (of 1 total)
  • Hello Dr. J,
    try adding this to your child-theme functions.php :

    add_filter('tc_opt_tc_post_metas_update_notice_in_title', 'display_update_notice', 20);
    function display_update_notice( $_opt ){
      $days = 3; /* set this */
      if ( in_the_loop() && method_exists( 'TC_utils', 'tc_post_has_update') && $days)
        if ( TC_utils::$inst -> tc_post_has_update( 'in_days') < $days )
          return false;
      return $_opt;
    }

    Should work fine.. let me know

Viewing 1 replies (of 1 total)
  • The topic ‘Recently Updated Notice: How to Not Show it if Update is the Same Day’ is closed to new replies.