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
445                 * The dynamic portion of the hook name, `$this->screen->id`, refers
446                 * to the ID of the current screen, usually a string.
447                 *
448                 * This filter can currently only be used to remove bulk actions.
449                 *
450                 * @since 3.5.0
451                 *
452                 * @param string[] $actions An array of the available bulk actions.
453                 */
454                $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );
455                $two            = '';
456           } else {
457                $two = '2';
458           }
459
460           if ( empty( $this->_actions ) ) {
461                return;
462           }
463