ActionScheduler_Abstract_ListTable::get_bulk_actions()protectedWC 1.0

Reads $this->bulk_actions and returns an array that WP_List_Table understands. It also validates that the bulk method handler exists. It throws an exception because this is a library meant for developers and missing a bulk method is a development-time error.

Method of the class: ActionScheduler_Abstract_ListTable{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_bulk_actions();

ActionScheduler_Abstract_ListTable::get_bulk_actions() code WC 9.3.1

protected function get_bulk_actions() {
	$actions = array();

	foreach ( $this->bulk_actions as $action => $label ) {
		if ( ! is_callable( array( $this, 'bulk_' . $action ) ) ) {
			throw new RuntimeException( "The bulk action $action does not have a callback method" );
		}

		$actions[ $action ] = $label;
	}

	return $actions;
}