Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • craig334
    Participant

    @craig334

    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’ );

Viewing 1 replies (of 1 total)
Skip to toolbar