Skip to content

Instantly share code, notes, and snippets.

@scottopolis
Last active March 9, 2020 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottopolis/7d4dd430d7dd30a55a7a53ba74d88c9f to your computer and use it in GitHub Desktop.
Save scottopolis/7d4dd430d7dd30a55a7a53ba74d88c9f to your computer and use it in GitHub Desktop.
Holler Box Display Filter
<?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