Rename in more places

This commit is contained in:
David Stone
2024-12-07 00:09:47 -07:00
parent 9574984471
commit 450931b405
199 changed files with 535 additions and 572 deletions

View File

@ -80,6 +80,12 @@ class Gateway_Manager extends Base_Manager {
* Adds our own default gateways.
*/
add_action('wu_register_gateways', array($this, 'add_default_gateways'), 5);
/*
* Allow developers to add new gateways.
*/
add_action('init', function () {
do_action('wu_register_gateways');
});
/*
* Adds the Gateway selection fields
@ -103,11 +109,6 @@ class Gateway_Manager extends Base_Manager {
*/
add_action('admin_init', array($this, 'maybe_process_v1_webhooks'), 1);
/*
* Allow developers to add new gateways.
*/
do_action('wu_register_gateways');
} // end on_load;
/**