Changeset 3350251
- Timestamp:
- 08/26/2025 09:50:08 AM (6 months ago)
- Location:
- wc-thanks-redirect
- Files:
-
- 286 added
- 7 edited
-
tags/4.2.7 (added)
-
tags/4.2.7/assets (added)
-
tags/4.2.7/assets/css (added)
-
tags/4.2.7/assets/css/admin.css (added)
-
tags/4.2.7/assets/css/bootstrap.min.css (added)
-
tags/4.2.7/assets/css/toastr.min.css (added)
-
tags/4.2.7/assets/img (added)
-
tags/4.2.7/assets/img/icon.png (added)
-
tags/4.2.7/assets/js (added)
-
tags/4.2.7/assets/js/admin.js (added)
-
tags/4.2.7/assets/js/bootstrap.min.js (added)
-
tags/4.2.7/assets/js/toastr.min.js (added)
-
tags/4.2.7/assets/js/wctr-sandbox-block.js (added)
-
tags/4.2.7/composer.json (added)
-
tags/4.2.7/composer.lock (added)
-
tags/4.2.7/index.php (added)
-
tags/4.2.7/languages (added)
-
tags/4.2.7/languages/wc-thanks-redirect-de_DE.mo (added)
-
tags/4.2.7/languages/wc-thanks-redirect-de_DE.po (added)
-
tags/4.2.7/languages/wc-thanks-redirect-de_DE_formal.mo (added)
-
tags/4.2.7/languages/wc-thanks-redirect-de_DE_formal.po (added)
-
tags/4.2.7/languages/wc-thanks-redirect-hi_IN.mo (added)
-
tags/4.2.7/languages/wc-thanks-redirect-hi_IN.po (added)
-
tags/4.2.7/languages/wc-thanks-redirect-uk_UA.mo (added)
-
tags/4.2.7/languages/wc-thanks-redirect-uk_UA.po (added)
-
tags/4.2.7/languages/wc-thanks-redirect.pot (added)
-
tags/4.2.7/license.txt (added)
-
tags/4.2.7/readme.txt (added)
-
tags/4.2.7/src (added)
-
tags/4.2.7/src/Admin.php (added)
-
tags/4.2.7/src/Api.php (added)
-
tags/4.2.7/src/Compatibility (added)
-
tags/4.2.7/src/Compatibility/PYS_Tracking.php (added)
-
tags/4.2.7/src/Compatibility/SandBoxPaymentBlocksSupport.php (added)
-
tags/4.2.7/src/Front.php (added)
-
tags/4.2.7/src/Helper.php (added)
-
tags/4.2.7/src/Modules (added)
-
tags/4.2.7/src/Modules/Rules.php (added)
-
tags/4.2.7/src/Modules/SandBoxPayment.php (added)
-
tags/4.2.7/uninstall.php (added)
-
tags/4.2.7/vendor (added)
-
tags/4.2.7/vendor/autoload.php (added)
-
tags/4.2.7/vendor/composer (added)
-
tags/4.2.7/vendor/composer/ClassLoader.php (added)
-
tags/4.2.7/vendor/composer/InstalledVersions.php (added)
-
tags/4.2.7/vendor/composer/LICENSE (added)
-
tags/4.2.7/vendor/composer/autoload_classmap.php (added)
-
tags/4.2.7/vendor/composer/autoload_files.php (added)
-
tags/4.2.7/vendor/composer/autoload_namespaces.php (added)
-
tags/4.2.7/vendor/composer/autoload_psr4.php (added)
-
tags/4.2.7/vendor/composer/autoload_real.php (added)
-
tags/4.2.7/vendor/composer/autoload_static.php (added)
-
tags/4.2.7/vendor/composer/installed.json (added)
-
tags/4.2.7/vendor/composer/installed.php (added)
-
tags/4.2.7/vendor/composer/platform_check.php (added)
-
tags/4.2.7/vendor/freemius (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/LICENSE.txt (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/README.md (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/account.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/add-ons.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/affiliation.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/checkout.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/clone-resolution.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/common.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/connect.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/debug.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/dialog-boxes.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/optout.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/admin/plugins.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/customizer.css (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/css/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/img (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/img/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/img/theme-icon.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/jquery.form.js (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/nojquery.ba-postmessage.js (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/postmessage.js (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/14fb1bd5b7c41648488b06147f50a0dc.svg (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/178afa6030e76635dbe835e111d2c507.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/27b5a722a5553d9de0170325267fccec.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/4375c4a3ddc6f637c2ab9a2d7220f91e.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/4529cac82a2d1f300d3c4702b7b5e8f3.svg (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/5480ed23b199531a8cbc05924f26952b.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/b4f3b958f4a019862d81b15f3f8eee3a.svg (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/c03f665db27af43971565560adfba594.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/cb5fc4f6ec7ada72e986f6e7dde365bf.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/dd89563360f0272635c8f0ab7d7f1402.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/e366d70661d8ad2493bd6afbd779f125.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/f18006f6535a1a6e9c6bfbffafe6f18a.svg (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/f3aac72a8e63997d6bb888f816457e9b.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/f928f1be99776af83e8e6be4baf8ffe7.svg (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/fde48e4609a6ddc11d639fc2421f2afd.png (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/freemius-pricing.js (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/assets/js/pricing/freemius-pricing.js.LICENSE.txt (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/composer.json (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/config.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-freemius-abstract.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-freemius.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-admin-notices.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-api.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-garbage-collector.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-lock.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-logger.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-options.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-plugin-updater.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-security.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-storage.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/class-fs-user-lock.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/customizer (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/customizer/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/debug (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/debug/debug-bar-start.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/debug/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-affiliate.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-billing.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-entity.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-payment.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-plugin-info.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-plugin-license.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-plugin-plan.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-plugin-tag.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-plugin.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-pricing.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-scope-entity.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-site.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-subscription.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/class-fs-user.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/entities/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/fs-core-functions.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/fs-essential-functions.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/fs-html-escaping-functions.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/fs-plugin-info-dialog.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/l10n.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-cache-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-checkout-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-clone-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-contact-form-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-debug-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-key-value-storage.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-license-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-option-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-permission-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-plan-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/class-fs-plugin-manager.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/managers/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/Exception.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/Exceptions/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/FreemiusBase.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/FreemiusWordPress.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/LICENSE.txt (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/sdk/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/supplements (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/includes/supplements/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-cs_CZ.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-da_DK.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-de_DE.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-es_ES.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-fr_FR.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-he_IL.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-hu_HU.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-it_IT.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-ja.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-nl_NL.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-ru_RU.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-ta.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius-zh_CN.mo (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/freemius.pot (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/languages/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/require.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/start.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/billing.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/partials (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/partials/activate-license-button.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/partials/deactivate-license-button.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/partials/disconnect-button.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/partials/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/partials/site.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/account/payments.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/add-ons.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/add-trial-to-pricing.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/admin-notice.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/ajax-loader.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/api-connectivity-message-js.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/auto-installation.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/checkout (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/checkout.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/checkout/frame.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/checkout/process-redirect.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/checkout/redirect.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/clone-resolution-js.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/connect (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/connect.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/connect/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/connect/permission.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/connect/permissions-group.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/contact.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/debug (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/debug.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/debug/api-calls.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/debug/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/debug/logger.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/debug/plugins-themes-sync.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/debug/scheduled-crons.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/email.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/affiliation.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/data-debug-mode.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/deactivation (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/deactivation/contact.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/deactivation/form.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/deactivation/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/deactivation/retry-skip.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/email-address-update.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/license-activation.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/optout.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/resend-key.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/subscription-cancellation.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/trial-start.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/forms/user-change.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/gdpr-optin-js.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/js (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/js/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/js/jquery.content-change.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/js/open-license-activation.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/js/permissions.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/js/style-premium-theme.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/partials (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/partials/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/partials/network-activation.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/plugin-icon.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/plugin-info (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/plugin-info/description.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/plugin-info/features.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/plugin-info/index.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/plugin-info/screenshots.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/pricing.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/secure-https-header.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/sticky-admin-notice-js.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/tabs-capture-js.php (added)
-
tags/4.2.7/vendor/freemius/wordpress-sdk/templates/tabs.php (added)
-
tags/4.2.7/wc-thanks-redirect.php (added)
-
trunk/assets/js/wctr-sandbox-block.js (added)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/src/Admin.php (modified) (10 diffs)
-
trunk/src/Api.php (modified) (5 diffs)
-
trunk/src/Compatibility/SandBoxPaymentBlocksSupport.php (added)
-
trunk/src/Front.php (modified) (7 diffs)
-
trunk/src/Helper.php (modified) (8 diffs)
-
trunk/src/Modules/Rules.php (modified) (2 diffs)
-
trunk/src/Modules/SandBoxPayment.php (added)
-
trunk/wc-thanks-redirect.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-thanks-redirect/trunk/readme.txt
r3345455 r3350251 7 7 Requires at least: 6.2 8 8 Tested up to: 6.8 9 Stable tag: 4.2. 610 Version: 4.2. 69 Stable tag: 4.2.7 10 Version: 4.2.7 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 65 65 13- GTM DataLayer for Google Analytics 66 66 67 14- Compatibility with PixelYourSite Facebook 67 14- Compatible with **PixelYourSite** Facebook 68 69 15- **SandBox Payment Gateway** only available to administrators for simulating test order 68 70 69 71 … … 102 104 103 105 16 - **Optionally, you can choose between a classic or modern template for order details:** 104 *For the classic template (default), use: **[TRFW_ORDER_DETAILS template="classic"]**105 *For the modern template, use: **[TRFW_ORDER_DETAILS template="modern"]**106 For the classic template (default), use: **[TRFW_ORDER_DETAILS template="classic"]** 107 For the modern template, use: **[TRFW_ORDER_DETAILS template="modern"]** 106 108 107 109 For complete documentation, please visit the <a target=_blank href="https://nitin247.com/docs/thank-you-page/">documentation page</a>. … … 115 117 116 118 **Supercharge Your WooCommerce Order Approval Process!** 117 Transform how you manage your orders with the <a target="_blank" href="https://wordpress.org/plugins/approve-orders/">Approve Orders for WooCommerce plugin</a>119 Transform how you manage your orders with the <a target="_blank" href="https://wordpress.org/plugins/approve-orders/">Approve Orders for WooCommerce</a> plugin 118 120 Easily **approve or reject orders** and streamline your workflow like never before. 119 121 … … 194 196 == Changelog == 195 197 198 **V 4.2.7** 199 SandBox Payment Gateway for test payments 200 FIX per product redirect 201 PixelYourSite integration indicator 202 196 203 **V 4.2.6** 197 204 Compatibility with PixelYourSite Facebook … … 284 291 == Upgrade Notice == 285 292 286 = 4.2. 6 =287 Compatibility with PixelYourSite Facebook 293 = 4.2.7 = 294 SandBox Payment Gateway + FIX per product redirect -
wc-thanks-redirect/trunk/src/Admin.php
r3245519 r3350251 30 30 } 31 31 32 /** 33 * Constructor 34 * 35 * @since 4.1.6 36 */ 32 37 public function __construct() { 33 38 … … 48 53 // Add Filter to append body class 49 54 add_action( 'admin_body_class', array( $this, 'admin_body_class' ) ); 50 51 } 52 55 } 56 57 /** 58 * Submenu entry 59 * 60 * @since 4.1.6 61 * 62 * @return void 63 */ 53 64 public function submenu_entry() { 54 65 add_submenu_page( … … 69 80 } 70 81 82 /** 83 * Settings Page 84 * 85 * @since 4.1.6 86 * 87 * @return string ob_get_clean 88 */ 71 89 public function settings_page( $settings, $current_section ) { 72 90 ob_start(); … … 79 97 $tab = str_replace( 'wctr-', '', $tab ); 80 98 81 if ( $current_section === 'wctr' ) { //phpcs:ig 99 if ( $current_section === 'wctr' ) { //phpcs:ignore 82 100 83 101 $settings_url = $setting_fields = $settings_end = array(); 84 102 103 $wctr_pys_active = class_exists( '\PixelYourSite\PYS' ) ? __( 'PixelYourSite integration is active, nothing needs to be done!', 'wc-thanks-redirect-pro' ) :__( 'Activate PixelYourSite to enable automatic PixelYourSite Integration', 'wc-thanks-redirect-pro' ); 104 85 105 $settings_tab = admin_url( 'admin.php?page=wc-settings&tab=products§ion=wctr&wctr-tab=settings' ); 86 106 $rules_tab = admin_url( 'admin.php?page=wc-settings&tab=products§ion=wctr&wctr-tab=rules' ); … … 145 165 146 166 $settings_url[] = array( 167 'name' => __( 'PixelYourSite Integration', 'wc-thanks-redirect-pro' ), 168 'desc_tip' => __( 'This will automatically activate the PixelYourSite Integration with Thank You Page', 'wc-thanks-redirect-pro' ), 169 'type' => 'checkbox', 170 'default' => class_exists( '\PixelYourSite\PYS' ) ? 'yes' : 'no', 171 'desc' => $wctr_pys_active, 172 'disabled' => true, 173 ); 174 175 $settings_url[] = array( 147 176 'name' => __( 'WPML Translated URL', 'wc-thanks-redirect' ), 148 'desc_tip' => __( 'WPML Translated URL is a PAID Feature. Please upgrade to <a href="' . esc_url( $wc_thanks_redirect_fs->get_upgrade_url() ) . '"> PRO</a>', 'wc-thanks-redirect' ),177 'desc_tip' => __( 'WPML Translated URL is a PAID Feature. Please upgrade to <a href="' . esc_url( $wc_thanks_redirect_fs->get_upgrade_url() ) . '">Thank You Page PRO</a>', 'wc-thanks-redirect' ), 149 178 'id' => 'wctr_wpml_active', 150 179 'type' => 'checkbox', … … 275 304 276 305 ob_get_clean(); 277 278 } 279 306 } 307 308 /** 309 * Save custom settings 310 * 311 * @since 4.1.6 312 * 313 * @return void 314 */ 280 315 public function save_custom_settings( $post_id ) { 281 316 … … 304 339 } 305 340 341 /** 342 * Admin Scripts 343 * 344 * @since 4.1.6 345 * 346 * @return void 347 */ 306 348 public function admin_scripts() { 307 349 308 if ( isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] && isset( $_GET['section'] ) && 'wctr' === $_GET['section'] ) { 350 if ( isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] && isset( $_GET['section'] ) && 'wctr' === $_GET['section'] ) { // phpcs:ignore 309 351 310 352 wp_enqueue_style( 'wctr-bootstrap', WCTR_PLUGIN_URL . 'assets/css/bootstrap.min.css', array(), '5.0.2' ); … … 342 384 } 343 385 386 /** 387 * Remove WooCommerce Save Button 388 * 389 * @since 4.1.6 390 * 391 * @return void 392 */ 344 393 public function remove_woocommerce_save_button() { 345 394 346 if ( isset( $_GET['page'] ) && isset( $_GET['wctr-tab'] ) && 'wc-settings' === $_GET['page'] ) { 395 if ( isset( $_GET['page'] ) && isset( $_GET['wctr-tab'] ) && 'wc-settings' === $_GET['page'] ) { // phpcs:ignore 347 396 echo '<style> .notice, .update-nag { display: none !important; } </style>'; 348 397 349 if ( 'rules' === $_GET['wctr-tab'] ) { 398 if ( 'rules' === $_GET['wctr-tab'] ) { // phpcs:ignore 350 399 echo '<style> .woocommerce-save-button { display: none; } </style>'; 351 400 } … … 353 402 } 354 403 404 /** 405 * Settings products page 406 * 407 * @since 4.1.6 408 * 409 * @return void 410 */ 355 411 public function settings_products_page() { 356 412 … … 396 452 } 397 453 454 /** 455 * Add body class 456 * 457 * @since 4.1.6 458 * 459 * @return string $classes 460 */ 398 461 public function admin_body_class( $classes ) { 399 462 $classes .= ' wctr-admin'; 400 463 return $classes; 401 464 } 402 403 465 } -
wc-thanks-redirect/trunk/src/Api.php
r3172621 r3350251 49 49 array( $this, 'register_routes' ) 50 50 ); 51 52 } 53 51 } 52 53 /** 54 * Register routes 55 * 56 * @since 4.1.6 57 * @return void 58 */ 54 59 public function register_routes() { 55 60 … … 145 150 ) 146 151 ); 147 148 } 149 152 } 153 154 /** 155 * Save TY Rules 156 * 157 * @since 4.1.6 158 * 159 * @param \WP_REST_Request $request 160 * @return \WP_REST_Response 161 */ 150 162 public function save_ty_rules( \WP_REST_Request $request ) { 151 163 … … 156 168 157 169 return new \WP_REST_Response( $tyrules, 200 ); 158 159 } 160 170 } 171 172 /** 173 * Search product 174 * 175 * @since 4.1.6 176 * 177 * @return array @products 178 */ 161 179 public function search_product() { 162 180 163 $keyword = isset( $_GET['search'] ) ? sanitize_text_field( $_GET['search'] ) : ''; 164 $variations_only = isset( $_GET['variations_only'] ) ? sanitize_text_field( $_GET['variations_only'] ) : false; 181 $keyword = isset( $_GET['search'] ) ? sanitize_text_field( $_GET['search'] ) : ''; // phpcs:ignore 182 $variations_only = isset( $_GET['variations_only'] ) ? sanitize_text_field( $_GET['variations_only'] ) : false; // phpcs:ignore 165 183 166 184 $products = Helper::search_product( $keyword, $variations_only ); 167 185 return $products; 168 169 } 170 186 } 187 188 /** 189 * Search category 190 * 191 * @since 4.1.6 192 * 193 * @return array @products 194 */ 171 195 public function search_category() { 172 196 173 $keyword = isset( $_GET['search'] ) ? sanitize_text_field( $_GET['search'] ) : ''; 174 $post_type = isset( $_GET['post_type'] ) ? sanitize_text_field( $_GET['post_type'] ) : 'post'; 197 $keyword = isset( $_GET['search'] ) ? sanitize_text_field( $_GET['search'] ) : ''; // phpcs:ignore 198 $post_type = isset( $_GET['post_type'] ) ? sanitize_text_field( $_GET['post_type'] ) : 'post'; // phpcs:ignore 175 199 176 200 $products = Helper::search_categories( $keyword, $post_type ); 177 201 return $products; 178 179 } 180 202 } 203 204 /** 205 * Search tags 206 * 207 * @since 4.1.6 208 * 209 * @return array @products 210 */ 181 211 public function search_tags() { 182 212 183 $keyword = isset( $_GET['search'] ) ? sanitize_text_field( $_GET['search'] ) : ''; 184 $post_type = isset( $_GET['post_type'] ) ? sanitize_text_field( $_GET['post_type'] ) : 'post'; 213 $keyword = isset( $_GET['search'] ) ? sanitize_text_field( $_GET['search'] ) : ''; // phpcs:ignore 214 $post_type = isset( $_GET['post_type'] ) ? sanitize_text_field( $_GET['post_type'] ) : 'post'; // phpcs:ignore 185 215 186 216 $products = Helper::search_tags( $keyword, $post_type ); 187 217 return $products; 188 189 } 190 218 } 219 220 /** 221 * Product details 222 * 223 * @since 4.1.6 224 * 225 * @param \WP_REST_Request $request 226 * @return array \WP_REST_Response 227 */ 191 228 public function product_details( \WP_REST_Request $request ) { 192 229 // Get the product IDs from the request … … 217 254 } 218 255 256 /** 257 * Get post terms 258 * 259 * @since 4.1.6 260 * 261 * @param \WP_REST_Request $request 262 * @return array \WP_REST_Response 263 */ 219 264 public function get_postterms( \WP_REST_Request $request ) { 220 265 // Get the product IDs from the request … … 246 291 } 247 292 293 /** 294 * Fetch TY Rules 295 * 296 * @since 4.1.6 297 * 298 * @return \WP_REST_Response 299 */ 248 300 public function fetch_ty_rules() { 249 301 250 302 $tyrules = get_option( $this->option, array() ); 251 303 return new \WP_REST_Response( array( 'data' => $tyrules ), 200 ); 252 253 } 254 304 } 305 306 /** 307 * Get write api permission check 308 * 309 * @since 4.1.6 310 * 311 * @return boolean 312 */ 255 313 public function get_write_api_permission_check() { 256 314 return current_user_can( 'manage_options' ) ? true : false; 257 315 } 258 259 316 } 260 -
wc-thanks-redirect/trunk/src/Front.php
r3345455 r3350251 8 8 namespace NeeBPlugins\Wctr; 9 9 10 // use NeeBPlugins\Wctr\Modules\Rules as TY_rules;11 10 use NeeBPlugins\Wctr\Compatibility\PYS_Tracking as Wctr_PYS; 11 use NeeBPlugins\Wctr\Modules\SandBoxPayment as WCTR_SandBoxPayment; 12 12 13 13 class Front { … … 29 29 } 30 30 31 /** 32 * Constructor 33 * 34 * @since 4.1.6 35 */ 31 36 public function __construct() { 32 37 /* Add Plugin shortcode */ … … 36 41 /* Add action for Footer */ 37 42 add_action( 'wp_footer', array( $this, 'datalayer_purchase_event' ) ); 43 // Add the SandBox Payment gateway to the list of available payment gateways 44 add_filter( 'woocommerce_payment_gateways', array( $this, 'add_sandbox_gateway' ) ); 38 45 // Load tracking 39 46 $this->load_tracking(); … … 192 199 $order_status = $order->get_status(); 193 200 201 $order_items = $order->get_items(); 202 $redirects = array(); 203 $priority = array(); 204 205 foreach ($order_items as $key => $_item) { // phpcs:ignore 206 $product_id = $_item->get_product_id(); 207 $product_meta_thanks_url = get_post_meta( $product_id, 'wc_thanks_redirect_custom_thankyou', true ); 208 209 if ( ! empty( $product_meta_thanks_url ) ) { 210 $order_string = "&order_key=$order_key"; 211 $thank_you_url = wp_parse_url( get_post_meta( $product_id, 'wc_thanks_redirect_custom_thankyou', true ) ); 212 $url_priority = get_post_meta( $product_id, 'wc_thanks_redirect_url_priority', true ); 213 214 $product_thanks = $thank_you_url['scheme'] . '://' . $thank_you_url['host'] . $thank_you_url['path'] . '?' . ( ! empty( $thank_you_url['query'] ) ? $thank_you_url['query'] : '' ) . $order_string; 215 $product_failed = get_post_meta( $product_id, 'wc_thanks_redirect_custom_failure', true ); 216 217 $priority['thankyou'] = $product_thanks; 218 $priority['failed'] = $product_failed; 219 $priority['priority'] = $url_priority; 220 221 $redirects[] = $priority; 222 223 } 224 } 225 226 if ( ! empty( $redirects ) ) { 227 228 array_multisort( array_column( $redirects, 'priority' ), SORT_ASC, $redirects ); 229 230 if ( $order_status !== 'failed' ) { 231 // Check If URL is valid 232 if ( filter_var( $redirects[0]['thankyou'], FILTER_VALIDATE_URL ) ) { 233 wp_redirect( $redirects[0]['thankyou'] ); 234 exit; 235 } 236 } else { 237 // Check If URL is valid 238 if ( filter_var( $redirects[0]['failed'], FILTER_VALIDATE_URL ) ) { 239 wp_redirect( $redirects[0]['failed'] ); 240 exit; 241 } 242 } 243 } 244 194 245 if ( isset( $wctr_global ) && strtolower( $wctr_global ) === 'yes' ) { 195 246 $thank_you_url = get_option( 'wctr_thanks_redirect_url' ); … … 211 262 exit; 212 263 } 213 } else {214 215 $order_items = $order->get_items();216 $redirects = array();217 $priority = array();218 219 foreach ($order_items as $key => $_item) { // phpcs:ignore220 $product_id = $_item->get_product_id();221 $product_meta_thanks_url = get_post_meta( $product_id, 'wc_thanks_redirect_custom_thankyou', true );222 223 if ( ! empty( $product_meta_thanks_url ) ) {224 $order_string = "&order_key=$order_key";225 $thank_you_url = wp_parse_url( get_post_meta( $product_id, 'wc_thanks_redirect_custom_thankyou', true ) );226 $url_priority = get_post_meta( $product_id, 'wc_thanks_redirect_url_priority', true );227 228 $product_thanks = $thank_you_url['scheme'] . '://' . $thank_you_url['host'] . $thank_you_url['path'] . '?' . ( ! empty( $thank_you_url['query'] ) ? $thank_you_url['query'] : '' ) . $order_string;229 $product_failed = get_post_meta( $product_id, 'wc_thanks_redirect_custom_failure', true );230 231 $priority['thankyou'] = $product_thanks;232 $priority['failed'] = $product_failed;233 $priority['priority'] = $url_priority;234 235 $redirects[] = $priority;236 237 }238 }239 240 if ( ! empty( $redirects ) ) {241 242 array_multisort( array_column( $redirects, 'priority' ), SORT_ASC, $redirects );243 244 if ( $order_status !== 'failed' ) {245 // Check If URL is valid246 if ( filter_var( $redirects[0]['thankyou'], FILTER_VALIDATE_URL ) ) {247 wp_redirect( $redirects[0]['thankyou'] );248 exit;249 }250 } else {251 // Check If URL is valid252 if ( filter_var( $redirects[0]['failed'], FILTER_VALIDATE_URL ) ) {253 wp_redirect( $redirects[0]['failed'] );254 exit;255 }256 }257 }258 264 } 259 265 } … … 279 285 280 286 // Fetch order data 281 $order_items = $order->get_items(); 282 $items_data = array(); 283 $fb_content_ids = array(); 284 $fb_contents = array(); 287 $order_items = $order->get_items(); 288 $items_data = array(); 285 289 286 290 foreach ( $order_items as $item_id => $item ) { // phpcs:ignore … … 360 364 } 361 365 } 366 367 /** 368 * Add the SandBox gateway to the list of available payment gateways. 369 * 370 * @param array $gateways The list of available payment gateways. 371 * @return array The list of available payment gateways with the SandBox gateway added. 372 */ 373 public function add_sandbox_gateway( $gateways ) { 374 $gateways[] = WCTR_SandBoxPayment::class; 375 return $gateways; 376 } 362 377 } -
wc-thanks-redirect/trunk/src/Helper.php
r3172621 r3350251 85 85 } 86 86 87 /** 88 * Get payment gateways 89 * 90 * @since 4.1.6 91 * @return array 92 */ 87 93 public function get_payment_gateways() { 88 94 // Get available payment gateways … … 105 111 } 106 112 113 /** 114 * Search products 115 * 116 * @since 4.1.6 117 * @param string $keyword 118 * @param bool $variations_only 119 * @return array 120 */ 107 121 public static function search_product( $keyword = '', $variations_only = false ) { 108 122 global $wpdb; … … 188 202 } 189 203 204 /** 205 * Search categories 206 * 207 * @since 4.1.6 208 * @param string $search_term 209 * @param string $post_type 210 * @return array 211 */ 190 212 public static function search_categories( $search_term, $post_type = 'post' ) { 191 213 … … 211 233 } 212 234 235 /** 236 * Search tags 237 * 238 * @since 4.1.6 239 * @param string $search_term 240 * @param string $post_type 241 * @return array 242 */ 213 243 public static function search_tags( $search_term, $post_type = 'product' ) { 214 244 … … 242 272 } 243 273 274 /** 275 * Search posts 276 * 277 * @since 4.1.6 278 * @param string $search_term 279 * @param string $post_type 280 * @return array 281 */ 282 public static function search_posts( $search_term, $post_type = 'product' ) { 283 284 // Sanitize the search term 285 $search_term = sanitize_text_field( $search_term ); 286 287 // Determine the taxonomy based on the post type 288 $taxonomy = ( 'product' === $post_type ) ? 'product_tag' : 'post_tag'; 289 290 // Get tags that match the search term 291 $tags = get_terms( 292 array( 293 'taxonomy' => $taxonomy, 294 'name__like' => $search_term, 295 'hide_empty' => false, 296 ) 297 ); 298 299 $results = array(); 300 301 if ( ! empty( $tags ) ) { 302 foreach ( $tags as $tag ) { 303 $results[] = array( 304 'id' => $tag->term_id, 305 'text' => $tag->name, 306 ); 307 } 308 } 309 310 return $results; 311 } 312 313 /** 314 * Product details 315 * 316 * @since 4.1.6 317 * @param array $ids 318 * @return array 319 */ 244 320 public static function product_details( $ids ) { 245 321 $products = array(); … … 268 344 269 345 } 270 271 } 272 346 } 347 348 /** 349 * Term details 350 * 351 * @since 4.1.6 352 * @param array $ids 353 * @param string $taxonomy 354 * @return array 355 */ 273 356 public static function term_details( $ids, $taxonomy = 'product_cat' ) { 274 357 275 358 $results = array(); 276 359 $term_ids = $ids; … … 293 376 294 377 return $results; 295 296 } 297 378 } 379 380 /** 381 * Shorten array 382 * 383 * @since 4.1.6 384 * @param array $input_array 385 * @param string $key_field 386 * @param string $value_field 387 * @return array 388 */ 298 389 public function shorten( $input_array, $key_field, $value_field ) { 299 390 $shortened_array = array(); … … 307 398 return $shortened_array; 308 399 } 309 310 400 } -
wc-thanks-redirect/trunk/src/Modules/Rules.php
r3172621 r3350251 32 32 } 33 33 34 /** 35 * Constructor 36 * 37 * @since 4.1.6 38 */ 34 39 public function __construct() { 35 40 // Define options and option groups … … 140 145 } 141 146 147 /** 148 * Create dropdown pages 149 * 150 * @since 4.1.6 151 * @return string $html 152 */ 142 153 public function create_dropdown_pages() { 143 154 $html = '<select name="rule_pages" class="form-select url-dropdown" required>'; -
wc-thanks-redirect/trunk/wc-thanks-redirect.php
r3345455 r3350251 27 27 use NeeBPlugins\Wctr\Front as WctrFront; 28 28 use NeeBPlugins\Wctr\Api as WctrApi; 29 use NeeBPlugins\Wctr\Compatibility\SandBoxPaymentBlocksSupport as WCTR_BlocksSupport; 29 30 30 31 // Exit if accessed directly 31 32 defined( 'ABSPATH' ) || die( 'WordPress Error! Opening plugin file directly' ); 32 33 33 defined( 'WCTR_VERSION' ) || define( 'WCTR_VERSION', '4.2. 6' );34 defined( 'WCTR_VERSION' ) || define( 'WCTR_VERSION', '4.2.7' ); 34 35 defined( 'WCTR_DIR' ) || define( 'WCTR_DIR', plugin_dir_path( __DIR__ ) ); 35 36 defined( 'WCTR_FILE' ) || define( 'WCTR_FILE', __FILE__ ); … … 114 115 } 115 116 117 /** 118 * Constructor 119 * 120 * @since 4.1.7 121 */ 116 122 public function __construct() { 117 123 // Init plugin … … 123 129 // PRO Plugin Action links 124 130 add_action( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) ); 125 } 126 131 // Hook the custom function to the 'woocommerce_blocks_loaded' action 132 add_action( 'woocommerce_blocks_loaded', array( $this, 'sandbox_payment_gateway' ) ); 133 // Hook the custom function to the 'woocommerce_blocks_loaded' action 134 add_action( 'plugins_loaded', array( $this, 'load_backend' ) ); 135 } 136 137 /** 138 * Before Plugin Load 139 * 140 * @since 4.1.7 141 */ 127 142 public function before_plugin_load() { 128 143 … … 138 153 } 139 154 155 /** 156 * Run Plugin 157 * 158 * @since 4.1.7 159 */ 140 160 public function run_plugin() { 141 161 // Initialize Plugin Admin … … 147 167 } 148 168 169 /** 170 * HPOS Support 171 * 172 * @since 4.1.7 173 * @return void 174 */ 149 175 public function hpos_support() { 150 176 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { … … 153 179 } 154 180 181 /** 182 * Action Links 183 * 184 * @param array $links 185 * 186 * @return array 187 * @since 4.1.7 188 */ 155 189 public function action_links( $links ) { 156 190 $upgrade_url = wc_thanks_redirect_fs()->get_upgrade_url(); … … 167 201 } 168 202 203 /** 204 * Multisite admin notice 205 * 206 * @return void 207 * @since 4.2.7 208 * @access public 209 */ 169 210 public function multisite_admin_notice() { 170 211 echo '<div class="notice notice-error">'; 171 212 echo '<p>' . wp_kses_post( __( 'Thank You Page for WooCommerce is not designed for Multisite, you may need to buy this short plugin. <a target="_blank" href="https://bit.ly/2RwaIQB">Thank You Page for WooCommerce PRO</a>!', 'wc-thanks-redirect' ) ) . '</p>'; 172 213 echo '</div>'; 214 } 215 216 /** 217 * SandBox Payment Gateway 218 * 219 * @return void 220 * @since 4.2.7 221 * @access public 222 */ 223 public function sandbox_payment_gateway() { 224 // Check if the required class exists 225 if ( ! class_exists( 'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType' ) ) { 226 return; 227 } 228 229 // Hook the registration function to the 'woocommerce_blocks_payment_method_type_registration' action 230 add_action( 231 'woocommerce_blocks_payment_method_type_registration', 232 function ( Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry ) { 233 // Register an instance of Pre Order Gateway 234 $payment_method_registry->register( new WCTR_BlocksSupport() ); 235 } 236 ); 237 } 238 239 /** 240 * Load Backend 241 * 242 * @return void 243 * @since 4.2.7 244 * @access public 245 */ 246 public function load_backend() { 247 add_filter( 248 'woocommerce_payment_gateways', 249 function ( $gateways ) { 250 $gateways[] = 'NeeBPlugins\Wctr\Modules\SandBoxPayment'; 251 return $gateways; 252 } 253 ); 173 254 } 174 255 }
Note: See TracChangeset
for help on using the changeset viewer.