noptin_should_show_optins()
Checks whether an optin form should be displayed.
Return Return
(bool)
Source Source
File: includes/functions.php
function noptin_should_show_optins() { if ( get_noptin_option( 'hide_from_subscribers' ) ) { if ( ! empty( $_COOKIE['noptin_email_subscribed'] ) ) { return false; } $cookie = get_noptin_option( 'subscribers_cookie' ); if ( ! empty( $cookie ) && is_string( $cookie ) && ! empty( $_COOKIE[ $cookie ] ) ) { return false; } } if ( ! empty( $_COOKIE['noptin_hide'] ) ) { return false; } return true; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.7 | Introduced. |