im trying make a function to auto correct posts when i open the posts in the backoffice September 28, 2022 by Tarik Billa Ahh, you’re using the wrong action – you need: add_filter( 'wp_insert_post_data', 'processpost' ); View wp_insert_post source