• Capobis

    (@ioweuiraosjfosj)


    I’m trying to include user data in the PDF (not the author info, I mean the user is downloading the PDF).

    In the template this code displays user data:

    <?php echo esc_attr($data->display_name) ?>
    <?php echo esc_attr($data->user_email) ?>
    <?php echo get_user_meta($data->ID , 'st_phone' , true) ?>
    <?php echo get_user_meta($data->ID , 'st_address' , true) ?>

    Attempt to edit the wp-post-to-pdf-enhanced file and add something like:

    $html .= ' get_user_meta($data->ID , "st_phone" , true)';
    			$html .= ' get_user_meta($data->ID , "st_address" , true)';

    But it does not work! Please how can show the user data in the PDF?

    Thanks in advanced.

    https://ww.wp.xz.cn/plugins/wp-post-to-pdf-enhanced/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Insert user data in the PDF’ is closed to new replies.