WC_Settings_Payment_Gateways::hide_help_tabs
Hide the help tabs.
Метод класса: WC_Settings_Payment_Gateways{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Settings_Payment_Gateways = new WC_Settings_Payment_Gateways(); $WC_Settings_Payment_Gateways->hide_help_tabs();
Код WC_Settings_Payment_Gateways::hide_help_tabs() WC Settings Payment Gateways::hide help tabs WC 11.0.1
public function hide_help_tabs() {
global $current_tab, $current_section;
$screen = get_current_screen();
if ( ! $screen instanceof WP_Screen || 'woocommerce_page_wc-settings' !== $screen->id ) {
return;
}
// We only want to hide the help tabs on the main WooCommerce Payments settings page and Reactified sections.
if ( self::TAB_NAME !== $current_tab ) {
return;
}
if ( ! $this->should_render_react_section( $current_section ) ) {
return;
}
$screen->remove_help_tabs();
}