Class WC_Payment_Gateways

WooCommerce Payment Gateways class

Loads payment gateways via hooks for use in the store.

Package: WooCommerce\Classes\Payment
Category: Class
Author: WooThemes
Version: 1.6.4
Class: WC_Payment_Gateways
Located at includes/class-wc-payment-gateways.php

Methods summary

public static Main
# instance( )

Main WooCommerce Instance

Main WooCommerce Instance

Ensures only one instance of WooCommerce is loaded or can be loaded.

Returns

Main
WooCommerce instance

Since

2.1

See

WC()
public
# __clone( )

Cloning is forbidden.

Cloning is forbidden.

Since

2.1
public
# __wakeup( )

Unserializing instances of this class is forbidden.

Unserializing instances of this class is forbidden.

Since

2.1
public
# __construct( )

__construct function.

__construct function.

public
# init( )

Load gateways and hook in functions.

Load gateways and hook in functions.

public array
# payment_gateways( )

Get gateways.

Get gateways.

Returns

array
public array
# get_available_payment_gateways( )

Get available gateways.

Get available gateways.

Returns

array
public
# process_admin_options( )

Save options in admin.

Save options in admin.

Magic methods summary

Properties summary

public array $payment_gateways
#

Array of payment gateway classes.

Array of payment gateway classes.

protected static WooCommerce $_instance
#

The single instance of the class

The single instance of the class

Since

2.1
WooCommerce API documentation generated by ApiGen 2.8.0