mirror of
https://github.com/WPMultisite/wp-multisite-subscriptions.git
synced 2025-08-06 17:17:14 +08:00
重命名:分叉 WP Ultimo
This commit is contained in:
parent
675cc66211
commit
afc807397f
5350 changed files with 1354268 additions and 604 deletions
58
inc/managers/class-checkout-form-manager.php
Normal file
58
inc/managers/class-checkout-form-manager.php
Normal file
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
/**
|
||||
* Checkout Form Manager
|
||||
*
|
||||
* Handles processes related to Checkout Forms.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Managers/Checkout_Form_Manager
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
namespace WP_Ultimo\Managers;
|
||||
|
||||
use WP_Ultimo\Managers\Base_Manager;
|
||||
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Handles processes related to checkout forms.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
class Checkout_Form_Manager extends Base_Manager {
|
||||
|
||||
use \WP_Ultimo\Apis\Rest_Api, \WP_Ultimo\Apis\WP_CLI, \WP_Ultimo\Traits\Singleton;
|
||||
|
||||
/**
|
||||
* The manager slug.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $slug = 'checkout_form';
|
||||
|
||||
/**
|
||||
* The model class associated to this manager.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $model_class = '\\WP_Ultimo\\Models\\Checkout_Form';
|
||||
|
||||
/**
|
||||
* Instantiate the necessary hooks.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
$this->enable_rest_api();
|
||||
|
||||
$this->enable_wp_cli();
|
||||
|
||||
} // end init;
|
||||
|
||||
} // end class Checkout_Form_Manager;
|
Loading…
Add table
Add a link
Reference in a new issue