• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / ActionScheduler_Abstract_ListTable::get_bulk_actions() – 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.

You appear to be a bot. Output may be restricted

Description

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.

Usage

ActionScheduler_Abstract_ListTable::get_bulk_actions();

Parameters

Returns

void

Source

File name: woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php


Lines:

1 to 14 of 14
  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 ] = $this->translate( $label );
    }

    return $actions;
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th November 2019

Primary Sidebar

Information

Function name: ActionScheduler_Abstract_ListTable::get_bulk_actions
Class ref: ActionScheduler_Abstract_ListTable
Plugin ref: WooCommerce
Version: 3.8.0
Sourcefile: includes/libraries/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php
File ref: includes/libraries/action-scheduler/classes/ActionScheduler_Abstract_ListTable.php
Deprecated?: No
API Letters: A,B,G,L

Footer

WooCommerce a2z WooCommerce a2z
WooCommerce
WordPress 5.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites