Skip to content

Commit

Permalink
fixed text domain warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBeycan committed Nov 28, 2024
1 parent e451187 commit 512aa8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 6 additions & 4 deletions cryptocurrency-payments-for-paid-memberships-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Plugin Name: CryptoPay Gateway for Paid Memberships Pro
* Requires Plugins: paid-memberships-pro, cryptopay-wc-lite
* Version: 1.0.8
* Version: 1.0.9
* Plugin URI: https://beycanpress.com/cryptopay/
* Description: Adds CryptoPay as a gateway option for Paid Memberships Pro.
* Author: BeycanPress LLC
Expand All @@ -22,7 +22,7 @@
* Text Domain: pmpro-cryptopay
* Tags: CryptoPay, Cryptocurrency, Payments, PMPro, Bitcoin
* Requires at least: 5.0
* Tested up to: 6.6
* Tested up to: 6.7.1
* Requires PHP: 8.1
*/

Expand Down Expand Up @@ -105,12 +105,14 @@ function pmpro_cryptopay_check_discount_code(object &$level, ?string $discountCo

pmpro_cryptopay_addModels();

add_action('init', function (): void {
load_plugin_textdomain('pmpro-cryptopay', false, basename(__DIR__) . '/languages');
});

add_action('plugins_loaded', function (): void {

pmpro_cryptopay_addModels();

load_plugin_textdomain('pmpro-cryptopay', false, basename(__DIR__) . '/languages');

if (false == defined('PMPRO_DIR')) {
add_action('admin_notices', function (): void {
$class = 'notice notice-error';
Expand Down
9 changes: 6 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: BeycanPress
Tags: CryptoPay, Cryptocurrency, Payments, PMPro, Bitcoin
Requires at least: 5.0
Tested up to: 6.6
Tested up to: 6.7.1
Requires PHP: 8.1
Stable Tag: 1.0.8
Version: 1.0.8
Stable Tag: 1.0.9
Version: 1.0.9
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -58,6 +58,9 @@ You can easily translate with Loco translate.

== Changelog ==

= 1.0.9 =
* Fixed: Text domain warning.

= 1.0.7 =
* Updated: Compatibility due to updates for new CryptoPay versions

Expand Down

0 comments on commit 512aa8c

Please sign in to comment.