Got it
/**
* Clean up Event Notices()
*/
function notice_filter($string) {
return strpos($string, 'No matching events') === false;
}
function tribe_the_notices($html, $notices) {
$notices = array_filter($notices, __NAMESPACE__ . '\\notice_filter');
$html = ! empty( $notices ) ? '<div class="tribe-events-notices"><ul><li>' . implode( '</li><li>', $notices ) . '</li></ul></div>' : '';
return $html;
}
add_filter('tribe_the_notices', __NAMESPACE__ . '\\tribe_the_notices', 10, 2);
-
This reply was modified 9 years, 8 months ago by
Colin.