WC_Settings_Payment_Gateways_React::should_render_react_section()privateWC 1.0

Check if the given section should be rendered using React.

Method of the class: WC_Settings_Payment_Gateways_React{}

No Hooks.

Return

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

Usage

// private - for code of main (parent) class only
$result = $this->should_render_react_section( $section );
$section(string) (required)
The section to check.

WC_Settings_Payment_Gateways_React::should_render_react_section() code WC 9.5.1

private function should_render_react_section( $section ) {
	return in_array( $section, $this->get_reactify_render_sections(), true );
}