当前位置: 首页>>代码示例>>PHP>>正文


PHP GFForms::include_payment_addon_framework方法代码示例

本文整理汇总了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();
         }
     }
 }
开发者ID:daanbakker1995,项目名称:vanteun,代码行数:14,代码来源:Extension.php

示例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();
        }
开发者ID:chawlie,项目名称:goldenrollers,代码行数:31,代码来源:class-gf-paypal.php


注:本文中的GFForms::include_payment_addon_framework方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。