Last active
March 9, 2020 05:01
-
-
Save scottopolis/7d4dd430d7dd30a55a7a53ba74d88c9f to your computer and use it in GitHub Desktop.
Holler Box Display Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'hwp_display_notification', function( $show_it, $box_id, $post_id ) { | |
if( $post_id == '12' && $box_id == '234' ) | |
$show_it = true; | |
// you should not return false unless you want to override all other filters. It's best to either return true, or just return $show_it | |
return $show_it; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment