Description
Check if the [bw_squeeze] shortcode is activeThe shortcode is inactive on the wp-signup.php page, regardless of the WordPress registration setting. This is to prevent robots, which are trying to register spam users to the site, from inadvertently being granted access to opted-in content. And potentially signed up to receive your newsletter.
Usage
$bool = oiksp_squeeze_is_active();Parameters
Returns
bool true if the shortcode is activeSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 9 of 9
function oiksp_squeeze_is_active() { global $bw_squeeze_off; if ( isset( $bw_squeeze_off ) && $bw_squeeze_off ) { $continue = false; } else { $continue = true; } return( $continue ); }View on GitHub
