remove published post notice while error handled
问题 im creating an error handler for a custom post type. add_filter( 'wp_insert_post_data' , 'filter_post_data' , '99', 2 ); function filter_post_data( $data , $postarr ) { //error handling if($data['post_type'] == 'post_annunci') { if($postarr['annuncio_prezzo'] == '' || !is_numeric($postarr['annuncio_prezzo'])) { $errors .= 'Annuncio non salvato, devi inserire un prezzo con valori numerici.</br>prezzo = '.$postarr['annuncio_prezzo']; update_option('my_admin_errors', $errors); $data['post_status