WC_Settings_Payment_Gateways::should_render_react_sectionpublicWC 1.0

Check if the given section should be rendered using React.

Method of the class: WC_Settings_Payment_Gateways{}

No Hooks.

Returns

true|false. Whether the section should be rendered using React.

Usage

$WC_Settings_Payment_Gateways = new WC_Settings_Payment_Gateways();
$WC_Settings_Payment_Gateways->should_render_react_section( $section ): bool;
$section(mixed) (required)
The section name to check. Since this value originates from the global $current_section variable, it is best to accept anything and standardize it to a string.

WC_Settings_Payment_Gateways::should_render_react_section() code WC 10.3.3

public function should_render_react_section( $section ): bool {
	return in_array( $this->standardize_section_name( $section ), $this->get_reactified_sections(), true );
}