Skip to content

Commit

Permalink
Merge pull request #121 from dparker1005/fix-cron-setup
Browse files Browse the repository at this point in the history
Fix crons not being set up/disabled
  • Loading branch information
dparker1005 committed Jul 10, 2024
2 parents 5af8ebd + dff46cd commit 5a32286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/crons.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function pmpropbc_activation() {

do_action('pmpropbc_activation');
}
register_activation_hook(__FILE__, 'pmpropbc_activation');
register_activation_hook( PMPRO_PAY_BY_CHECK_BASE_FILE, 'pmpropbc_activation' );

/**
* Clear crons on plugin deactivation.
Expand All @@ -22,7 +22,7 @@ function pmpropbc_deactivation() {

do_action('pmpropbc_deactivation');
}
register_deactivation_hook(__FILE__, 'pmpropbc_deactivation');
register_deactivation_hook( PMPRO_PAY_BY_CHECK_BASE_FILE, 'pmpropbc_deactivation' );

/**
* Create pending orders for subscriptions.
Expand Down

0 comments on commit 5a32286

Please sign in to comment.