Support

Account

Home Forums Bug Reports get_field empty with admin_init hook Reply To: get_field empty with admin_init hook

  • If your following what you linked to there should be no issue with using get_field() on the admin init hook because this happens after acf is initialized. Whatever your issue is it is not in the code you’ve provided.

    It could be in the function called here

    
    $post = myGetPostFunction(get_current_user_id());
    

    or it could possibly be in how the field is defined.