add_filter( 'my_custom_pre_filter', 'my_custom_pre_filter' ); function my_custom_pre_filter( $data ) { if ( 'something' != $data[ 'something' ] ) { return array( 'type' => 'error', 'note' => __( 'Something is not right', 'my-text-domain' ) ); } }
add_filter( 'my_custom_pre_filter', 'my_custom_pre_filter' ); function my_custom_pre_filter( $data ) { if ( 'something' != $data[ 'something' ] ) { return array( 'type' => 'error', 'note' => __( 'Something is not right', 'my-text-domain' ) ); } }