Payment Form for PayPal Pro - Version 1.1.36

Version Description

  • Easier activation process

=

Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Payment Form for PayPal Pro
Version 1.1.36
Comparing to
See all releases

Code changes from version 1.1.35 to 1.1.36

Files changed (2) hide show
  1. README.txt +5 -2
  2. cp_ppp.php +9 -1
README.txt CHANGED
@@ -236,7 +236,10 @@ A: In all plugin versions you can turn off IP tracking to avoid saving that user
236
  = 1.1.35 =
237
  * Fixed captcha reloading issue
238
 
 
 
 
239
  == Upgrade Notice ==
240
 
241
- = 1.1.35 =
242
- * Fixed captcha reloading issue
236
  = 1.1.35 =
237
  * Fixed captcha reloading issue
238
 
239
+ = 1.1.36 =
240
+ * Easier activation process
241
+
242
  == Upgrade Notice ==
243
 
244
+ = 1.1.36 =
245
+ * Easier activation process
cp_ppp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
- Version: 1.1.35
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
@@ -112,6 +112,14 @@ function cpppp_plugin_init() {
112
  }
113
  add_action('plugins_loaded', 'cpppp_plugin_init');
114
 
 
 
 
 
 
 
 
 
115
 
116
  if ( is_admin() ) {
117
  add_action('media_buttons', 'set_cp_ppp_insert_button', 100);
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
+ Version: 1.1.36
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
112
  }
113
  add_action('plugins_loaded', 'cpppp_plugin_init');
114
 
115
+ //START: activation redirection
116
+ function cpppp_activation_redirect( $plugin ) {
117
+ if( $plugin == plugin_basename( __FILE__ ) ) {
118
+ exit( wp_redirect( admin_url( 'admin.php?page=cp_ppp' ) ) );
119
+ }
120
+ }
121
+ add_action( 'activated_plugin', 'cpppp_activation_redirect' );
122
+ //END: activation redirection
123
 
124
  if ( is_admin() ) {
125
  add_action('media_buttons', 'set_cp_ppp_insert_button', 100);