Support

Account

Home Forums General Issues How to populate a field with a $_GET ? Reply To: How to populate a field with a $_GET ?

  • Easy !

    function my_acf_load_value( $value, $post_id, $field )
    {
        return $_GET['id'];
    }
    add_filter('acf/load_value/key=field_547ccecd7b091', 'my_acf_load_value', 10, 3);

    I dont know why 10 and 3, it is in the documentation.