本文整理汇总了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();
}