BuddyPress::notifications_for_user( string $action, int $item_id, int $secondary_item_id, int $total_items, string $format = 'string', string $component_action_name = '', string $component_name = '', int $id = '' )
Description #
Format custom notification of AnsPress.
Parameters #
- $actionstring (Required) Component action.
- $item_idint (Required) Notification item ID.
- $secondary_item_idint (Required) Notification secondary item ID.
- $total_itemsint (Required) Number of notifications with the same action.
- $formatstring (Optional) Format of return. Either 'string' or 'object'. Default value: 'string'
- $component_action_namestring (Optional) Canonical notification action. Default value: ''
- $component_namestring (Optional) Notification component ID. Default value: ''
- $idint (Optional) Notification ID. Default value: ''
Source #
File: addons/buddypress/buddypress.php
public function notifications_for_user( $action, $item_id, $secondary_item_id, $total_items, $format = 'string', $component_action_name = '', $component_name = '', $id = '' ) { if ( method_exists( $this, 'notification_' . $component_action_name ) ) { $method = 'notification_' . $action; return $this->$method( $item_id, $secondary_item_id, $total_items, $format, $id ); } }
Expand full source code Collapse full source code View on GitHub: addons/buddypress/buddypress.php:449
Add your comment