Automattic\WooCommerce\Internal\Admin\Logging
PageController::maybe_do_logs_tab_action()
Determine if the current tab on the Status page is Logs, and if so, fire an action.
Метод класса: PageController{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->maybe_do_logs_tab_action(): void;
Код PageController::maybe_do_logs_tab_action() PageController::maybe do logs tab action WC 9.5.1
private function maybe_do_logs_tab_action(): void { $is_logs_tab = 'logs' === filter_input( INPUT_GET, 'tab' ); if ( $is_logs_tab ) { $params = $this->get_query_params( array( 'view' ) ); /** * Action fires when the Logs tab starts loading. * * @param string $view The current view within the Logs tab. * * @since 8.6.0 */ do_action( 'wc_logs_load_tab', $params['view'] ); } }