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.

Метод класса: ActionScheduler_Abstract_ListTable{}

Хуков нет.

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_bulk_actions();

Код ActionScheduler_Abstract_ListTable::get_bulk_actions() WC 8.7.0

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