示例#1
0
 public function init_admin()
 {
     parent::init_admin();
     //add actions to allow the payment status to be modified
     add_action('gform_payment_status', array($this, 'admin_edit_payment_status'), 3, 3);
     add_action('gform_payment_date', array($this, 'admin_edit_payment_date'), 3, 3);
     add_action('gform_payment_transaction_id', array($this, 'admin_edit_payment_transaction_id'), 3, 3);
     add_action('gform_payment_amount', array($this, 'admin_edit_payment_amount'), 3, 3);
     add_action('gform_after_update_entry', array($this, 'admin_update_payment'), 4, 2);
     add_filter('gform_addon_navigation', array($this, 'maybe_create_menu'));
 }
 /**
  * Initialize the admin specific hooks.
  */
 public function init_admin()
 {
     parent::init_admin();
     add_filter('gform_addon_navigation', array($this, 'maybe_create_menu'));
 }
 public function init_admin()
 {
     parent::init_admin();
     //add actions to allow the payment status to be modified
     add_action('gform_payment_status', array($this, 'admin_edit_payment_status'), 3, 3);
     if (version_compare(GFCommon::$version, '1.8.17.4', '<')) {
         //using legacy hook
         add_action('gform_entry_info', array($this, 'admin_edit_payment_status_details'), 4, 2);
     } else {
         add_action('gform_payment_date', array($this, 'admin_edit_payment_date'), 3, 3);
         add_action('gform_payment_transaction_id', array($this, 'admin_edit_payment_transaction_id'), 3, 3);
         add_action('gform_payment_amount', array($this, 'admin_edit_payment_amount'), 3, 3);
     }
     add_action('gform_after_update_entry', array($this, 'admin_update_payment'), 4, 2);
     add_filter('gform_addon_navigation', array($this, 'maybe_create_menu'));
 }
示例#4
0
 public function init_admin()
 {
     parent::init_admin();
     //add actions to allow the payment status to be modified
     add_action('gform_payment_status', array($this, 'admin_edit_payment_status'), 3, 3);
     add_action('gform_payment_date', array($this, 'admin_edit_payment_date'), 3, 3);
     add_action('gform_payment_transaction_id', array($this, 'admin_edit_payment_transaction_id'), 3, 3);
     add_action('gform_payment_amount', array($this, 'admin_edit_payment_amount'), 3, 3);
     add_action('gform_after_update_entry', array($this, 'admin_update_payment'), 4, 2);
     add_filter('gform_addon_navigation', array($this, 'maybe_create_menu'));
     //checking if webserver is compatible with PayPal SSL certificate
     add_action('admin_notices', array($this, 'check_ipn_request'));
 }