本文整理匯總了PHP中GFForms::include_payment_addon_framework方法的典型用法代碼示例。如果您正苦於以下問題:PHP GFForms::include_payment_addon_framework方法的具體用法?PHP GFForms::include_payment_addon_framework怎麽用?PHP GFForms::include_payment_addon_framework使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GFForms
的用法示例。
在下文中一共展示了GFForms::include_payment_addon_framework方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: plugins_loaded
/**
* Plugins loaded
*/
public function plugins_loaded()
{
// Add-on
// The `class_exists` call is required to prevent strage errors on some hosting environments
if (Pronamic_WP_Pay_Class::method_exists('GFForms', 'include_payment_addon_framework')) {
GFForms::include_payment_addon_framework();
if (class_exists('GFPaymentAddOn')) {
$this->addon = new Pronamic_WP_Pay_Extensions_GravityForms_PaymentAddOn();
}
}
}
示例2: add_action
<?php
add_action('wp', array('GFPayPal', 'maybe_thankyou_page'), 5);
GFForms::include_payment_addon_framework();
class GFPayPal extends GFPaymentAddOn
{
protected $_version = GF_PAYPAL_VERSION;
protected $_min_gravityforms_version = '1.9.3';
protected $_slug = 'gravityformspaypal';
protected $_path = 'gravityformspaypal/paypal.php';
protected $_full_path = __FILE__;
protected $_url = 'http://www.gravityforms.com';
protected $_title = 'Gravity Forms PayPal Standard Add-On';
protected $_short_title = 'PayPal';
protected $_supports_callbacks = true;
private $production_url = 'https://www.paypal.com/cgi-bin/webscr/';
private $sandbox_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr/';
// Members plugin integration
protected $_capabilities = array('gravityforms_paypal', 'gravityforms_paypal_uninstall');
// Permissions
protected $_capabilities_settings_page = 'gravityforms_paypal';
protected $_capabilities_form_settings = 'gravityforms_paypal';
protected $_capabilities_uninstall = 'gravityforms_paypal_uninstall';
// Automatic upgrade enabled
protected $_enable_rg_autoupgrade = true;
private static $_instance = null;
public static function get_instance()
{
if (self::$_instance == null) {
self::$_instance = new GFPayPal();
}