change a post status when users update posts?

Have you tried to use “wp_insert_post_data” instead of “pre_post_update”?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)