Support » Plugin: WP User Manager - User Profile Builder & Membership » Adding ACF custom fields to New Registration email

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mark Kevin

    (@mkesteban08)

    Hi @joeinc ,

    It’s practically the same format that you would want to follow if you would like to proceed with such. Take note that ACF will use the field’s name as the meta_key and the value entered as the meta_value.

    You will need to use only the meta_value of the field and use it to print like from this line:
    $message .= sprintf( esc_html__( ‘Website: %s’, ‘wp-user-manager’ ), $user->user_url ) . “<br>”;

    From the example above, you will just need to change user_url to what the field has as a meta_value and nothing else.

    I hope that this could help. Have a nice day!

    Best regards,
    Mark

    Thread Starter joeinc

    (@joeinc)

    Thanks @mkesteban08, I managed to get that to work using the $user->field_name

    so E.g. if I had an ACF field with the name job_title, $user->job_title

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.