BP_Notifications_Notification::parse_args( mixed $args = '' )

Parse notifications query arguments.

Description

Parameters

$args

(Optional) Args to parse.

Default value: ''

Return

(array)

Source

File: bp-notifications/classes/class-bp-notifications-notification.php

574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
public static function parse_args( $args = '' ) {
    return wp_parse_args( $args, array(
        'id'                => false,
        'user_id'           => false,
        'item_id'           => false,
        'secondary_item_id' => false,
        'component_name'    => bp_notifications_get_registered_components(),
        'component_action'  => false,
        'is_new'            => true,
        'search_terms'      => '',
        'order_by'          => false,
        'sort_order'        => false,
        'page'              => false,
        'per_page'          => false,
        'meta_query'        => false,
        'date_query'        => false,
        'update_meta_cache' => true
    ) );
}

Changelog

Changelog
Version Description
BuddyPress 2.3.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.