Changeset 3411835
- Timestamp:
- 12/05/2025 07:43:09 AM (8 weeks ago)
- Location:
- convertkit-for-woocommerce
- Files:
-
- 12 edited
- 1 copied
-
tags/2.0.3 (copied) (copied from convertkit-for-woocommerce/trunk)
-
tags/2.0.3/includes/class-ckwc-integration.php (modified) (3 diffs)
-
tags/2.0.3/includes/class-ckwc-resource.php (modified) (1 diff)
-
tags/2.0.3/includes/functions.php (modified) (1 diff)
-
tags/2.0.3/languages/woocommerce-convertkit.pot (modified) (6 diffs)
-
tags/2.0.3/readme.txt (modified) (2 diffs)
-
tags/2.0.3/woocommerce-convertkit.php (modified) (3 diffs)
-
trunk/includes/class-ckwc-integration.php (modified) (3 diffs)
-
trunk/includes/class-ckwc-resource.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/languages/woocommerce-convertkit.pot (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-convertkit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
convertkit-for-woocommerce/tags/2.0.3/includes/class-ckwc-integration.php
r3408882 r3411835 87 87 $this->init_settings(); 88 88 89 // Update Access Token when refreshed by the API class.90 add_action( 'convertkit_api_get_access_token', array( $this, 'update_credentials' ), 10, 2 );91 add_action( 'convertkit_api_refresh_token', array( $this, 'update_credentials' ), 10, 2 );92 93 // Delete credentials if the API class uses a invalid access token.94 // This prevents the Plugin making repetitive API requests that will 401.95 add_action( 'convertkit_api_access_token_invalid', array( $this, 'maybe_delete_credentials' ), 10, 2 );96 97 89 // Load Admin screens, save settings. 98 90 if ( is_admin() ) { … … 122 114 * @since 1.8.0 123 115 * 124 * @param array $result New Access Token, Refresh Token and Expiry. 125 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens. 126 */ 127 public function update_credentials( $result, $client_id ) { 128 129 // Don't save these credentials if they're not for this Client ID. 130 // They're for another Kit Plugin that uses OAuth. 131 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) { 132 return; 133 } 116 * @param array $result New Access Token, Refresh Token and Expiry. 117 */ 118 public function update_credentials( $result ) { 134 119 135 120 // Remove any existing persistent notice. … … 146 131 // Schedule a WordPress Cron event to refresh the token on expiry. 147 132 wp_schedule_single_event( ( time() + $result['expires_in'] ), 'ckwc_refresh_token' ); 148 149 }150 151 /**152 * Deletes the stored access token, refresh token and its expiry from the Plugin settings,153 * and clears any existing scheduled WordPress Cron event to refresh the token on expiry,154 * when either:155 * - The access token is invalid156 * - The access token expired, and refreshing failed157 *158 * @since 2.0.2159 *160 * @param WP_Error $result Error result.161 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens.162 */163 public function maybe_delete_credentials( $result, $client_id ) {164 165 // Don't save these credentials if they're not for this Client ID.166 // They're for another Kit Plugin that uses OAuth.167 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) {168 return;169 }170 171 // Persist an error notice in the WordPress Administration until the user fixes the problem.172 WP_CKWC()->get_class( 'admin_notices' )->add( 'authorization_failed' );173 174 // Delete the credentials from the Plugin settings.175 $this->delete_credentials();176 133 177 134 } -
convertkit-for-woocommerce/tags/2.0.3/includes/class-ckwc-resource.php
r3112082 r3411835 33 33 } 34 34 35 // Call parent initialization function. 36 parent::init(); 35 // Get last query time and existing resources. 36 $this->last_queried = get_option( $this->settings_name . '_last_queried' ); 37 $this->resources = get_option( $this->settings_name ); 38 39 } 40 41 /** 42 * Fetches resources (custom fields, forms, sequences or tags) from the API, storing them in the options table 43 * with a last queried timestamp. 44 * 45 * If the refresh results in a 401, removes the access and refresh tokens from the settings. 46 * 47 * @since 2.0.3 48 * 49 * @return WP_Error|array 50 */ 51 public function refresh() { 52 53 // Call parent refresh method. 54 $result = parent::refresh(); 55 56 // If an error occured, maybe delete credentials from the Plugin's settings 57 // if the error is a 401 unauthorized. 58 if ( is_wp_error( $result ) ) { 59 ckwc_maybe_delete_credentials( $result, CKWC_OAUTH_CLIENT_ID ); 60 } 61 62 return $result; 37 63 38 64 } -
convertkit-for-woocommerce/tags/2.0.3/includes/functions.php
r3112082 r3411835 53 53 54 54 } 55 56 /** 57 * Saves the new access token, refresh token and its expiry, and schedules 58 * a WordPress Cron event to refresh the token on expiry. 59 * 60 * @since 2.0.3 61 * 62 * @param array $result New Access Token, Refresh Token and Expiry. 63 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens. 64 */ 65 function ckwc_maybe_update_credentials( $result, $client_id ) { 66 67 // Don't save these credentials if they're not for this Client ID. 68 // They're for another Kit Plugin that uses OAuth. 69 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) { 70 return; 71 } 72 73 // Bail if the integration is unavailable. 74 if ( ! function_exists( 'WP_CKWC_Integration' ) ) { 75 return; 76 } 77 78 WP_CKWC_Integration()->update_credentials( $result ); 79 80 } 81 82 /** 83 * Deletes the stored access token, refresh token and its expiry from the Plugin settings, 84 * and clears any existing scheduled WordPress Cron event to refresh the token on expiry, 85 * when either: 86 * - The access token is invalid 87 * - The access token expired, and refreshing failed 88 * 89 * @since 2.0.3 90 * 91 * @param WP_Error $result Error result. 92 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens. 93 */ 94 function ckwc_maybe_delete_credentials( $result, $client_id ) { 95 96 // Don't save these credentials if they're not for this Client ID. 97 // They're for another Kit Plugin that uses OAuth. 98 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) { 99 return; 100 } 101 102 // Bail if the integration is unavailable. 103 if ( ! function_exists( 'WP_CKWC_Integration' ) ) { 104 return; 105 } 106 107 // If the error isn't a 401, don't delete credentials. 108 // This could be e.g. a temporary network error, rate limit or similar. 109 if ( $result->get_error_data( 'convertkit_api_error' ) !== 401 ) { 110 return; 111 } 112 113 // Persist an error notice in the WordPress Administration until the user fixes the problem. 114 WP_CKWC()->get_class( 'admin_notices' )->add( 'authorization_failed' ); 115 116 WP_CKWC_Integration()->delete_credentials(); 117 118 } 119 120 // Update Access Token when refreshed by the API class. 121 add_action( 'convertkit_api_get_access_token', 'ckwc_maybe_update_credentials', 10, 2 ); 122 add_action( 'convertkit_api_refresh_token', 'ckwc_maybe_update_credentials', 10, 2 ); 123 124 // Delete credentials if the API class uses a invalid access token. 125 // This prevents the Plugin making repetitive API requests that will 401. 126 add_action( 'convertkit_api_access_token_invalid', 'ckwc_maybe_delete_credentials', 10, 2 ); -
convertkit-for-woocommerce/tags/2.0.3/languages/woocommerce-convertkit.pot
r3408882 r3411835 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Kit (formerly ConvertKit) for WooCommerce 2.0. 2\n"5 "Project-Id-Version: Kit (formerly ConvertKit) for WooCommerce 2.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-12-0 3T01:33:06+00:00\n"12 "POT-Creation-Date: 2025-12-05T02:22:25+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 234 234 msgstr "" 235 235 236 #: includes/class-ckwc-integration.php:3 63236 #: includes/class-ckwc-integration.php:320 237 237 msgid "The uploaded configuration file isn't valid." 238 238 msgstr "" 239 239 240 #: includes/class-ckwc-integration.php:3 72240 #: includes/class-ckwc-integration.php:329 241 241 msgid "The uploaded configuration file contains no settings." 242 242 msgstr "" 243 243 244 #: includes/class-ckwc-integration.php:3 89244 #: includes/class-ckwc-integration.php:346 245 245 msgid "Configuration imported successfully." 246 246 msgstr "" 247 247 248 #: includes/class-ckwc-integration.php:461 249 msgid "Account Name" 250 msgstr "" 251 252 #: includes/class-ckwc-integration.php:463 253 msgid "Disconnect" 254 msgstr "" 255 256 #: includes/class-ckwc-integration.php:480 257 msgid "Enable/Disable" 258 msgstr "" 259 260 #: includes/class-ckwc-integration.php:482 261 msgid "Enable Kit integration" 262 msgstr "" 263 264 #: includes/class-ckwc-integration.php:488 265 msgid "Subscribe Event" 266 msgstr "" 267 268 #: includes/class-ckwc-integration.php:494 269 msgid "When should customers be subscribed?" 270 msgstr "" 271 272 #: includes/class-ckwc-integration.php:498 273 msgid "Pending payment:" 274 msgstr "" 275 276 #: includes/class-ckwc-integration.php:499 277 msgid "WooCommerce order created, payment not received." 278 msgstr "" 279 248 280 #: includes/class-ckwc-integration.php:504 249 msgid "Account Name" 250 msgstr "" 251 252 #: includes/class-ckwc-integration.php:506 253 msgid "Disconnect" 254 msgstr "" 255 256 #: includes/class-ckwc-integration.php:523 257 msgid "Enable/Disable" 258 msgstr "" 259 260 #: includes/class-ckwc-integration.php:525 261 msgid "Enable Kit integration" 262 msgstr "" 263 264 #: includes/class-ckwc-integration.php:531 265 msgid "Subscribe Event" 266 msgstr "" 267 268 #: includes/class-ckwc-integration.php:537 269 msgid "When should customers be subscribed?" 281 #: includes/class-ckwc-integration.php:716 282 msgid "Processing:" 283 msgstr "" 284 285 #: includes/class-ckwc-integration.php:505 286 #: includes/class-ckwc-integration.php:717 287 msgid "WooCommerce order created, payment received, order awaiting fulfilment." 288 msgstr "" 289 290 #: includes/class-ckwc-integration.php:510 291 #: includes/class-ckwc-integration.php:722 292 msgid "Completed:" 293 msgstr "" 294 295 #: includes/class-ckwc-integration.php:511 296 #: includes/class-ckwc-integration.php:723 297 msgid "WooCommerce order created, payment received, order fulfiled." 298 msgstr "" 299 300 #: includes/class-ckwc-integration.php:517 301 msgid "Order Pending payment" 302 msgstr "" 303 304 #: includes/class-ckwc-integration.php:518 305 #: includes/class-ckwc-integration.php:729 306 msgid "Order Processing" 307 msgstr "" 308 309 #: includes/class-ckwc-integration.php:519 310 #: includes/class-ckwc-integration.php:730 311 msgid "Order Completed" 312 msgstr "" 313 314 #: includes/class-ckwc-integration.php:526 315 msgid "Subscription" 316 msgstr "" 317 318 #: includes/class-ckwc-integration.php:529 319 msgid "The Kit form, tag or sequence to subscribe customers to." 320 msgstr "" 321 322 #: includes/class-ckwc-integration.php:535 323 msgid "Name Format" 324 msgstr "" 325 326 #: includes/class-ckwc-integration.php:538 327 msgid "How should the customer name be sent to Kit?" 270 328 msgstr "" 271 329 272 330 #: includes/class-ckwc-integration.php:541 273 msgid " Pending payment:"331 msgid "Billing First Name" 274 332 msgstr "" 275 333 276 334 #: includes/class-ckwc-integration.php:542 277 msgid "WooCommerce order created, payment not received." 278 msgstr "" 279 280 #: includes/class-ckwc-integration.php:547 281 #: includes/class-ckwc-integration.php:759 282 msgid "Processing:" 283 msgstr "" 284 285 #: includes/class-ckwc-integration.php:548 286 #: includes/class-ckwc-integration.php:760 287 msgid "WooCommerce order created, payment received, order awaiting fulfilment." 288 msgstr "" 289 290 #: includes/class-ckwc-integration.php:553 291 #: includes/class-ckwc-integration.php:765 292 msgid "Completed:" 293 msgstr "" 294 295 #: includes/class-ckwc-integration.php:554 296 #: includes/class-ckwc-integration.php:766 297 msgid "WooCommerce order created, payment received, order fulfiled." 298 msgstr "" 299 300 #: includes/class-ckwc-integration.php:560 301 msgid "Order Pending payment" 335 msgid "Billing Last Name" 336 msgstr "" 337 338 #: includes/class-ckwc-integration.php:543 339 msgid "Billing First Name + Billing Last Name" 340 msgstr "" 341 342 #: includes/class-ckwc-integration.php:552 343 msgid "Send Last Name" 344 msgstr "" 345 346 #: includes/class-ckwc-integration.php:555 347 msgid "The Kit custom field to store the order's last name." 302 348 msgstr "" 303 349 304 350 #: includes/class-ckwc-integration.php:561 305 #: includes/class-ckwc-integration.php:772 306 msgid "Order Processing" 307 msgstr "" 308 309 #: includes/class-ckwc-integration.php:562 310 #: includes/class-ckwc-integration.php:773 311 msgid "Order Completed" 312 msgstr "" 313 314 #: includes/class-ckwc-integration.php:569 315 msgid "Subscription" 316 msgstr "" 317 318 #: includes/class-ckwc-integration.php:572 319 msgid "The Kit form, tag or sequence to subscribe customers to." 320 msgstr "" 321 322 #: includes/class-ckwc-integration.php:578 323 msgid "Name Format" 324 msgstr "" 325 326 #: includes/class-ckwc-integration.php:581 327 msgid "How should the customer name be sent to Kit?" 328 msgstr "" 329 330 #: includes/class-ckwc-integration.php:584 331 msgid "Billing First Name" 332 msgstr "" 333 334 #: includes/class-ckwc-integration.php:585 335 msgid "Billing Last Name" 336 msgstr "" 337 338 #: includes/class-ckwc-integration.php:586 339 msgid "Billing First Name + Billing Last Name" 340 msgstr "" 341 342 #: includes/class-ckwc-integration.php:595 343 msgid "Send Last Name" 344 msgstr "" 345 346 #: includes/class-ckwc-integration.php:598 347 msgid "The Kit custom field to store the order's last name." 351 msgid "Send Phone Number" 352 msgstr "" 353 354 #: includes/class-ckwc-integration.php:564 355 msgid "The Kit custom field to store the order's phone number." 356 msgstr "" 357 358 #: includes/class-ckwc-integration.php:570 359 msgid "Send Billing Address" 360 msgstr "" 361 362 #: includes/class-ckwc-integration.php:573 363 msgid "The Kit custom field to store the order's billing address." 364 msgstr "" 365 366 #: includes/class-ckwc-integration.php:579 367 msgid "Send Shipping Address" 368 msgstr "" 369 370 #: includes/class-ckwc-integration.php:582 371 msgid "The Kit custom field to store the order's shipping address." 372 msgstr "" 373 374 #: includes/class-ckwc-integration.php:588 375 msgid "Address Format" 376 msgstr "" 377 378 #: includes/class-ckwc-integration.php:599 379 msgid "The format of the billing and shipping addresses to store in Kit." 380 msgstr "" 381 382 #: includes/class-ckwc-integration.php:602 383 msgid "Name" 384 msgstr "" 385 386 #: includes/class-ckwc-integration.php:603 387 msgid "Company Name" 348 388 msgstr "" 349 389 350 390 #: includes/class-ckwc-integration.php:604 351 msgid "Send Phone Number" 391 msgid "Address 1" 392 msgstr "" 393 394 #: includes/class-ckwc-integration.php:605 395 msgid "Address 2" 396 msgstr "" 397 398 #: includes/class-ckwc-integration.php:606 399 msgid "City" 352 400 msgstr "" 353 401 354 402 #: includes/class-ckwc-integration.php:607 355 msgid "The Kit custom field to store the order's phone number." 356 msgstr "" 357 358 #: includes/class-ckwc-integration.php:613 359 msgid "Send Billing Address" 403 msgid "State" 404 msgstr "" 405 406 #: includes/class-ckwc-integration.php:608 407 msgid "Postcode" 408 msgstr "" 409 410 #: includes/class-ckwc-integration.php:609 411 msgid "Country" 360 412 msgstr "" 361 413 362 414 #: includes/class-ckwc-integration.php:616 363 msgid " The Kit custom field to store the order's billing address."364 msgstr "" 365 366 #: includes/class-ckwc-integration.php:6 22367 msgid " Send Shipping Address"415 msgid "Send Payment Method" 416 msgstr "" 417 418 #: includes/class-ckwc-integration.php:619 419 msgid "The Kit custom field to store the order's payment method." 368 420 msgstr "" 369 421 370 422 #: includes/class-ckwc-integration.php:625 371 msgid "The Kit custom field to store the order's shipping address."372 msgstr ""373 374 #: includes/class-ckwc-integration.php:631375 msgid "Address Format"376 msgstr ""377 378 #: includes/class-ckwc-integration.php:642379 msgid "The format of the billing and shipping addresses to store in Kit."380 msgstr ""381 382 #: includes/class-ckwc-integration.php:645383 msgid "Name"384 msgstr ""385 386 #: includes/class-ckwc-integration.php:646387 msgid "Company Name"388 msgstr ""389 390 #: includes/class-ckwc-integration.php:647391 msgid "Address 1"392 msgstr ""393 394 #: includes/class-ckwc-integration.php:648395 msgid "Address 2"396 msgstr ""397 398 #: includes/class-ckwc-integration.php:649399 msgid "City"400 msgstr ""401 402 #: includes/class-ckwc-integration.php:650403 msgid "State"404 msgstr ""405 406 #: includes/class-ckwc-integration.php:651407 msgid "Postcode"408 msgstr ""409 410 #: includes/class-ckwc-integration.php:652411 msgid "Country"412 msgstr ""413 414 #: includes/class-ckwc-integration.php:659415 msgid "Send Payment Method"416 msgstr ""417 418 #: includes/class-ckwc-integration.php:662419 msgid "The Kit custom field to store the order's payment method."420 msgstr ""421 422 #: includes/class-ckwc-integration.php:668423 423 msgid "Send Customer Note" 424 424 msgstr "" 425 425 426 #: includes/class-ckwc-integration.php:6 71426 #: includes/class-ckwc-integration.php:628 427 427 msgid "The Kit custom field to store the order's customer note." 428 428 msgstr "" 429 429 430 #: includes/class-ckwc-integration.php:6 79430 #: includes/class-ckwc-integration.php:636 431 431 msgid "Opt-In Checkbox" 432 432 msgstr "" 433 433 434 #: includes/class-ckwc-integration.php:6 80434 #: includes/class-ckwc-integration.php:637 435 435 msgid "Display an opt-in checkbox on checkout" 436 436 msgstr "" 437 437 438 #: includes/class-ckwc-integration.php:6 83438 #: includes/class-ckwc-integration.php:640 439 439 msgid "" 440 440 "If enabled, customers will <strong>only</strong> be subscribed to the chosen forms, tags and sequences if they check the opt-in checkbox at checkout.<br />\n" … … 442 442 msgstr "" 443 443 444 #: includes/class-ckwc-integration.php:6 94444 #: includes/class-ckwc-integration.php:651 445 445 msgid "Opt-In Checkbox: Label" 446 446 msgstr "" 447 447 448 #: includes/class-ckwc-integration.php:6 96448 #: includes/class-ckwc-integration.php:653 449 449 msgid "I want to subscribe to the newsletter" 450 450 msgstr "" 451 451 452 #: includes/class-ckwc-integration.php:6 97452 #: includes/class-ckwc-integration.php:654 453 453 msgid "Customize the label next to the opt-in checkbox." 454 454 msgstr "" 455 455 456 #: includes/class-ckwc-integration.php: 704456 #: includes/class-ckwc-integration.php:661 457 457 msgid "Opt-In Checkbox: Default Status" 458 458 msgstr "" 459 459 460 #: includes/class-ckwc-integration.php: 707460 #: includes/class-ckwc-integration.php:664 461 461 msgid "The default state of the opt-in checkbox." 462 462 msgstr "" 463 463 464 #: includes/class-ckwc-integration.php: 710464 #: includes/class-ckwc-integration.php:667 465 465 msgid "Checked" 466 466 msgstr "" 467 467 468 #: includes/class-ckwc-integration.php: 711468 #: includes/class-ckwc-integration.php:668 469 469 msgid "Unchecked" 470 470 msgstr "" 471 471 472 #: includes/class-ckwc-integration.php: 718472 #: includes/class-ckwc-integration.php:675 473 473 msgid "Opt-In Checkbox: Display Location" 474 474 msgstr "" 475 475 476 #: includes/class-ckwc-integration.php: 721476 #: includes/class-ckwc-integration.php:678 477 477 msgid "Where to display the opt-in checkbox on the checkout page (under \"Billing details\" or \"Additional information\")." 478 478 msgstr "" 479 479 480 #: includes/class-ckwc-integration.php: 724480 #: includes/class-ckwc-integration.php:681 481 481 msgid "Billing" 482 482 msgstr "" 483 483 484 #: includes/class-ckwc-integration.php: 725484 #: includes/class-ckwc-integration.php:682 485 485 msgid "Order" 486 486 msgstr "" 487 487 488 #: includes/class-ckwc-integration.php: 734488 #: includes/class-ckwc-integration.php:691 489 489 msgid "Purchase Data" 490 490 msgstr "" 491 491 492 #: includes/class-ckwc-integration.php: 735492 #: includes/class-ckwc-integration.php:692 493 493 msgid "Send purchase data to Kit." 494 494 msgstr "" 495 495 496 #: includes/class-ckwc-integration.php: 738496 #: includes/class-ckwc-integration.php:695 497 497 msgid "" 498 498 "If enabled, the customer's order data will be sent to Kit. Their email address will always be subscribed to Kit, <strong>regardless of the Customer's opt in status.</strong><br />\n" … … 500 500 msgstr "" 501 501 502 #: includes/class-ckwc-integration.php:7 49502 #: includes/class-ckwc-integration.php:706 503 503 msgid "Purchase Data Event" 504 504 msgstr "" 505 505 506 #: includes/class-ckwc-integration.php:7 55506 #: includes/class-ckwc-integration.php:712 507 507 msgid "When should purchase data be sent?" 508 508 msgstr "" 509 509 510 #: includes/class-ckwc-integration.php:7 80510 #: includes/class-ckwc-integration.php:737 511 511 msgid "Sync Past Orders" 512 512 msgstr "" 513 513 514 #: includes/class-ckwc-integration.php:7 81514 #: includes/class-ckwc-integration.php:738 515 515 msgid "Send old purchase data to Kit i.e. Orders that were created in WooCommerce prior to this Plugin being installed." 516 516 msgstr "" 517 517 518 #: includes/class-ckwc-integration.php:7 97518 #: includes/class-ckwc-integration.php:754 519 519 msgid "Debug" 520 520 msgstr "" 521 521 522 #: includes/class-ckwc-integration.php:7 99522 #: includes/class-ckwc-integration.php:756 523 523 msgid "Write data to a log file" 524 524 msgstr "" 525 525 526 #: includes/class-ckwc-integration.php: 804526 #: includes/class-ckwc-integration.php:761 527 527 msgid "View log file" 528 528 msgstr "" 529 529 530 #: includes/class-ckwc-integration.php:8 74530 #: includes/class-ckwc-integration.php:831 531 531 msgid "Do you want to send past WooCommerce Orders to Kit?" 532 532 msgstr "" 533 533 534 534 #. translators: Number of WooCommerce Orders 535 #: includes/class-ckwc-integration.php:10 54535 #: includes/class-ckwc-integration.php:1011 536 536 #, php-format 537 537 msgid "%s not been sent to Kit based on the Purchase Data Event setting above. This is either because sending purchase data is/was disabled, and/or orders were created prior to installing this integration.<br />Use the sync button to send data for these orders to Kit." … … 539 539 540 540 #. translators: number of Orders not sent to ConvertKit 541 #: includes/class-ckwc-integration.php:10 57541 #: includes/class-ckwc-integration.php:1014 542 542 #, php-format 543 543 msgid "%s WooCommerce order has" -
convertkit-for-woocommerce/tags/2.0.3/readme.txt
r3408882 r3411835 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.1 8 Stable tag: 2.0. 28 Stable tag: 2.0.3 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 46 46 47 47 == Changelog == 48 49 ### 2.0.3 2025-12-03 50 * Fix: Settings: Improve logic to automatically delete invalid Access Tokens 48 51 49 52 ### 2.0.2 2025-12-03 -
convertkit-for-woocommerce/tags/2.0.3/woocommerce-convertkit.php
r3408882 r3411835 10 10 * Plugin URI: https://www.kit.com 11 11 * Description: Integrates WooCommerce with Kit, allowing customers to be automatically sent to your Kit account. 12 * Version: 2.0. 212 * Version: 2.0.3 13 13 * Author: Kit 14 14 * Author URI: https://www.kit.com … … 18 18 * 19 19 * WC requires at least: 3.0 20 * WC tested up to: 10. 2.120 * WC tested up to: 10.3.6 21 21 */ 22 22 … … 31 31 define( 'CKWC_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 32 32 define( 'CKWC_PLUGIN_PATH', __DIR__ ); 33 define( 'CKWC_PLUGIN_VERSION', '2.0. 2' );33 define( 'CKWC_PLUGIN_VERSION', '2.0.3' ); 34 34 define( 'CKWC_OAUTH_CLIENT_ID', 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A' ); 35 35 define( 'CKWC_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' ); -
convertkit-for-woocommerce/trunk/includes/class-ckwc-integration.php
r3408882 r3411835 87 87 $this->init_settings(); 88 88 89 // Update Access Token when refreshed by the API class.90 add_action( 'convertkit_api_get_access_token', array( $this, 'update_credentials' ), 10, 2 );91 add_action( 'convertkit_api_refresh_token', array( $this, 'update_credentials' ), 10, 2 );92 93 // Delete credentials if the API class uses a invalid access token.94 // This prevents the Plugin making repetitive API requests that will 401.95 add_action( 'convertkit_api_access_token_invalid', array( $this, 'maybe_delete_credentials' ), 10, 2 );96 97 89 // Load Admin screens, save settings. 98 90 if ( is_admin() ) { … … 122 114 * @since 1.8.0 123 115 * 124 * @param array $result New Access Token, Refresh Token and Expiry. 125 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens. 126 */ 127 public function update_credentials( $result, $client_id ) { 128 129 // Don't save these credentials if they're not for this Client ID. 130 // They're for another Kit Plugin that uses OAuth. 131 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) { 132 return; 133 } 116 * @param array $result New Access Token, Refresh Token and Expiry. 117 */ 118 public function update_credentials( $result ) { 134 119 135 120 // Remove any existing persistent notice. … … 146 131 // Schedule a WordPress Cron event to refresh the token on expiry. 147 132 wp_schedule_single_event( ( time() + $result['expires_in'] ), 'ckwc_refresh_token' ); 148 149 }150 151 /**152 * Deletes the stored access token, refresh token and its expiry from the Plugin settings,153 * and clears any existing scheduled WordPress Cron event to refresh the token on expiry,154 * when either:155 * - The access token is invalid156 * - The access token expired, and refreshing failed157 *158 * @since 2.0.2159 *160 * @param WP_Error $result Error result.161 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens.162 */163 public function maybe_delete_credentials( $result, $client_id ) {164 165 // Don't save these credentials if they're not for this Client ID.166 // They're for another Kit Plugin that uses OAuth.167 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) {168 return;169 }170 171 // Persist an error notice in the WordPress Administration until the user fixes the problem.172 WP_CKWC()->get_class( 'admin_notices' )->add( 'authorization_failed' );173 174 // Delete the credentials from the Plugin settings.175 $this->delete_credentials();176 133 177 134 } -
convertkit-for-woocommerce/trunk/includes/class-ckwc-resource.php
r3112082 r3411835 33 33 } 34 34 35 // Call parent initialization function. 36 parent::init(); 35 // Get last query time and existing resources. 36 $this->last_queried = get_option( $this->settings_name . '_last_queried' ); 37 $this->resources = get_option( $this->settings_name ); 38 39 } 40 41 /** 42 * Fetches resources (custom fields, forms, sequences or tags) from the API, storing them in the options table 43 * with a last queried timestamp. 44 * 45 * If the refresh results in a 401, removes the access and refresh tokens from the settings. 46 * 47 * @since 2.0.3 48 * 49 * @return WP_Error|array 50 */ 51 public function refresh() { 52 53 // Call parent refresh method. 54 $result = parent::refresh(); 55 56 // If an error occured, maybe delete credentials from the Plugin's settings 57 // if the error is a 401 unauthorized. 58 if ( is_wp_error( $result ) ) { 59 ckwc_maybe_delete_credentials( $result, CKWC_OAUTH_CLIENT_ID ); 60 } 61 62 return $result; 37 63 38 64 } -
convertkit-for-woocommerce/trunk/includes/functions.php
r3112082 r3411835 53 53 54 54 } 55 56 /** 57 * Saves the new access token, refresh token and its expiry, and schedules 58 * a WordPress Cron event to refresh the token on expiry. 59 * 60 * @since 2.0.3 61 * 62 * @param array $result New Access Token, Refresh Token and Expiry. 63 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens. 64 */ 65 function ckwc_maybe_update_credentials( $result, $client_id ) { 66 67 // Don't save these credentials if they're not for this Client ID. 68 // They're for another Kit Plugin that uses OAuth. 69 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) { 70 return; 71 } 72 73 // Bail if the integration is unavailable. 74 if ( ! function_exists( 'WP_CKWC_Integration' ) ) { 75 return; 76 } 77 78 WP_CKWC_Integration()->update_credentials( $result ); 79 80 } 81 82 /** 83 * Deletes the stored access token, refresh token and its expiry from the Plugin settings, 84 * and clears any existing scheduled WordPress Cron event to refresh the token on expiry, 85 * when either: 86 * - The access token is invalid 87 * - The access token expired, and refreshing failed 88 * 89 * @since 2.0.3 90 * 91 * @param WP_Error $result Error result. 92 * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens. 93 */ 94 function ckwc_maybe_delete_credentials( $result, $client_id ) { 95 96 // Don't save these credentials if they're not for this Client ID. 97 // They're for another Kit Plugin that uses OAuth. 98 if ( $client_id !== CKWC_OAUTH_CLIENT_ID ) { 99 return; 100 } 101 102 // Bail if the integration is unavailable. 103 if ( ! function_exists( 'WP_CKWC_Integration' ) ) { 104 return; 105 } 106 107 // If the error isn't a 401, don't delete credentials. 108 // This could be e.g. a temporary network error, rate limit or similar. 109 if ( $result->get_error_data( 'convertkit_api_error' ) !== 401 ) { 110 return; 111 } 112 113 // Persist an error notice in the WordPress Administration until the user fixes the problem. 114 WP_CKWC()->get_class( 'admin_notices' )->add( 'authorization_failed' ); 115 116 WP_CKWC_Integration()->delete_credentials(); 117 118 } 119 120 // Update Access Token when refreshed by the API class. 121 add_action( 'convertkit_api_get_access_token', 'ckwc_maybe_update_credentials', 10, 2 ); 122 add_action( 'convertkit_api_refresh_token', 'ckwc_maybe_update_credentials', 10, 2 ); 123 124 // Delete credentials if the API class uses a invalid access token. 125 // This prevents the Plugin making repetitive API requests that will 401. 126 add_action( 'convertkit_api_access_token_invalid', 'ckwc_maybe_delete_credentials', 10, 2 ); -
convertkit-for-woocommerce/trunk/languages/woocommerce-convertkit.pot
r3408882 r3411835 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Kit (formerly ConvertKit) for WooCommerce 2.0. 2\n"5 "Project-Id-Version: Kit (formerly ConvertKit) for WooCommerce 2.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-12-0 3T01:33:06+00:00\n"12 "POT-Creation-Date: 2025-12-05T02:22:25+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 234 234 msgstr "" 235 235 236 #: includes/class-ckwc-integration.php:3 63236 #: includes/class-ckwc-integration.php:320 237 237 msgid "The uploaded configuration file isn't valid." 238 238 msgstr "" 239 239 240 #: includes/class-ckwc-integration.php:3 72240 #: includes/class-ckwc-integration.php:329 241 241 msgid "The uploaded configuration file contains no settings." 242 242 msgstr "" 243 243 244 #: includes/class-ckwc-integration.php:3 89244 #: includes/class-ckwc-integration.php:346 245 245 msgid "Configuration imported successfully." 246 246 msgstr "" 247 247 248 #: includes/class-ckwc-integration.php:461 249 msgid "Account Name" 250 msgstr "" 251 252 #: includes/class-ckwc-integration.php:463 253 msgid "Disconnect" 254 msgstr "" 255 256 #: includes/class-ckwc-integration.php:480 257 msgid "Enable/Disable" 258 msgstr "" 259 260 #: includes/class-ckwc-integration.php:482 261 msgid "Enable Kit integration" 262 msgstr "" 263 264 #: includes/class-ckwc-integration.php:488 265 msgid "Subscribe Event" 266 msgstr "" 267 268 #: includes/class-ckwc-integration.php:494 269 msgid "When should customers be subscribed?" 270 msgstr "" 271 272 #: includes/class-ckwc-integration.php:498 273 msgid "Pending payment:" 274 msgstr "" 275 276 #: includes/class-ckwc-integration.php:499 277 msgid "WooCommerce order created, payment not received." 278 msgstr "" 279 248 280 #: includes/class-ckwc-integration.php:504 249 msgid "Account Name" 250 msgstr "" 251 252 #: includes/class-ckwc-integration.php:506 253 msgid "Disconnect" 254 msgstr "" 255 256 #: includes/class-ckwc-integration.php:523 257 msgid "Enable/Disable" 258 msgstr "" 259 260 #: includes/class-ckwc-integration.php:525 261 msgid "Enable Kit integration" 262 msgstr "" 263 264 #: includes/class-ckwc-integration.php:531 265 msgid "Subscribe Event" 266 msgstr "" 267 268 #: includes/class-ckwc-integration.php:537 269 msgid "When should customers be subscribed?" 281 #: includes/class-ckwc-integration.php:716 282 msgid "Processing:" 283 msgstr "" 284 285 #: includes/class-ckwc-integration.php:505 286 #: includes/class-ckwc-integration.php:717 287 msgid "WooCommerce order created, payment received, order awaiting fulfilment." 288 msgstr "" 289 290 #: includes/class-ckwc-integration.php:510 291 #: includes/class-ckwc-integration.php:722 292 msgid "Completed:" 293 msgstr "" 294 295 #: includes/class-ckwc-integration.php:511 296 #: includes/class-ckwc-integration.php:723 297 msgid "WooCommerce order created, payment received, order fulfiled." 298 msgstr "" 299 300 #: includes/class-ckwc-integration.php:517 301 msgid "Order Pending payment" 302 msgstr "" 303 304 #: includes/class-ckwc-integration.php:518 305 #: includes/class-ckwc-integration.php:729 306 msgid "Order Processing" 307 msgstr "" 308 309 #: includes/class-ckwc-integration.php:519 310 #: includes/class-ckwc-integration.php:730 311 msgid "Order Completed" 312 msgstr "" 313 314 #: includes/class-ckwc-integration.php:526 315 msgid "Subscription" 316 msgstr "" 317 318 #: includes/class-ckwc-integration.php:529 319 msgid "The Kit form, tag or sequence to subscribe customers to." 320 msgstr "" 321 322 #: includes/class-ckwc-integration.php:535 323 msgid "Name Format" 324 msgstr "" 325 326 #: includes/class-ckwc-integration.php:538 327 msgid "How should the customer name be sent to Kit?" 270 328 msgstr "" 271 329 272 330 #: includes/class-ckwc-integration.php:541 273 msgid " Pending payment:"331 msgid "Billing First Name" 274 332 msgstr "" 275 333 276 334 #: includes/class-ckwc-integration.php:542 277 msgid "WooCommerce order created, payment not received." 278 msgstr "" 279 280 #: includes/class-ckwc-integration.php:547 281 #: includes/class-ckwc-integration.php:759 282 msgid "Processing:" 283 msgstr "" 284 285 #: includes/class-ckwc-integration.php:548 286 #: includes/class-ckwc-integration.php:760 287 msgid "WooCommerce order created, payment received, order awaiting fulfilment." 288 msgstr "" 289 290 #: includes/class-ckwc-integration.php:553 291 #: includes/class-ckwc-integration.php:765 292 msgid "Completed:" 293 msgstr "" 294 295 #: includes/class-ckwc-integration.php:554 296 #: includes/class-ckwc-integration.php:766 297 msgid "WooCommerce order created, payment received, order fulfiled." 298 msgstr "" 299 300 #: includes/class-ckwc-integration.php:560 301 msgid "Order Pending payment" 335 msgid "Billing Last Name" 336 msgstr "" 337 338 #: includes/class-ckwc-integration.php:543 339 msgid "Billing First Name + Billing Last Name" 340 msgstr "" 341 342 #: includes/class-ckwc-integration.php:552 343 msgid "Send Last Name" 344 msgstr "" 345 346 #: includes/class-ckwc-integration.php:555 347 msgid "The Kit custom field to store the order's last name." 302 348 msgstr "" 303 349 304 350 #: includes/class-ckwc-integration.php:561 305 #: includes/class-ckwc-integration.php:772 306 msgid "Order Processing" 307 msgstr "" 308 309 #: includes/class-ckwc-integration.php:562 310 #: includes/class-ckwc-integration.php:773 311 msgid "Order Completed" 312 msgstr "" 313 314 #: includes/class-ckwc-integration.php:569 315 msgid "Subscription" 316 msgstr "" 317 318 #: includes/class-ckwc-integration.php:572 319 msgid "The Kit form, tag or sequence to subscribe customers to." 320 msgstr "" 321 322 #: includes/class-ckwc-integration.php:578 323 msgid "Name Format" 324 msgstr "" 325 326 #: includes/class-ckwc-integration.php:581 327 msgid "How should the customer name be sent to Kit?" 328 msgstr "" 329 330 #: includes/class-ckwc-integration.php:584 331 msgid "Billing First Name" 332 msgstr "" 333 334 #: includes/class-ckwc-integration.php:585 335 msgid "Billing Last Name" 336 msgstr "" 337 338 #: includes/class-ckwc-integration.php:586 339 msgid "Billing First Name + Billing Last Name" 340 msgstr "" 341 342 #: includes/class-ckwc-integration.php:595 343 msgid "Send Last Name" 344 msgstr "" 345 346 #: includes/class-ckwc-integration.php:598 347 msgid "The Kit custom field to store the order's last name." 351 msgid "Send Phone Number" 352 msgstr "" 353 354 #: includes/class-ckwc-integration.php:564 355 msgid "The Kit custom field to store the order's phone number." 356 msgstr "" 357 358 #: includes/class-ckwc-integration.php:570 359 msgid "Send Billing Address" 360 msgstr "" 361 362 #: includes/class-ckwc-integration.php:573 363 msgid "The Kit custom field to store the order's billing address." 364 msgstr "" 365 366 #: includes/class-ckwc-integration.php:579 367 msgid "Send Shipping Address" 368 msgstr "" 369 370 #: includes/class-ckwc-integration.php:582 371 msgid "The Kit custom field to store the order's shipping address." 372 msgstr "" 373 374 #: includes/class-ckwc-integration.php:588 375 msgid "Address Format" 376 msgstr "" 377 378 #: includes/class-ckwc-integration.php:599 379 msgid "The format of the billing and shipping addresses to store in Kit." 380 msgstr "" 381 382 #: includes/class-ckwc-integration.php:602 383 msgid "Name" 384 msgstr "" 385 386 #: includes/class-ckwc-integration.php:603 387 msgid "Company Name" 348 388 msgstr "" 349 389 350 390 #: includes/class-ckwc-integration.php:604 351 msgid "Send Phone Number" 391 msgid "Address 1" 392 msgstr "" 393 394 #: includes/class-ckwc-integration.php:605 395 msgid "Address 2" 396 msgstr "" 397 398 #: includes/class-ckwc-integration.php:606 399 msgid "City" 352 400 msgstr "" 353 401 354 402 #: includes/class-ckwc-integration.php:607 355 msgid "The Kit custom field to store the order's phone number." 356 msgstr "" 357 358 #: includes/class-ckwc-integration.php:613 359 msgid "Send Billing Address" 403 msgid "State" 404 msgstr "" 405 406 #: includes/class-ckwc-integration.php:608 407 msgid "Postcode" 408 msgstr "" 409 410 #: includes/class-ckwc-integration.php:609 411 msgid "Country" 360 412 msgstr "" 361 413 362 414 #: includes/class-ckwc-integration.php:616 363 msgid " The Kit custom field to store the order's billing address."364 msgstr "" 365 366 #: includes/class-ckwc-integration.php:6 22367 msgid " Send Shipping Address"415 msgid "Send Payment Method" 416 msgstr "" 417 418 #: includes/class-ckwc-integration.php:619 419 msgid "The Kit custom field to store the order's payment method." 368 420 msgstr "" 369 421 370 422 #: includes/class-ckwc-integration.php:625 371 msgid "The Kit custom field to store the order's shipping address."372 msgstr ""373 374 #: includes/class-ckwc-integration.php:631375 msgid "Address Format"376 msgstr ""377 378 #: includes/class-ckwc-integration.php:642379 msgid "The format of the billing and shipping addresses to store in Kit."380 msgstr ""381 382 #: includes/class-ckwc-integration.php:645383 msgid "Name"384 msgstr ""385 386 #: includes/class-ckwc-integration.php:646387 msgid "Company Name"388 msgstr ""389 390 #: includes/class-ckwc-integration.php:647391 msgid "Address 1"392 msgstr ""393 394 #: includes/class-ckwc-integration.php:648395 msgid "Address 2"396 msgstr ""397 398 #: includes/class-ckwc-integration.php:649399 msgid "City"400 msgstr ""401 402 #: includes/class-ckwc-integration.php:650403 msgid "State"404 msgstr ""405 406 #: includes/class-ckwc-integration.php:651407 msgid "Postcode"408 msgstr ""409 410 #: includes/class-ckwc-integration.php:652411 msgid "Country"412 msgstr ""413 414 #: includes/class-ckwc-integration.php:659415 msgid "Send Payment Method"416 msgstr ""417 418 #: includes/class-ckwc-integration.php:662419 msgid "The Kit custom field to store the order's payment method."420 msgstr ""421 422 #: includes/class-ckwc-integration.php:668423 423 msgid "Send Customer Note" 424 424 msgstr "" 425 425 426 #: includes/class-ckwc-integration.php:6 71426 #: includes/class-ckwc-integration.php:628 427 427 msgid "The Kit custom field to store the order's customer note." 428 428 msgstr "" 429 429 430 #: includes/class-ckwc-integration.php:6 79430 #: includes/class-ckwc-integration.php:636 431 431 msgid "Opt-In Checkbox" 432 432 msgstr "" 433 433 434 #: includes/class-ckwc-integration.php:6 80434 #: includes/class-ckwc-integration.php:637 435 435 msgid "Display an opt-in checkbox on checkout" 436 436 msgstr "" 437 437 438 #: includes/class-ckwc-integration.php:6 83438 #: includes/class-ckwc-integration.php:640 439 439 msgid "" 440 440 "If enabled, customers will <strong>only</strong> be subscribed to the chosen forms, tags and sequences if they check the opt-in checkbox at checkout.<br />\n" … … 442 442 msgstr "" 443 443 444 #: includes/class-ckwc-integration.php:6 94444 #: includes/class-ckwc-integration.php:651 445 445 msgid "Opt-In Checkbox: Label" 446 446 msgstr "" 447 447 448 #: includes/class-ckwc-integration.php:6 96448 #: includes/class-ckwc-integration.php:653 449 449 msgid "I want to subscribe to the newsletter" 450 450 msgstr "" 451 451 452 #: includes/class-ckwc-integration.php:6 97452 #: includes/class-ckwc-integration.php:654 453 453 msgid "Customize the label next to the opt-in checkbox." 454 454 msgstr "" 455 455 456 #: includes/class-ckwc-integration.php: 704456 #: includes/class-ckwc-integration.php:661 457 457 msgid "Opt-In Checkbox: Default Status" 458 458 msgstr "" 459 459 460 #: includes/class-ckwc-integration.php: 707460 #: includes/class-ckwc-integration.php:664 461 461 msgid "The default state of the opt-in checkbox." 462 462 msgstr "" 463 463 464 #: includes/class-ckwc-integration.php: 710464 #: includes/class-ckwc-integration.php:667 465 465 msgid "Checked" 466 466 msgstr "" 467 467 468 #: includes/class-ckwc-integration.php: 711468 #: includes/class-ckwc-integration.php:668 469 469 msgid "Unchecked" 470 470 msgstr "" 471 471 472 #: includes/class-ckwc-integration.php: 718472 #: includes/class-ckwc-integration.php:675 473 473 msgid "Opt-In Checkbox: Display Location" 474 474 msgstr "" 475 475 476 #: includes/class-ckwc-integration.php: 721476 #: includes/class-ckwc-integration.php:678 477 477 msgid "Where to display the opt-in checkbox on the checkout page (under \"Billing details\" or \"Additional information\")." 478 478 msgstr "" 479 479 480 #: includes/class-ckwc-integration.php: 724480 #: includes/class-ckwc-integration.php:681 481 481 msgid "Billing" 482 482 msgstr "" 483 483 484 #: includes/class-ckwc-integration.php: 725484 #: includes/class-ckwc-integration.php:682 485 485 msgid "Order" 486 486 msgstr "" 487 487 488 #: includes/class-ckwc-integration.php: 734488 #: includes/class-ckwc-integration.php:691 489 489 msgid "Purchase Data" 490 490 msgstr "" 491 491 492 #: includes/class-ckwc-integration.php: 735492 #: includes/class-ckwc-integration.php:692 493 493 msgid "Send purchase data to Kit." 494 494 msgstr "" 495 495 496 #: includes/class-ckwc-integration.php: 738496 #: includes/class-ckwc-integration.php:695 497 497 msgid "" 498 498 "If enabled, the customer's order data will be sent to Kit. Their email address will always be subscribed to Kit, <strong>regardless of the Customer's opt in status.</strong><br />\n" … … 500 500 msgstr "" 501 501 502 #: includes/class-ckwc-integration.php:7 49502 #: includes/class-ckwc-integration.php:706 503 503 msgid "Purchase Data Event" 504 504 msgstr "" 505 505 506 #: includes/class-ckwc-integration.php:7 55506 #: includes/class-ckwc-integration.php:712 507 507 msgid "When should purchase data be sent?" 508 508 msgstr "" 509 509 510 #: includes/class-ckwc-integration.php:7 80510 #: includes/class-ckwc-integration.php:737 511 511 msgid "Sync Past Orders" 512 512 msgstr "" 513 513 514 #: includes/class-ckwc-integration.php:7 81514 #: includes/class-ckwc-integration.php:738 515 515 msgid "Send old purchase data to Kit i.e. Orders that were created in WooCommerce prior to this Plugin being installed." 516 516 msgstr "" 517 517 518 #: includes/class-ckwc-integration.php:7 97518 #: includes/class-ckwc-integration.php:754 519 519 msgid "Debug" 520 520 msgstr "" 521 521 522 #: includes/class-ckwc-integration.php:7 99522 #: includes/class-ckwc-integration.php:756 523 523 msgid "Write data to a log file" 524 524 msgstr "" 525 525 526 #: includes/class-ckwc-integration.php: 804526 #: includes/class-ckwc-integration.php:761 527 527 msgid "View log file" 528 528 msgstr "" 529 529 530 #: includes/class-ckwc-integration.php:8 74530 #: includes/class-ckwc-integration.php:831 531 531 msgid "Do you want to send past WooCommerce Orders to Kit?" 532 532 msgstr "" 533 533 534 534 #. translators: Number of WooCommerce Orders 535 #: includes/class-ckwc-integration.php:10 54535 #: includes/class-ckwc-integration.php:1011 536 536 #, php-format 537 537 msgid "%s not been sent to Kit based on the Purchase Data Event setting above. This is either because sending purchase data is/was disabled, and/or orders were created prior to installing this integration.<br />Use the sync button to send data for these orders to Kit." … … 539 539 540 540 #. translators: number of Orders not sent to ConvertKit 541 #: includes/class-ckwc-integration.php:10 57541 #: includes/class-ckwc-integration.php:1014 542 542 #, php-format 543 543 msgid "%s WooCommerce order has" -
convertkit-for-woocommerce/trunk/readme.txt
r3408882 r3411835 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.1 8 Stable tag: 2.0. 28 Stable tag: 2.0.3 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 46 46 47 47 == Changelog == 48 49 ### 2.0.3 2025-12-03 50 * Fix: Settings: Improve logic to automatically delete invalid Access Tokens 48 51 49 52 ### 2.0.2 2025-12-03 -
convertkit-for-woocommerce/trunk/woocommerce-convertkit.php
r3408882 r3411835 10 10 * Plugin URI: https://www.kit.com 11 11 * Description: Integrates WooCommerce with Kit, allowing customers to be automatically sent to your Kit account. 12 * Version: 2.0. 212 * Version: 2.0.3 13 13 * Author: Kit 14 14 * Author URI: https://www.kit.com … … 18 18 * 19 19 * WC requires at least: 3.0 20 * WC tested up to: 10. 2.120 * WC tested up to: 10.3.6 21 21 */ 22 22 … … 31 31 define( 'CKWC_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 32 32 define( 'CKWC_PLUGIN_PATH', __DIR__ ); 33 define( 'CKWC_PLUGIN_VERSION', '2.0. 2' );33 define( 'CKWC_PLUGIN_VERSION', '2.0.3' ); 34 34 define( 'CKWC_OAUTH_CLIENT_ID', 'L0kyADsB3WP5zO5MvUpXQU64gIntQg9BBAIme17r_7A' ); 35 35 define( 'CKWC_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
Note: See TracChangeset
for help on using the changeset viewer.