custom_question_field send data to admin email

776 viewsGeneral
0

hello
i add custom_question_field and want to send the data that enterd in this filed in the email which i reseved as admin
what tag can i use in email body ??
this is the custom_question_field

function my_custom_question_field( $form ) {
// Url field.
$form['fields']['website'] = array(
'label' => __( 'Your website' ),
'desc' => __( 'Enter link to your website.' ),
'subtype' => 'url', // Default type is set to input.
'attr' => array(
'placeholder' => 'https://mydomain.com/',
),
'sanitize' => 'esc_url', // This sanitize will be applied by default for url field.
'validate' => 'required,max_string_length', // Require and check length of string.
'max_length' => 50, // Required by max_string_length validation.
);

Edited question