BP_Activity_List_Table::get_bulk_actions()

Get bulk actions.

Description

Return

(array) Key/value pairs for the bulk actions dropdown.

Source

File: bp-activity/classes/class-bp-activity-list-table.php

	function get_bulk_actions() {
		$actions = array();
		$actions['bulk_spam']   = __( 'Mark as Spam', 'buddyboss' );
		$actions['bulk_ham']    = __( 'Not Spam', 'buddyboss' );
		$actions['bulk_delete'] = __( 'Delete Permanently', 'buddyboss' );

		/**
		 * Filters the default bulk actions so plugins can add custom actions.
		 *
		 * @since BuddyPress 1.6.0
		 *
		 * @param array $actions Default available actions for bulk operations.
		 */
		return apply_filters( 'bp_activity_list_table_get_bulk_actions', $actions );
	}

Changelog

Changelog
Version Description
BuddyPress 1.6.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.