PHP question - help!
PHP question - help!
Out of context: Reply #1
- Started
- Last post
- 3 Responses
- Claymantis0
This is what the plugin uses (i think) to make the verification unique.
<?php
/*
* Email verify customisation
*/add_filter( 'dw_verify_email_template_path', 'weetend_dw_verify_email_template_path' );
function weetend_dw_verify_email_template_path( $template ){
$template = get_template_directory() . '/tpl/emails/verify.php';
return $template;
}add_filter( 'dw_verify_email_template_args', 'weetend_dw_verify_email_template_args' );
function weetend_dw_verify_email_template_args( $args ){$url = parse_url( $args['link'] );
wp_parse_str( $url['query'], $str_result );$user_id = $str_result['user_id'];
$user = get_user_by( 'id', $user_id );
$args['first_name'] = $user->first_name;
$args['last_name'] = $user->last_name;return $args;
}