zestpush
Forum Replies Created
-
Forum: Plugins
In reply to: [Zestpush - Web Push Notifications] Defer or Async loading supportThank you for your valuable feedback! We’re committed to improving the performance of our plugin, and we’re happy to inform you that the
deferloading support will be included in the next update. Your suggestion will help make the plugin even better. We appreciate your input!ok i got it
`function my_function( $post_id ) {
$postdate = date( ‘Y-m-d H:i:s’, strtotime( current_time( ‘mysql’ ) ) );
$my_args = array(
‘ID’ => $post_id,
‘post_date’ => $postdate );
if ( ! wp_is_post_revision( $post_id ) ){
remove_action(‘save_post’, ‘my_function’);
wp_update_post( $my_args );
add_action(‘save_post’, ‘my_function’); } }
add_action(‘save_post’, ‘my_function’);I added this code to function.pho and set cache life span 0 in wp-optimize but not working