Created
March 5, 2024 06:38
-
-
Save BhargavBhandari90/fa8bbc8bd119c6e6e16a1114891ca65e to your computer and use it in GitHub Desktop.
BuddyBoss - Show all notifications in one API
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 | |
/** | |
* We have to pass "is_new:0" and apply following filter. | |
*/ | |
function modify_where( $where_sql, $table_prefix, $r ) { | |
$where_sql = str_replace( 'AND is_new = 0', '', $where_sql ); | |
return $where_sql; | |
} | |
add_filter( 'bb_notifications_get_where_conditions', 'modify_where', 10 , 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment