• Resolved musme

    (@profil-tv)


    Hello! It is possible to update publish date of ad after editing on manage-edit page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, i am afraid that without modifying original WPAdverts source code it is not really possible right now, sorry.

    When updating the Advert it’s ‘modified’ date is changed, so maybe you could use that?

    Thread Starter musme

    (@profil-tv)

    This is solution
    Thanks for greate plugin and adverts_update_post filter)

    add_filter(‘adverts_update_post’, ‘update_ad_publish_date’);
    function update_ad_publish_date( $data ) {
    $data[‘post_date’] = date(“Y-m-d H:i:s”);
    $data[‘post_date_gmt’] = gmdate(“Y-m-d H:i:s”);

    return $data;
    }

    Plugin Author Greg Winiarski

    (@gwin)

    Ohh that’s great, thanks for the update!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘publish date update after editing’ is closed to new replies.