WC_Settings_Payment_Gateways::hide_help_tabs
Hide the help tabs.
Method of the class: WC_Settings_Payment_Gateways{}
No Hooks.
Returns
null. Nothing (null).
Usage
$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 code WC 10.3.3
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();
}