@craig334
6 years, 5 months ago
function custom_filter_notifications_get_registered_components( $component_names = array() ) {
// Force $component_names to be an array if ( ! is_array( $component_names ) ) { $component_names = array(); }
// Add ‘custom’ component to registered components array array_push( $component_names, ‘custom’ );
// Return component’s with ‘custom’ appended return $component_names; } add_filter( ‘bp_notifications_get_registered_components’, ‘custom_filter_notifications_get_registered_components’ );