Add filter for display conditions - Fixes #26
This commit is contained in:
@ -18,6 +18,11 @@ class CWV3 {
|
||||
$homepage = get_option( 'cwv3_homepage' );
|
||||
$misc = get_option( 'cwv3_misc' );
|
||||
|
||||
$should_gate = apply_filters( 'cwv3_should_gate', true, $post );
|
||||
if ( false === $should_gate ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( 'enabled' == ! empty( $site_wide ) ) {
|
||||
return 'sitewide';
|
||||
}
|
||||
|
Reference in New Issue
Block a user