WC_Gateway_BACS::is_reactified_settings_page
Check if the BACS settings page is reactified.
Method of the class: WC_Gateway_BACS{}
No Hooks.
Returns
true|false. Whether the BACS settings page is reactified or not.
Usage
// private - for code of main (parent) class only $result = $this->is_reactified_settings_page(): bool;
WC_Gateway_BACS::is_reactified_settings_page() WC Gateway BACS::is reactified settings page code WC 10.5.0
private function is_reactified_settings_page(): bool {
// Search for a WC_Settings_Payment_Gateways instance in the settings pages.
$payments_settings_page = null;
foreach ( WC_Admin_Settings::get_settings_pages() as $settings_page ) {
if ( $settings_page instanceof WC_Settings_Payment_Gateways ) {
$payments_settings_page = $settings_page;
break;
}
}
// If no instance found, default to reactified.
if ( empty( $payments_settings_page ) ) {
return true;
}
return $payments_settings_page->should_render_react_section( WC_Settings_Payment_Gateways::BACS_SECTION_NAME );
}