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 (Required) Canonical notification action.
- $component_namestring (Required) Notification component ID.
- $idint (Required) Notification ID.
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:413
Add your comment