Description
Retrieve the double opt-in requirement of the opted-in page
Usage
$bool = oiksp_get_double( $post_id );Parameters
- $post_id
- ( ID ) required – of the opted-in page
Returns
bool whether or not the page is single or double opt-inSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 10 of 10
function oiksp_get_double( $post_id ) { $oiksp_double = get_post_meta( $post_id, "_oiksp_double", true ); if ( $oiksp_double == "on" ) { $oiksp_double = true; } else { $oiksp_double = false; } bw_trace2( $oiksp_double, "oiksp_double" ); return( $oiksp_double ); }View on GitHub
Called by
1 to 3 of 3
- oiksp_lazy_squeeze() – Display the squeeze page or not
- oiksp_process_squeeze_form() – Process the signup form for the squeeze page
- oiksp_validate_double() – 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
