Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: bulk_actions-{$this->screen->id}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
466                 *
467                 * The dynamic portion of the hook name, `$this->screen->id`, refers
468                 * to the ID of the current screen.
469                 *
470                 * @since 3.1.0
471                 * @since 5.6.0 A bulk action can now contain an array of options in order to create an optgroup.
472                 *
473                 * @param array $actions An array of the available bulk actions.
474                 */
475                $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
476
477                $two = '';
478           } else {
479                $two = '2';
480           }
481
482           if ( empty( $this->_actions ) ) {
483                return;
484           }