Support

Account

Home Forums Backend Issues (wp-admin) Pre fill Text field with the post title Reply To: Pre fill Text field with the post title

  • Was just about to ask the same question 🙂

    I managed to do it using the following code:

    function my_acf_load_value( $value, $post_id, $field ) {
        $value = get_the_title(); 
        return $value;
    }
    add_filter('acf/load_value/name=FIELD_NAME', 'my_acf_load_value', 10, 3);