WordPress开发者和主题制作者的搜索引擎



bulk_actions-{$this->screen->id} ›

Since3.5.0
已弃用n/a
apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions )
参数:
  • (string[]) $actions An array of the available bulk actions.
    Required: Yes
定义在:
文档:

Filters the list table Bulk Actions drop-down.

The dynamic portion of the hook name, $this->screen->id, refers to the ID of the current screen, usually a string.

This filter can currently only be used to remove bulk actions.



Related Functions:


源码

$this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores