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

Parse notifications query arguments.


Description Description


Parameters Parameters

$args

(Optional) Args to parse.

Default value: ''


Top ↑

Return Return

(array)


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.