WC_Settings_Payment_Gateways::__construct
Constructor.
Метод класса: WC_Settings_Payment_Gateways{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Settings_Payment_Gateways = new WC_Settings_Payment_Gateways(); $WC_Settings_Payment_Gateways->__construct();
Код WC_Settings_Payment_Gateways::__construct() WC Settings Payment Gateways:: construct WC 10.5.2
public function __construct() {
$this->id = self::TAB_NAME;
$this->label = esc_html_x( 'Payments', 'Settings tab label', 'woocommerce' );
// Add filters and actions.
add_filter( 'admin_body_class', array( $this, 'add_body_classes' ), 30 );
add_action( 'admin_head', array( $this, 'hide_help_tabs' ) );
// Hook in as late as possible - `in_admin_header` is the last action before the `admin_notices` action is fired.
// It is too risky to hook into `admin_notices` with a low priority because the callbacks might be cached.
add_action( 'in_admin_header', array( $this, 'suppress_admin_notices' ), PHP_INT_MAX );
// Do not show any store alerts (WC admin notes with type: 'error,update' and status: 'unactioned')
// on the WooCommerce Payments settings page and Reactified sections.
add_filter( 'woocommerce_admin_features', array( $this, 'suppress_store_alerts' ), PHP_INT_MAX );
parent::__construct();
}