handle_network_bulk_actions-{$screen}

過濾鉤子
apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id )
引數
  • (string) $redirect_url The redirect URL.
    Required:
  • (string) $action The action being taken.
    Required:
  • (array) $items The items to take the action on.
    Required:
  • (int) $site_id The site ID.
    Required:
定義位置
相關勾子
handle_bulk_actions-screenhandle_network_bulk_actions-get_current_screen-idclean_network_cacheenable_live_network_countsnew_network_admin_email_content
相關方法
add_network_optiondelete_network_optionupdate_network_optionget_network_optionclean_network_cacheget_network_by_path
引入
4.7.0
棄用
-

handle_network_bulk_actions-{$screen} – 這個動作鉤子是 handle_network_bulk_actions-‘ .get_current_screen->id 鉤子的別名,目的相同。

在應處理自定義批量操作時觸發。

重定向連結應使用來自用於向使用者顯示反饋的操作的成功或失敗反饋進行修改。

鉤子名稱的動態部分$screen引用當前螢幕ID。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
$referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
$referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

常見問題

FAQs
檢視更多 >