wc_logs_load_tab
Action fires when the Logs tab starts loading.
Usage
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(string)
- The current view within the Logs tab.
Changelog
Since 8.6.0 | Introduced. |
Where the hook is called
wc_logs_load_tab
woocommerce/src/Internal/Admin/Logging/PageController.php 94
do_action( 'wc_logs_load_tab', $params['view'] );
Where the hook is used in WooCommerce
woocommerce/src/Internal/Admin/Logging/PageController.php 71
self::add_action( 'wc_logs_load_tab', array( $this, 'setup_screen_options' ) );
woocommerce/src/Internal/Admin/Logging/PageController.php 72
self::add_action( 'wc_logs_load_tab', array( $this, 'handle_list_table_bulk_actions' ) );
woocommerce/src/Internal/Admin/Logging/PageController.php 73
self::add_action( 'wc_logs_load_tab', array( $this, 'notices' ) );
woocommerce/src/Internal/Admin/Logging/Settings.php 48
self::add_action( 'wc_logs_load_tab', array( $this, 'save_settings' ) );