You appear to be a bot. Output may be restricted
Description
Check the status of the oik_contact record for the opt-in requirements of the opted-in page
Usage
$string = oiksp_check_status( $post_id, $atts );
Parameters
- $post_id
- ( ID ) required – of the oik-contact
- $atts
- ( array ) required – reference to the array of atts
Returns
string the status, if valid for the opt-in typeSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 14 of 14
function oiksp_check_status( $post_id, &$atts ) { $atts['status'] = oiksp_get_status( $post_id ); $double = bw_array_get( $atts, "double", false ); if ( $double ) { $valid_statuses = array( "double" ); } else { $valid_statuses = array( "single", "double", "unconfirmed", "unsubscribed" ); } $valid_statuses = bw_assoc( $valid_statuses ); $valid = bw_array_get( $valid_statuses, $atts['status'], false ); bw_trace2( $valid_statuses, "valid_statuses" ); bw_trace2( $valid, "valid?" ); return( $valid ); }