WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Plugins_List_Table::get_bulk_actions() WP 1.0

Это метод класса: WP_Plugins_List_Table

  • Global. Строка. $status

Хуков нет.

Возвращает

Массив.

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

$WP_Plugins_List_Table = new WP_Plugins_List_Table();
$var = $WP_Plugins_List_Table->get_bulk_actions();

Код WP Plugins List Table::get bulk actions: wp-admin/includes/class-wp-plugins-list-table.php WP 5.2

<?php
protected function get_bulk_actions() {
	global $status;

	$actions = array();

	if ( 'active' != $status ) {
		$actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Activate' ) : __( 'Activate' );
	}

	if ( 'inactive' != $status && 'recent' != $status ) {
		$actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Deactivate' ) : __( 'Deactivate' );
	}

	if ( ! is_multisite() || $this->screen->in_admin( 'network' ) ) {
		if ( current_user_can( 'update_plugins' ) ) {
			$actions['update-selected'] = __( 'Update' );
		}
		if ( current_user_can( 'delete_plugins' ) && ( 'active' != $status ) ) {
			$actions['delete-selected'] = __( 'Delete' );
		}
	}

	return $actions;
}