Rename in more places
This commit is contained in:
@ -15,7 +15,7 @@ namespace WP_Ultimo\Managers;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Adds a lighter ajax option to WP Ultimo.
|
||||
* Adds a lighter ajax option to WP Multisite WaaS.
|
||||
*
|
||||
* @since 1.9.14
|
||||
*/
|
||||
|
@ -55,7 +55,7 @@ class Block_Manager extends Base_Manager {
|
||||
return array_merge($categories, array(
|
||||
array(
|
||||
'slug' => 'wp-ultimo',
|
||||
'title' => __('WP Ultimo', 'wp-ultimo'),
|
||||
'title' => __('Multisite WaaS', 'wp-ultimo'),
|
||||
),
|
||||
));
|
||||
|
||||
|
@ -55,8 +55,11 @@ class Customer_Manager extends Base_Manager {
|
||||
|
||||
$this->enable_wp_cli();
|
||||
|
||||
Event_Manager::register_model_events('customer', __('Customer', 'wp-ultimo'), array('created', 'updated'));
|
||||
|
||||
add_action('init', function () {
|
||||
Event_Manager::register_model_events( 'customer',
|
||||
__( 'Customer', 'wp-ultimo' ),
|
||||
array( 'created', 'updated' ) );
|
||||
});
|
||||
add_action('wp_login', array($this, 'log_ip_and_last_login'), 10, 2);
|
||||
|
||||
add_filter('heartbeat_send', array($this, 'on_heartbeat_send'));
|
||||
|
@ -331,7 +331,7 @@ class Domain_Manager extends Base_Manager {
|
||||
|
||||
wu_register_settings_field('sso', 'sso_header', array(
|
||||
'title' => __('Single Sign-On Settings', 'wp-ultimo'),
|
||||
'desc' => __('Settings to configure the Single Sign-On functionality of WP Ultimo, responsible for keeping customers and admins logged in across all network domains.', 'wp-ultimo'),
|
||||
'desc' => __('Settings to configure the Single Sign-On functionality of WP Multisite WaaS, responsible for keeping customers and admins logged in across all network domains.', 'wp-ultimo'),
|
||||
'type' => 'header',
|
||||
));
|
||||
|
||||
|
@ -65,7 +65,9 @@ class Email_Manager extends Base_Manager {
|
||||
|
||||
$this->enable_wp_cli();
|
||||
|
||||
$this->register_all_default_system_emails();
|
||||
add_action('init', function () {
|
||||
$this->register_all_default_system_emails();
|
||||
});
|
||||
|
||||
/*
|
||||
* Adds the Email fields
|
||||
@ -226,7 +228,7 @@ class Email_Manager extends Base_Manager {
|
||||
|
||||
wu_register_settings_field('emails', 'from_name', array(
|
||||
'title' => __('"From" Name', 'wp-ultimo'),
|
||||
'desc' => __('How the sender name will appear in emails sent by WP Ultimo.', 'wp-ultimo'),
|
||||
'desc' => __('How the sender name will appear in emails sent by WP Multisite WaaS.', 'wp-ultimo'),
|
||||
'type' => 'text',
|
||||
'placeholder' => get_network_option(null, 'site_name'),
|
||||
'default' => get_network_option(null, 'site_name'),
|
||||
@ -237,7 +239,7 @@ class Email_Manager extends Base_Manager {
|
||||
|
||||
wu_register_settings_field('emails', 'from_email', array(
|
||||
'title' => __('"From" E-mail', 'wp-ultimo'),
|
||||
'desc' => __('How the sender email will appear in emails sent by WP Ultimo.', 'wp-ultimo'),
|
||||
'desc' => __('How the sender email will appear in emails sent by WP Multisite WaaS.', 'wp-ultimo'),
|
||||
'type' => 'email',
|
||||
'placeholder' => get_network_option(null, 'admin_email'),
|
||||
'default' => get_network_option(null, 'admin_email'),
|
||||
|
@ -71,7 +71,7 @@ class Event_Manager extends Base_Manager {
|
||||
|
||||
$this->enable_wp_cli();
|
||||
|
||||
add_action('plugins_loaded', array($this, 'register_all_events'));
|
||||
add_action('init', array($this, 'register_all_events'));
|
||||
|
||||
add_action('wp_ajax_wu_get_event_payload_preview', array($this, 'event_payload_preview'));
|
||||
|
||||
@ -476,7 +476,7 @@ class Event_Manager extends Base_Manager {
|
||||
*/
|
||||
wu_register_event_type('renewal_payment_created', array(
|
||||
'name' => __('New Renewal Payment Created', 'wp-ultimo'),
|
||||
'desc' => __('This event is fired every time a new renewal payment is created by WP Ultimo.', 'wp-ultimo'),
|
||||
'desc' => __('This event is fired every time a new renewal payment is created by WP Multisite WaaS.', 'wp-ultimo'),
|
||||
'payload' => fn() => array_merge(
|
||||
array(
|
||||
'default_payment_url' => 'https://linktopayment.com',
|
||||
@ -496,7 +496,7 @@ class Event_Manager extends Base_Manager {
|
||||
|
||||
wu_register_event_type($model . '_' . $type, array(
|
||||
'name' => sprintf(__('%1$s %2$s', 'wp-ultimo'), $params['label'], ucfirst($type)),
|
||||
'desc' => sprintf(__('This event is fired every time a %1$s is %2$s by WP Ultimo.', 'wp-ultimo'), $params['label'], $type),
|
||||
'desc' => sprintf(__('This event is fired every time a %1$s is %2$s by WP Multisite WaaS.', 'wp-ultimo'), $params['label'], $type),
|
||||
'deprecated_args' => array(),
|
||||
'payload' => fn() => $this->get_model_payload($model),
|
||||
));
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -835,7 +835,7 @@ class Limitation_Manager {
|
||||
} // end get_theme_selection_list;
|
||||
|
||||
/**
|
||||
* Returns a list of all plugins available as options, excluding WP Ultimo.
|
||||
* Returns a list of all plugins available as options, excluding WP Multisite WaaS.
|
||||
*
|
||||
* We also exclude a couple more.
|
||||
*
|
||||
@ -885,7 +885,7 @@ class Limitation_Manager {
|
||||
/**
|
||||
* Returns the exclusion list for plugins.
|
||||
*
|
||||
* We don't want people forcing WP Ultimo to be deactivated, do we?
|
||||
* We don't want people forcing WP Multisite WaaS to be deactivated, do we?
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return array
|
||||
|
@ -55,7 +55,9 @@ class Membership_Manager extends Base_Manager {
|
||||
|
||||
$this->enable_wp_cli();
|
||||
|
||||
Event_Manager::register_model_events('membership', __('Membership', 'wp-ultimo'), array('created', 'updated'));
|
||||
add_action('init', function (){
|
||||
Event_Manager::register_model_events('membership', __('Membership', 'wp-ultimo'), array('created', 'updated'));
|
||||
});
|
||||
|
||||
add_action('wu_async_transfer_membership', array($this, 'async_transfer_membership'), 10, 2);
|
||||
|
||||
|
@ -125,7 +125,7 @@ class Notification_Manager {
|
||||
} // end clear_callback_list;
|
||||
|
||||
/**
|
||||
* Filter the WP Ultimo settings to add Notifications Options
|
||||
* Filter the WP Multisite WaaS settings to add Notifications Options
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
@ -135,7 +135,7 @@ class Notification_Manager {
|
||||
|
||||
wu_register_settings_field('sites', 'hide_notifications_subsites', array(
|
||||
'title' => __('Hide Admin Notices on Sites', 'wp-ultimo'),
|
||||
'desc' => __('Hide all admin notices on network sites, except for WP Ultimo broadcasts.', 'wp-ultimo'),
|
||||
'desc' => __('Hide all admin notices on network sites, except for WP Multisite WaaS broadcasts.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
'order' => 25,
|
||||
|
@ -59,8 +59,11 @@ class Payment_Manager extends Base_Manager {
|
||||
|
||||
$this->register_forms();
|
||||
|
||||
Event_Manager::register_model_events('payment', __('Payment', 'wp-ultimo'), array('created', 'updated'));
|
||||
|
||||
add_action('init', function () {
|
||||
Event_Manager::register_model_events( 'payment',
|
||||
__( 'Payment', 'wp-ultimo' ),
|
||||
array( 'created', 'updated' ) );
|
||||
});
|
||||
add_action('wp_login', array($this, 'check_pending_payments'), 10);
|
||||
|
||||
add_action('wp_enqueue_scripts', array($this, 'show_pending_payments'), 10);
|
||||
|
@ -435,7 +435,7 @@ class Site_Manager extends Base_Manager {
|
||||
} // end get_site_screenshot;
|
||||
|
||||
/**
|
||||
* Add the additional sizes required by WP Ultimo.
|
||||
* Add the additional sizes required by WP Multisite WaaS.
|
||||
*
|
||||
* Add for the main site only.
|
||||
*
|
||||
@ -464,7 +464,7 @@ class Site_Manager extends Base_Manager {
|
||||
|
||||
if (wu_get_setting('stop_template_indexing', false)) {
|
||||
|
||||
add_meta_box('wu-warnings', __('WP Ultimo - Search Engines', 'wp-ultimo'), array($this, 'render_no_index_warning'), 'dashboard-network', 'normal', 'high');
|
||||
add_meta_box('wu-warnings', __('WP Multisite WaaS - Search Engines', 'wp-ultimo'), array($this, 'render_no_index_warning'), 'dashboard-network', 'normal', 'high');
|
||||
|
||||
} // end if;
|
||||
|
||||
@ -482,7 +482,7 @@ class Site_Manager extends Base_Manager {
|
||||
|
||||
<div class="wu-border-l-4 wu-border-yellow-500 wu-border-solid wu-border-0 wu-px-4 wu-py-2 wu--m-3">
|
||||
|
||||
<p><?php _e('Your WP Ultimo settings are configured to <strong>prevent search engines such as Google from indexing your template sites</strong>.', 'wp-ultimo'); ?></p>
|
||||
<p><?php _e('Your WP Multisite WaaS settings are configured to <strong>prevent search engines such as Google from indexing your template sites</strong>.', 'wp-ultimo'); ?></p>
|
||||
|
||||
<p><?php printf(__('If you are experiencing negative SEO impacts on other sites in your network, consider disabling this setting <a href="%s">here</a>.', 'wp-ultimo'), wu_network_admin_url('wp-ultimo-settings', array('tab' => 'sites'))); ?></p>
|
||||
|
||||
@ -596,18 +596,18 @@ class Site_Manager extends Base_Manager {
|
||||
} // end login_header_text;
|
||||
|
||||
/**
|
||||
* Add notices to default site page, recommending the WP Ultimo option.
|
||||
* Add notices to default site page, recommending the WP Multisite WaaS option.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
*/
|
||||
public function add_notices_to_default_site_page() {
|
||||
|
||||
$notice = __('Hey there! We highly recommend managing your network sites using the WP Ultimo → Sites page. <br>If you want to avoid confusion, you can also hide this page from the admin panel completely on the WP Ultimo → Settings → Whitelabel options.', 'wp-ultimo');
|
||||
$notice = __('Hey there! We highly recommend managing your network sites using the WP Multisite WaaS → Sites page. <br>If you want to avoid confusion, you can also hide this page from the admin panel completely on the WP Multisite WaaS → Settings → Whitelabel options.', 'wp-ultimo');
|
||||
|
||||
WP_Ultimo()->notices->add($notice, 'info', 'network-admin', 'wu-sites-use-wp-ultimo', array(
|
||||
array(
|
||||
'title' => __('Go to the WP Ultimo Sites page →', 'wp-ultimo'),
|
||||
'title' => __('Go to the WP Multisite WaaS Sites page →', 'wp-ultimo'),
|
||||
'url' => wu_network_admin_url('wp-ultimo-sites'),
|
||||
),
|
||||
array(
|
||||
|
@ -310,7 +310,7 @@ class Webhook_Manager extends Base_Manager {
|
||||
|
||||
if (!$is_error) {
|
||||
|
||||
$message .= empty($response) ? sprintf('Got response: %s', $response) : 'To debug the remote server response, turn the "Wait for Response" option on the WP Ultimo Settings > API & Webhooks Tab';
|
||||
$message .= empty($response) ? sprintf('Got response: %s', $response) : 'To debug the remote server response, turn the "Wait for Response" option on the WP Multisite WaaS Settings > API & Webhooks Tab';
|
||||
|
||||
} else {
|
||||
|
||||
|
Reference in New Issue
Block a user