Ejemplo n.º 1
0
/**
 * @since 3.0.2
 */
function awpcp_verify_email_verification_hash($ad_id, $hash)
{
    return strcmp(awpcp_get_email_verification_hash($ad_id), $hash) === 0;
}
Ejemplo n.º 2
0
/**
 * @since 3.0.2
 */
function awpcp_get_email_verification_url($ad_id)
{
    $hash = awpcp_get_email_verification_hash($ad_id);
    if (get_option('permalink_structure')) {
        return home_url("/awpcpx/listings/verify/{$ad_id}/{$hash}");
    } else {
        $params = array('awpcpx' => true, 'awpcp-module' => 'listings', 'awpcp-action' => 'verify', 'awpcp-ad' => $ad_id, 'awpcp-hash' => $hash);
        return add_query_arg(urlencode_deep($params), home_url('index.php'));
    }
    return user_trailingslashit($url);
}