wc_logs_load_tab
Action fires when the Logs tab starts loading.
Использование
add_action( 'wc_logs_load_tab', 'wp_kama_wc_logs_load_tab_action' );
/**
* Function for `wc_logs_load_tab` action-hook.
*
* @param string $view The current view within the Logs tab.
*
* @return void
*/
function wp_kama_wc_logs_load_tab_action( $view ){
// action...
}
- $view(строка)
- The current view within the Logs tab.
Список изменений
| С версии 8.6.0 | Введена. |
Где вызывается хук
wc_logs_load_tab
woocommerce/src/Internal/Admin/Logging/PageController.php 93
do_action( 'wc_logs_load_tab', $params['view'] );
Где используется хук в WooCommerce
woocommerce/src/Internal/Admin/Logging/PageController.php 68
add_action( 'wc_logs_load_tab', array( $this, 'setup_screen_options' ) );
woocommerce/src/Internal/Admin/Logging/PageController.php 69
add_action( 'wc_logs_load_tab', array( $this, 'handle_list_table_bulk_actions' ) );
woocommerce/src/Internal/Admin/Logging/PageController.php 70
add_action( 'wc_logs_load_tab', array( $this, 'notices' ) );
woocommerce/src/Internal/Admin/Logging/Settings.php 45
add_action( 'wc_logs_load_tab', array( $this, 'save_settings' ) );