Changeset 2600245
- Timestamp:
- 09/17/2021 12:25:08 AM (5 years ago)
- Location:
- chord-connect/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
chordconnect.php (modified) (2 diffs)
-
includes/class-chordconnect-activator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chord-connect/trunk/README.txt
r2600211 r2600245 6 6 Tested up to: 5.8 7 7 Requires PHP: 5.6 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPL-2.0+ 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 186 186 = 1.0.2 = 187 187 * Further improvements to plugin activation flow. 188 = 1.0.3 = 189 * Further improvements to plugin activation flow. 188 190 189 191 == Upgrade Notice == … … 194 196 = 1.0.2 = 195 197 * Further improvements to plugin activation flow. 198 = 1.0.3 = 199 * Further improvements to plugin activation flow. -
chord-connect/trunk/chordconnect.php
r2600211 r2600245 16 16 * Plugin URI: https://chordconnect.com/wp-plugin 17 17 * Description: <strong>Experience the highest quality video chat, no downloads required.</strong> Easily integrate Chordconnect into your Wordpress site. 18 * Version: 1.0. 218 * Version: 1.0.3 19 19 * Author: CloudEngage 20 20 * Author URI: https://cloudengage.com/ … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'CHORDCONNECT_VERSION', '{{ 1.0. 2}}' );37 define( 'CHORDCONNECT_VERSION', '{{ 1.0.3 }}' ); 38 38 39 39 /** -
chord-connect/trunk/includes/class-chordconnect-activator.php
r2600210 r2600245 58 58 $current_user = wp_get_current_user(); 59 59 if ( $current_user->exists() ) { 60 $ payload = [60 $data = array( 61 61 'email' => $current_user->user_email, 62 62 'first_name' => $current_user->user_firstname, … … 64 64 'company' => get_bloginfo('name'), 65 65 'url' => get_bloginfo('url') 66 ];66 ); 67 67 68 68 $curl = curl_init('https://go.cloudengage.com/signup/wordpress'); 69 69 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 70 curl_setopt($curl, CURLOPT_ HTTPHEADER, ['Content-Type:application/json']);71 curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($payload));72 curl_setopt($curl, CURLOPT_ CUSTOMREQUEST, "POST");70 curl_setopt($curl, CURLOPT_POST, true); 71 curl_setopt($curl, CURLOPT_POSTFIELDS, $data); 72 curl_setopt($curl, CURLOPT_HTTPHEADER, ['Accept: application/json']); 73 73 74 74 $response = curl_exec($curl);
Note: See TracChangeset
for help on using the changeset viewer.