Support

Account

Forum Replies Created

  • To be sure to have the good reference, it’s possible to get it with this :
    $acf_ref = get_post_meta( $post_id, '_my_field_name', true );

    And then use $_POST[‘acf’][$acf_ref] to have the posted value.

  • UP
    I have exactly the same problem :

    
    add_filter('acf/validate_value', 'My_validate_annonce', 10, 4 );
    function My_validate_dates_annonce( $valid, $value, $field, $input ){
      if( 1 )
        return 'erreur !';
    }
    

    That do nothing…

    It the same if I put this code :

    
    add_filter('acf/validate_value/name=my_date_debut_annonce', 'My_validate_annonce', 10, 4 );
    function My_validate_dates_annonce( $valid, $value, $field, $input ){
      if( 1 )
        return 'erreur !';
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)