| @@ -102,9 +102,9 @@ | ||
| 102 | 102 | data-nonce="<?php echo esc_attr( wp_create_nonce( 'f12-doi-avada-dismiss' ) ); ?>"> |
| 103 | 103 | <?php esc_html_e( 'Dismiss until update', 'double-opt-in' ); ?> |
| 104 | 104 | </button> |
| 105 | 105 | <?php endif; ?> |
| 106 | - <a href="https://www.forge12.com/shop/contact-form-7-double-opt-in" | |
| 106 | + <a href="<?php echo esc_url( self::productUrl() ); ?>" | |
| 107 | 107 | target="_blank" |
| 108 | 108 | rel="noopener"> |
| 109 | 109 | <?php esc_html_e( 'Learn more', 'double-opt-in' ); ?> |
| 110 | 110 | </a> |
| @@ -269,6 +269,17 @@ | ||
| 269 | 269 | if ( ! defined( 'FORGE12_OPTIN_VERSION' ) ) { |
| 270 | 270 | return false; |
| 271 | 271 | } |
| 272 | 272 | return version_compare( FORGE12_OPTIN_VERSION, '5.0.0', '>=' ); |
| 273 | + } | |
| 274 | + | |
| 275 | + /** | |
| 276 | + * Shop link with the same tracking arguments as every other entry point. | |
| 277 | + */ | |
| 278 | + private static function productUrl(): string { | |
| 279 | + $fn = '\\forge12\\contactform7\\CF7DoubleOptIn\\get_product_url'; | |
| 280 | + | |
| 281 | + return function_exists( $fn ) | |
| 282 | + ? (string) $fn( 'avada-notice' ) | |
| 283 | + : 'https://www.forge12.com/shop/contact-form-7-double-opt-in'; | |
| 273 | 284 | } |
| 274 | 285 | } |