PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
wp-events-manager
/
inc
<?php /** * WP Events Manager Payment Gateways class * * @author ThimPress, leehld * @package WP-Events-Manager/Class * @version 2.1.7 */ /** * Prevent loading this file directly */ defined( 'ABSPATH' ) || exit; class WPEMS_Payment_Gateways { /** * gateways method * @var $gateways array */ public $gateways = array(); public static $instance = null; public function __construct() { $this->init(); } public function init() { $payment_gateways = array( 'WPEMS_Payment_Gateway_Paypal' ); foreach ( $payment_gateways as $gateway ) { $gateway = is_string( $gateway ) ? new $gateway() : $gateway; $this->gateways[ $gateway->id ] = $gateway; } return $this->gateways; } /** * Get payment gateways available * * @return array */ public function get_payment_gateways() { $gateways = $this->gateways; $gateways = apply_filters( 'wpems_payment_gateways', $gateways ); $available = array(); foreach ( $gateways as $id => $gateway ) { if ( $gateway->is_available() ) { $available[ $id ] = $gateway; } } return $available; } /** * Get payment gateways enable * * @return array */ public function get_payment_gateways_enable() { $gateways = $this->get_payment_gateways(); $enable = array(); foreach ( $gateways as $id => $gateway ) { if ( $gateway->is_enable() ) { $enable[ $id ] = $gateway; } } return $enable; } public static function instance() { if ( ! self::$instance ) { self::$instance = new self(); } return self::$instance; } } WPEMS_Payment_Gateways::instance();
[+]
..
[-] class-wpems-event.php
[edit]
[-] class-wpems-gdpr.php
[edit]
[-] class-wpems-payment-gateways.php
[edit]
[+]
admin
[-] class-wpems-frontend-assets.php
[edit]
[-] class-wpems-shortcodes.php
[edit]
[+]
widgets
[+]
emails
[-] class-wpems-template.php
[edit]
[-] class-wpems-session.php
[edit]
[-] class-wpems-settings.php
[edit]
[+]
gateways
[-] class-wpems-install.php
[edit]
[-] class-wpems-assets.php
[edit]
[-] class-wpems-booking.php
[edit]
[+]
libraries
[-] class-wpems-autoloader.php
[edit]
[-] wpems-core-functions.php
[edit]
[-] class-wpems-user-process.php
[edit]
[-] class-wpems-ajax.php
[edit]
[+]
abstracts
[-] class-wpems-post-types.php
[edit]