WC_Settings_Payment_Gateways::should_render_react_section
Check if the given section should be rendered using React.
Метод класса: WC_Settings_Payment_Gateways{}
Хуков нет.
Возвращает
true|false. Whether the section should be rendered using React.
Использование
$WC_Settings_Payment_Gateways = new WC_Settings_Payment_Gateways(); $WC_Settings_Payment_Gateways->should_render_react_section( $section ): bool;
- $section(разное) (обязательный)
- The section name to check. Since this value originates from the global
$current_sectionvariable, it is best to accept anything and standardize it to a string.
Код WC_Settings_Payment_Gateways::should_render_react_section() WC Settings Payment Gateways::should render react section WC 11.0.0
public function should_render_react_section( $section ): bool {
return in_array( $this->standardize_section_name( $section ), $this->get_reactified_sections(), true );
}