You appear to be a bot. Output may be restricted
Description
If the opted-in page requires double opt-in then we need to validate the confirm field as well We should only need to do this when we are on the opted-in page
This function is not called if the oik-contact status is already "double"
Usage
oiksp_validate_double( $post, $confirm, $atts );
Parameters
- $post
- ( mixed ) required –
- $confirm
- ( mixed ) required –
- $atts
- ( mixed ) required –
Returns
void
Source
File name: oik-squeeze/shortcodes/oik-squeeze.php
Lines:
1 to 25 of 25
function oiksp_validate_double( $post, $confirm, &$atts ) { $result = bw_array_get( $atts, 'confirm_key_required', false ); if ( $result ) { $double = oiksp_get_double( $atts['oiksp_id'] ); if ( $double ) { $result = oiksp_check_confirm( $post->ID, $confirm, $atts ); if ( $result ) { $result = oiksp_update_status( $post->ID, "double" ); oiksp_confirmed_contact( $post, $atts ); $atts['confirm_key_required'] = false; } else { p( "Please enter a valid confirmation key." ); //$atts['confirm_key_required'] = true; } } else { $result = true; } } else { $result = true; } bw_trace2(); return( $result ); }