From 5c399064f8af1a07a8000c3c7ed202c85ac4e25c Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 10:08:46 -0600 Subject: [PATCH 01/27] Better setup wizard --- assets/js/setup-wizard.js | 2 ++ .../class-setup-wizard-admin-page.php | 18 +++++++++------- inc/admin-pages/class-wizard-admin-page.php | 21 ++++++++++--------- inc/functions/helper.php | 1 + .../class-default-content-installer.php | 5 +++++ views/wizards/setup/default.php | 2 +- 6 files changed, 30 insertions(+), 19 deletions(-) diff --git a/assets/js/setup-wizard.js b/assets/js/setup-wizard.js index 10d352355..47acc46d5 100644 --- a/assets/js/setup-wizard.js +++ b/assets/js/setup-wizard.js @@ -155,6 +155,8 @@ }); + $('#poststuff [name=next]').removeAttr('disabled'); + }); }(jQuery)); diff --git a/inc/admin-pages/class-setup-wizard-admin-page.php b/inc/admin-pages/class-setup-wizard-admin-page.php index 8c9906e04..ef1f6ded6 100644 --- a/inc/admin-pages/class-setup-wizard-admin-page.php +++ b/inc/admin-pages/class-setup-wizard-admin-page.php @@ -343,10 +343,11 @@ public function get_sections() { ], ], 'installation' => [ - 'title' => __('Installation', 'multisite-ultimate'), - 'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of Multisite Ultimate.', 'multisite-ultimate'), - 'next_label' => Core_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'multisite-ultimate') : __('Install', 'multisite-ultimate'), - 'fields' => [ + 'title' => __('Installation', 'multisite-ultimate'), + 'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of Multisite Ultimate.', 'multisite-ultimate'), + 'next_label' => Core_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'multisite-ultimate') : __('Install', 'multisite-ultimate'), + 'disable_next' => true, + 'fields' => [ 'terms' => [ 'type' => 'note', 'desc' => fn() => $this->render_installation_steps(Core_Installer::get_instance()->get_steps(), false), @@ -472,10 +473,11 @@ public function get_sections() { ]; $sections['defaults'] = [ - 'title' => __('Default Content', 'multisite-ultimate'), - 'description' => __('Starting from scratch can be scarry, specially when first starting out. In this step, you can create default content to have a starting point for your network. Everything can be customized later.', 'multisite-ultimate'), - 'next_label' => Default_Content_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'multisite-ultimate') : __('Install', 'multisite-ultimate'), - 'fields' => [ + 'title' => __('Default Content', 'multisite-ultimate'), + 'description' => __('Starting from scratch can be scarry, specially when first starting out. In this step, you can create default content to have a starting point for your network. Everything can be customized later.', 'multisite-ultimate'), + 'next_label' => Default_Content_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'multisite-ultimate') : __('Install', 'multisite-ultimate'), + 'disable_next' => true, + 'fields' => [ 'terms' => [ 'type' => 'note', 'desc' => fn() => $this->render_installation_steps(Default_Content_Installer::get_instance()->get_steps()), diff --git a/inc/admin-pages/class-wizard-admin-page.php b/inc/admin-pages/class-wizard-admin-page.php index 2e00fe026..057b99dd3 100644 --- a/inc/admin-pages/class-wizard-admin-page.php +++ b/inc/admin-pages/class-wizard-admin-page.php @@ -315,16 +315,17 @@ public function default_view() { $section = wp_parse_args( $this->current_section, [ - 'title' => '', - 'description' => '', - 'content' => '', - 'fields' => [], - 'next_label' => __('Continue →', 'multisite-ultimate'), - 'back_label' => __('← Go Back', 'multisite-ultimate'), - 'skip_label' => __('Skip this Step', 'multisite-ultimate'), - 'back' => false, - 'skip' => false, - 'next' => true, + 'title' => '', + 'description' => '', + 'content' => '', + 'fields' => [], + 'next_label' => __('Continue →', 'multisite-ultimate'), + 'back_label' => __('← Go Back', 'multisite-ultimate'), + 'skip_label' => __('Skip this Step', 'multisite-ultimate'), + 'disable_next' => false, + 'back' => false, + 'skip' => false, + 'next' => true, ] ); diff --git a/inc/functions/helper.php b/inc/functions/helper.php index d7f8f385f..5e2ac7056 100644 --- a/inc/functions/helper.php +++ b/inc/functions/helper.php @@ -414,6 +414,7 @@ function wu_kses_allowed_html(): array { 'placeholder' => true, 'name' => true, 'disabled' => true, + 'checked' => true, ]; $allowed_html['textarea'] = [ 'name' => true, diff --git a/inc/installers/class-default-content-installer.php b/inc/installers/class-default-content-installer.php index fc2781134..722f57309 100644 --- a/inc/installers/class-default-content-installer.php +++ b/inc/installers/class-default-content-installer.php @@ -153,6 +153,7 @@ public function get_steps() { 'installing' => __('Creating Template Site...', 'multisite-ultimate'), 'success' => __('Success!', 'multisite-ultimate'), 'help' => wu_get_documentation_url('installation-errors'), + 'checked' => true, ]; $steps['create_products'] = [ @@ -163,6 +164,7 @@ public function get_steps() { 'installing' => __('Creating Products...', 'multisite-ultimate'), 'success' => __('Success!', 'multisite-ultimate'), 'help' => wu_get_documentation_url('installation-errors'), + 'checked' => true, ]; $steps['create_checkout'] = [ @@ -173,6 +175,7 @@ public function get_steps() { 'installing' => __('Creating Checkout Form and Registration Page...', 'multisite-ultimate'), 'success' => __('Success!', 'multisite-ultimate'), 'help' => wu_get_documentation_url('installation-errors'), + 'checked' => true, ]; $steps['create_emails'] = [ @@ -183,6 +186,7 @@ public function get_steps() { 'installing' => __('Creating System Emails...', 'multisite-ultimate'), 'success' => __('Success!', 'multisite-ultimate'), 'help' => wu_get_documentation_url('installation-errors'), + 'checked' => true, ]; $steps['create_login_page'] = [ @@ -193,6 +197,7 @@ public function get_steps() { 'installing' => __('Creating Custom Login Page...', 'multisite-ultimate'), 'success' => __('Success!', 'multisite-ultimate'), 'help' => wu_get_documentation_url('installation-errors'), + 'checked' => true, ]; return $steps; diff --git a/views/wizards/setup/default.php b/views/wizards/setup/default.php index 2fae36dfe..70b2a351f 100644 --- a/views/wizards/setup/default.php +++ b/views/wizards/setup/default.php @@ -34,7 +34,7 @@ - From e9f36c5fb14db5f3b0281509bb77940e6627e677 Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 10:44:49 -0600 Subject: [PATCH 02/27] Increment Version --- composer.json | 7 +++++-- inc/class-wp-ultimo.php | 2 +- multisite-ultimate.php | 4 ++-- package.json | 5 ++++- update.sh | 28 ---------------------------- 5 files changed, 12 insertions(+), 34 deletions(-) delete mode 100644 update.sh diff --git a/composer.json b/composer.json index 2d75ed815..90eb8d9ca 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "devstone/multisite-ultimate", "url": "https://MultisiteUltimate.com", "description": "The Multisite Website as a Service (WaaS) plugin.", - "version": "2.4.1", + "version": "2.4.4", "authors": [ { "name": "Arindo Duque", @@ -136,7 +136,10 @@ ".distignore", "encrypt-sectrets.php", "scripts", - "mu-plugins" + "mu-plugins", + "DEPLOY.md", + "deploy.sh", + ".vscode" ] }, "extra": { diff --git a/inc/class-wp-ultimo.php b/inc/class-wp-ultimo.php index 55062f4a1..c17d1d1ad 100644 --- a/inc/class-wp-ultimo.php +++ b/inc/class-wp-ultimo.php @@ -31,7 +31,7 @@ final class WP_Ultimo { * @since 2.1.0 * @var string */ - const VERSION = '2.4.3'; + const VERSION = '2.4.4'; /** * Version of the Plugin. diff --git a/multisite-ultimate.php b/multisite-ultimate.php index 0aa0cf756..2cc7f34e1 100644 --- a/multisite-ultimate.php +++ b/multisite-ultimate.php @@ -4,7 +4,7 @@ * Description: The WordPress Multisite Website as a Service (WaaS) plugin. * Plugin URI: https://multisiteultimate.com * Text Domain: multisite-ultimate - * Version: 2.4.3 + * Version: 2.4.4 * Author: Multisite Ultimate Community * Author URI: https://github.com/superdav42/wp-multisite-waas * GitHub Plugin URI: https://github.com/superdav42/wp-multisite-waas @@ -30,7 +30,7 @@ * @author Arindo Duque and NextPress and the Multisite Ultimate Community * @category Core * @package WP_Ultimo - * @version 2.4.3 + * @version 2.4.4 */ // Exit if accessed directly diff --git a/package.json b/package.json index 9fe0897d9..bc05460fd 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "2.4.3", + "version": "2.4.4", "name": "multisite-ultimate", "title": "Multisite Ultimate", "homepage": "https://multisiteultimate.com/", @@ -28,6 +28,7 @@ "copylibs": "node scripts/copy-libs.js", "build": "npm run copylibs && npm run uglify && npm run cleancss && npm run archive", "build:dev": "npm run copylibs && npm run uglify && npm run cleancss && npm run makepot", + "build:translate": "npm run copylibs && npm run uglify && npm run cleancss && npm run makepot && npm run translate", "prearchive": "php encrypt-sectrets.php", "archive": "node scripts/archive.js", "postarchive": "node scripts/post-archive.js", @@ -36,6 +37,8 @@ "precleancss": "node scripts/clean-css.js", "cleancss": "node scripts/cleancss.js", "makepot": "node scripts/makepot.js", + "translate": "php scripts/translate.php", + "translate:force": "php scripts/translate.php --force", "env:start": "wp-env start", "env:stop": "wp-env stop", "env:clean": "wp-env clean all", diff --git a/update.sh b/update.sh deleted file mode 100644 index 824a82b9c..000000000 --- a/update.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# Define the directory containing PHP files -PHP_DIR="path/to/your/php/files" - -# Define the Ollama API endpoint and prompt -OLLAMA_API_URL="http://127.0.0.1:11434/api/chat " -PROMPT="Fix any security problems in the following PHP code:" - -# Loop through all PHP files in the directory -#for PHP_FILE in "$PHP_DIR"/*.php; do -PHP_FILE="/home/dave/wp-multisite-waas/views/admin-notices.php" - # Read the contents of the PHP file - PHP_CONTENT=$(cat "$PHP_FILE") - - # Make the API call and store the response - RESPONSE=$(curl -s -X POST "$OLLAMA_API_URL" \ - -H "Content-Type: application/json" \ - -d "{\"model\": \"codellama\", \"stream\":false, \"messages\":[{\"role\":\"user\",\"content\":\"$PROMPT $PHP_CONTENT\"}") - - # Extract the fixed code from the response - FIXED_CODE=$(echo "$RESPONSE" | jq -r '.fixed_code') - - # Update the PHP file with the fixed code - #echo "$FIXED_CODE" > "$PHP_FILE" - - echo "The file $PHP_FILE has been updated with the fixed code." -#done \ No newline at end of file From 8b245b7bd7f9bf87c8f4ceb8ea5e727cd1850033 Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 10:45:22 -0600 Subject: [PATCH 03/27] Add deploy script --- DEPLOY.md | 219 +++++++++++++++++++++ deploy.sh | 348 ++++++++++++++++++++++++++++++++++ scripts/README-TRANSLATION.md | 192 +++++++++++++++++++ scripts/translate.php | 317 +++++++++++++++++++++++++++++++ 4 files changed, 1076 insertions(+) create mode 100644 DEPLOY.md create mode 100755 deploy.sh create mode 100644 scripts/README-TRANSLATION.md create mode 100644 scripts/translate.php diff --git a/DEPLOY.md b/DEPLOY.md new file mode 100644 index 000000000..029e374aa --- /dev/null +++ b/DEPLOY.md @@ -0,0 +1,219 @@ +# Multisite Ultimate - WordPress.org Deploy Tool + +This document explains how to use the automated deploy tool for deploying Multisite Ultimate to the WordPress.org plugin repository. + +## Prerequisites + +Before using the deploy tool, ensure you have: + +1. **SVN Access**: Access to the WordPress.org SVN repository for `ultimate-multisite` +2. **Required Software**: + - `svn` command line tool + - `node` and `npm` (for building assets) + - `composer` (for PHP dependencies) + - `rsync` (for file copying) + +3. **Environment Variables**: + - `SVN_USERNAME`: Your WordPress.org username (`superdav42`) + - `SVN_PASSWORD`: Your WordPress.org password + +## Setup + +1. **Set Environment Variables**: + ```bash + export SVN_USERNAME="superdav42" + export SVN_PASSWORD="your-wordpress-org-password" + ``` + + For security, consider adding these to your shell profile (`.bashrc`, `.zshrc`, etc.) or use a `.env` file. + +2. **Verify Access**: + Test SVN access manually: + ```bash + svn checkout https://plugins.svn.wordpress.org/ultimate-multisite/trunk temp-test --username $SVN_USERNAME --password $SVN_PASSWORD + rm -rf temp-test + ``` + +## Version Management + +Before deployment, ensure version consistency across all files: + +- `multisite-ultimate.php` - Line 7: `Version: 2.4.3` +- `readme.txt` - Line 9: `Stable tag: 2.4.3` +- `package.json` - Line 2: `"version": "2.4.3"` + +The deploy script will validate these versions match before proceeding. + +## Usage + +### Basic Deployment + +Deploy the current version (auto-detected from plugin files): +```bash +./deploy.sh +``` + +### Version-Specific Deployment + +Deploy a specific version (must match plugin file versions): +```bash +./deploy.sh 2.4.4 +``` + +## Deployment Process + +The script performs these steps automatically: + +1. **Environment Validation** + - Checks for required commands (svn, node, npm, composer) + - Validates environment variables + - Confirms running from correct directory + +2. **Version Validation** + - Extracts versions from all relevant files + - Ensures version consistency across: + - `multisite-ultimate.php` + - `readme.txt` + - `package.json` + - Validates provided version argument (if any) + +3. **Plugin Build** + - Installs npm dependencies + - Runs `npm run build` to: + - Install Composer dependencies (production only) + - Minify JavaScript and CSS assets + - Generate translation files + - Create optimized plugin archive + +4. **SVN Repository Preparation** + - Creates temporary directory + - Checks out WordPress.org SVN repository + - Prepares trunk and tag directories + +5. **File Copy** + - Copies plugin files excluding development files: + - Git files and directories + - `node_modules/` + - Test directories and files + - Development scripts and tools + - Docker and environment files + - Build artifacts + +6. **SVN Commit** + - Adds new files to SVN + - Removes deleted files + - Shows status for review + - **Prompts for confirmation** before committing + - Commits to both trunk and version tag + +7. **Cleanup** + - Removes temporary directories and files + +## Files Excluded from Deployment + +The following files and directories are automatically excluded: + +- `.git*` - Git files and directories +- `node_modules/` - npm dependencies +- `vendor/bin/` - Composer binary files +- `vendor/*/tests/` and `vendor/*/test/` - Vendor test files +- `tests/` - Plugin test directory +- `cypress/` - End-to-end test files +- Development configuration files +- Build scripts and utilities +- Docker and environment files +- Archive files (*.zip, *.tar.gz) + +## Safety Features + +1. **Version Validation**: Prevents deployment with mismatched versions +2. **Environment Checks**: Validates all required tools and credentials +3. **Confirmation Prompt**: Requires manual confirmation before SVN commit +4. **Cleanup**: Automatically cleans temporary files +5. **Error Handling**: Exits safely on any error + +## Troubleshooting + +### Common Issues + +**"SVN_USERNAME environment variable is required"** +- Set the environment variable: `export SVN_USERNAME="superdav42"` + +**"Version mismatch detected!"** +- Update version numbers in all files to match before deploying + +**"Main plugin file not found"** +- Run the script from the `/home/dave/multisite/multisite-ultimate/` directory + +**"SVN authentication failed"** +- Verify your WordPress.org credentials +- Check that your account has commit access to `ultimate-multisite` + +**"Command not found: svn/node/composer"** +- Install missing required software + +### Manual Recovery + +If deployment fails partway through: + +1. Check the SVN status: + ```bash + cd /tmp/multisite-ultimate-deploy/svn + svn status + ``` + +2. Manually commit if needed: + ```bash + svn commit -m "Deploy version X.X.X" --username $SVN_USERNAME --password $SVN_PASSWORD + ``` + +3. Clean up: + ```bash + rm -rf /tmp/multisite-ultimate-deploy + ``` + +## Security Notes + +- Store credentials securely (use environment variables, not hardcoded) +- Consider using SSH keys for SVN if available +- The script never logs or stores passwords +- Temporary files are cleaned up automatically + +## Release Workflow + +Recommended workflow for releases: + +1. **Update Version Numbers**: + - Update `multisite-ultimate.php` + - Update `readme.txt` (stable tag and changelog) + - Update `package.json` + +2. **Test Locally**: + - Run `npm run build` + - Test plugin functionality + - Run unit tests: `vendor/bin/phpunit` + +3. **Commit to Git**: + ```bash + git add . + git commit -m "Version 2.4.4 release" + git tag v2.4.4 + git push origin main --tags + ``` + +4. **Deploy to WordPress.org**: + ```bash + export SVN_USERNAME="superdav42" + export SVN_PASSWORD="your-password" + ./deploy.sh + ``` + +5. **Verify Deployment**: + - Check https://wordpress.org/plugins/ultimate-multisite/ + - Verify new version appears in admin + +## Support + +For issues with the deploy script: +- Check the GitHub repository: https://github.com/superdav42/wp-multisite-waas +- Open an issue with deployment logs and error messages \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 000000000..1b5972125 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,348 @@ +#!/bin/bash + +# Multisite Ultimate - WordPress.org SVN Deploy Script +# Builds the plugin and deploys it to the WordPress.org plugin repository +# +# Usage: ./deploy.sh [version] +# +# Requirements: +# - SVN_USERNAME environment variable (WordPress.org username) +# - SVN_PASSWORD environment variable (WordPress.org password) +# - svn command line tool installed +# +# Example: +# export SVN_USERNAME="superdav42" +# export SVN_PASSWORD="your-password" +# ./deploy.sh 2.4.4 + +set -e # Exit on any error + +# Colors for output +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' # No Color + +# Plugin configuration +PLUGIN_SLUG="ultimate-multisite" +SVN_URL="https://plugins.svn.wordpress.org/$PLUGIN_SLUG" +MAIN_PLUGIN_FILE="multisite-ultimate.php" +README_TXT="readme.txt" +PACKAGE_JSON="package.json" + +# Directory paths +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +TEMP_DIR="/tmp/multisite-ultimate-deploy" +SVN_DIR="$TEMP_DIR/svn" +BUILD_DIR="$TEMP_DIR/build" + +# Function to print colored output +print_status() { + echo -e "${BLUE}[INFO]${NC} $1" +} + +print_success() { + echo -e "${GREEN}[SUCCESS]${NC} $1" +} + +print_warning() { + echo -e "${YELLOW}[WARNING]${NC} $1" +} + +print_error() { + echo -e "${RED}[ERROR]${NC} $1" +} + +# Function to check if command exists +command_exists() { + command -v "$1" >/dev/null 2>&1 +} + +# Function to validate environment +validate_environment() { + print_status "Validating environment..." + + # Check required commands + if ! command_exists svn; then + print_error "SVN is not installed. Please install SVN to continue." + exit 1 + fi + + if ! command_exists node; then + print_error "Node.js is not installed. Please install Node.js to continue." + exit 1 + fi + + if ! command_exists npm; then + print_error "npm is not installed. Please install npm to continue." + exit 1 + fi + + if ! command_exists composer; then + print_error "Composer is not installed. Please install Composer to continue." + exit 1 + fi + + # Check environment variables + if [[ -z "$SVN_USERNAME" ]]; then + print_error "SVN_USERNAME environment variable is required" + print_error "Set it with: export SVN_USERNAME=\"superdav42\"" + exit 1 + fi + + if [[ -z "$SVN_PASSWORD" ]]; then + print_error "SVN_PASSWORD environment variable is required" + print_error "Set it with: export SVN_PASSWORD=\"your-password\"" + exit 1 + fi + + # Check if we're in the right directory + if [[ ! -f "$MAIN_PLUGIN_FILE" ]]; then + print_error "Main plugin file ($MAIN_PLUGIN_FILE) not found. Please run this script from the plugin root directory." + exit 1 + fi + + print_success "Environment validation passed" +} + +# Function to extract version from file +get_version_from_file() { + local file=$1 + local pattern=$2 + + if [[ ! -f "$file" ]]; then + print_error "File $file not found" + return 1 + fi + + local version=$(grep "$pattern" "$file" | head -1 | sed -E "s/.*$pattern([0-9]+\.[0-9]+\.[0-9]+).*/\1/") + + if [[ -z "$version" ]]; then + print_error "Could not extract version from $file using pattern $pattern" + return 1 + fi + + echo "$version" +} + +# Function to validate version consistency +validate_versions() { + print_status "Validating version consistency..." + + # Get versions from different files + local plugin_version=$(get_version_from_file "$MAIN_PLUGIN_FILE" "Version: ") + local readme_version=$(get_version_from_file "$README_TXT" "Stable tag: ") + local package_version=$(get_version_from_file "$PACKAGE_JSON" "\"version\": \"") + + print_status "Found versions:" + print_status " Plugin file: $plugin_version" + print_status " readme.txt: $readme_version" + print_status " package.json: $package_version" + + # Check if all versions match + if [[ "$plugin_version" != "$readme_version" ]] || [[ "$plugin_version" != "$package_version" ]]; then + print_error "Version mismatch detected!" + print_error "All files must have the same version number before deployment." + print_error "Please update all version numbers to match and try again." + exit 1 + fi + + # If a version was provided as argument, validate it matches + if [[ -n "$1" ]] && [[ "$1" != "$plugin_version" ]]; then + print_error "Provided version ($1) doesn't match plugin version ($plugin_version)" + print_error "Please update the plugin version or use the correct version argument." + exit 1 + fi + + echo "$plugin_version" +} + +# Function to run build process +build_plugin() { + print_status "Building plugin..." + + # Clean up any previous builds + if [[ -d "node_modules" ]]; then + print_status "Cleaning previous node_modules..." + rm -rf node_modules + fi + + # Install dependencies and run build + print_status "Installing npm dependencies..." + npm install + + print_status "Running build process..." + npm run build + + print_success "Plugin build completed" +} + +# Function to prepare SVN repository +prepare_svn_repo() { + local version=$1 + + print_status "Preparing SVN repository..." + + # Clean up temp directory + if [[ -d "$TEMP_DIR" ]]; then + rm -rf "$TEMP_DIR" + fi + mkdir -p "$TEMP_DIR" + + # Checkout SVN repository + print_status "Checking out SVN repository..." + svn checkout "$SVN_URL" "$SVN_DIR" --username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive + + # Create version directory if it doesn't exist + if [[ ! -d "$SVN_DIR/tags/$version" ]]; then + mkdir -p "$SVN_DIR/tags/$version" + fi + + print_success "SVN repository prepared" +} + +# Function to copy plugin files to SVN +copy_plugin_files() { + local version=$1 + + print_status "Copying plugin files..." + + # Create build directory + mkdir -p "$BUILD_DIR" + + # Copy all files except excluded ones + rsync -av \ + --exclude='.git*' \ + --exclude='node_modules/' \ + --exclude='vendor/bin/' \ + --exclude='vendor/*/tests/' \ + --exclude='vendor/*/test/' \ + --exclude='vendor/*/*/tests/' \ + --exclude='vendor/*/*/test/' \ + --exclude='tests/' \ + --exclude='cypress/' \ + --exclude='cypress.config.*' \ + --exclude='.wp-env.json' \ + --exclude='deploy.sh' \ + --exclude='*.log' \ + --exclude='.env*' \ + --exclude='docker-compose.yml' \ + --exclude='Dockerfile' \ + --exclude='.dockerignore' \ + --exclude='bin/' \ + --exclude='scripts/archive.js' \ + --exclude='scripts/post-archive.js' \ + --exclude='scripts/clean-*.js' \ + --exclude='scripts/copy-libs.js' \ + --exclude='scripts/uglify.js' \ + --exclude='scripts/cleancss.js' \ + --exclude='scripts/makepot.js' \ + --exclude='utils/' \ + --exclude='encrypt-sectrets.php' \ + --exclude='*.zip' \ + --exclude='*.tar.gz' \ + ./ "$BUILD_DIR/" + + # Copy to trunk + print_status "Copying to trunk..." + rsync -av --delete "$BUILD_DIR/" "$SVN_DIR/trunk/" + + # Copy to version tag + print_status "Copying to version tag $version..." + rsync -av --delete "$BUILD_DIR/" "$SVN_DIR/tags/$version/" + + print_success "Plugin files copied" +} + +# Function to handle SVN operations +commit_to_svn() { + local version=$1 + + print_status "Preparing SVN commit..." + + cd "$SVN_DIR" + + # Add any new files + svn add --force . + + # Remove any deleted files + svn status | grep '^!' | awk '{print $2}' | xargs -r svn remove + + # Show status + print_status "SVN status:" + svn status + + # Ask for confirmation + echo "" + print_warning "About to commit version $version to WordPress.org repository." + print_warning "This will make the plugin version publicly available." + read -p "Do you want to continue? (y/N): " -n 1 -r + echo "" + + if [[ ! $REPLY =~ ^[Yy]$ ]]; then + print_status "Deployment cancelled by user" + exit 0 + fi + + # Commit changes + print_status "Committing to SVN..." + svn commit -m "Deploy version $version" --username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive + + print_success "Successfully deployed version $version to WordPress.org!" +} + +# Function to cleanup +cleanup() { + print_status "Cleaning up temporary files..." + if [[ -d "$TEMP_DIR" ]]; then + rm -rf "$TEMP_DIR" + fi + print_success "Cleanup completed" +} + +# Main deployment function +main() { + local provided_version=$1 + + print_status "Starting WordPress.org deployment process..." + print_status "Plugin: Multisite Ultimate" + print_status "SVN URL: $SVN_URL" + + # Validate environment + validate_environment + + # Validate and get version + local version=$(validate_versions "$provided_version") + print_success "Using version: $version" + + # Build the plugin + build_plugin + + # Prepare SVN repository + prepare_svn_repo "$version" + + # Copy plugin files + copy_plugin_files "$version" + + # Commit to SVN + commit_to_svn "$version" + + # Cleanup + cleanup + + print_success "Deployment completed successfully!" + print_success "Plugin version $version is now available on WordPress.org" +} + +# Handle script interruption +trap cleanup EXIT INT TERM + +# Check if version argument is provided +if [[ $# -gt 1 ]]; then + print_error "Too many arguments. Usage: $0 [version]" + exit 1 +fi + +# Run main function +main "$1" \ No newline at end of file diff --git a/scripts/README-TRANSLATION.md b/scripts/README-TRANSLATION.md new file mode 100644 index 000000000..b73f265c2 --- /dev/null +++ b/scripts/README-TRANSLATION.md @@ -0,0 +1,192 @@ +# Multisite Ultimate Translation System + +This directory contains the automated translation system for Multisite Ultimate using potrans and DeepL API. + +## Overview + +The translation system automatically translates the main POT file into all languages supported by DeepL API, generating WordPress-compatible PO and MO files. + +## Supported Languages + +The script translates to 31 languages supported by DeepL (excluding English variants): + +- Arabic (ar) +- Bulgarian (bg_BG) +- Chinese Simplified (zh_CN) +- Chinese Traditional (zh_TW) +- Czech (cs_CZ) +- Danish (da_DK) +- Dutch (nl_NL) +- Estonian (et) +- Finnish (fi) +- French (fr_FR) +- German (de_DE) +- Greek (el) +- Hungarian (hu_HU) +- Indonesian (id_ID) +- Italian (it_IT) +- Japanese (ja) +- Korean (ko_KR) +- Latvian (lv) +- Lithuanian (lt_LT) +- Norwegian (nb_NO) +- Polish (pl_PL) +- Portuguese Brazilian (pt_BR) +- Portuguese European (pt_PT) +- Romanian (ro_RO) +- Russian (ru_RU) +- Slovak (sk_SK) +- Slovenian (sl_SI) +- Spanish (es_ES) +- Swedish (sv_SE) +- Turkish (tr_TR) +- Ukrainian (uk) + +## Setup + +### 1. Install potrans + +You have several options to install potrans: + +**Option A: Global installation (recommended)** +```bash +composer global require om/potrans +``` + +**Option B: Local project installation** +```bash +composer require --dev om/potrans +``` + +**Option C: Custom path** +Set the `POTRANS_PATH` environment variable to point to your potrans binary: +```bash +export POTRANS_PATH="/path/to/potrans" +``` + +### 2. Get DeepL API Key + +1. Sign up for a DeepL API account at https://www.deepl.com/pro-api +2. Get your API key from the account dashboard +3. Set the API key as an environment variable: + +```bash +export DEEPL_API_KEY="your-api-key-here" +``` + +Or pass it directly to the script using the `--api-key` parameter. + +## Usage + +### NPM Scripts + +```bash +# Translate all languages (skip existing files) +npm run translate + +# Force re-translation of all languages +npm run translate:force + +# Build with translations included +npm run build:translate +``` + +### Direct PHP Script Usage + +```bash +# Basic translation +php scripts/translate.php + +# With API key parameter +php scripts/translate.php --api-key=your-key-here + +# Force re-translation of existing files +php scripts/translate.php --force + +# Show help +php scripts/translate.php --help +``` + +## What the Script Does + +1. **Reads the source POT file** (`lang/multisite-ultimate.pot`) +2. **Translates to each DeepL language** using the potrans library +3. **Generates PO files** with WordPress-compatible locale names +4. **Creates MO files** from the PO files using msgfmt +5. **Outputs all files** to the `lang/` directory + +## File Naming Convention + +The script generates files following WordPress naming conventions: + +- `multisite-ultimate-{wp_locale}.po` - Translation files +- `multisite-ultimate-{wp_locale}.mo` - Compiled translation files + +Examples: +- `multisite-ultimate-fr_FR.po` - French translation +- `multisite-ultimate-de_DE.po` - German translation +- `multisite-ultimate-pt_BR.po` - Brazilian Portuguese translation + +## Integration with Build Process + +The translation system integrates with the existing build process: + +- `npm run build:dev` - Standard development build (no translation) +- `npm run build:translate` - Development build with translations +- Regular `npm run build` - Production build (no translation by default) + +## Requirements + +- PHP 7.4+ (same as plugin requirement) +- Composer dependencies installed +- DeepL API key +- `msgfmt` command available (part of gettext tools) + +## Error Handling + +The script includes comprehensive error handling: + +- Validates API key presence +- Checks for required files and directories +- Reports translation failures +- Continues processing even if individual languages fail + +## Cost Considerations + +DeepL API charges per character translated. The script: + +- Skips existing files by default (use `--force` to override) +- Only translates when the POT file is updated +- Provides progress feedback to monitor usage + +## Troubleshooting + +### Common Issues + +1. **"DeepL API key is required"** + - Set the `DEEPL_API_KEY` environment variable + - Or use `--api-key` parameter + +2. **"potrans binary not found"** + - Install potrans globally: `composer global require om/potrans` + - Or set `POTRANS_PATH` environment variable to the potrans binary location + - Or install locally: `composer require --dev om/potrans` + +3. **"msgfmt command not found"** + - Install gettext tools: `sudo apt-get install gettext` (Ubuntu/Debian) + +4. **Translation fails for specific language** + - Check DeepL API limits and quotas + - Verify the language code is supported + - Check internet connection + +### Debug Output + +The script provides detailed output showing: +- Which languages are being processed +- Success/failure status for each translation +- Final statistics + +## License + +This translation system is part of Multisite Ultimate and follows the same GPL-3.0-or-later license. \ No newline at end of file diff --git a/scripts/translate.php b/scripts/translate.php new file mode 100644 index 000000000..3e70354c7 --- /dev/null +++ b/scripts/translate.php @@ -0,0 +1,317 @@ + 'Arabic', + 'bg' => 'Bulgarian', + 'cs' => 'Czech', + 'da' => 'Danish', + 'de' => 'German', + 'el' => 'Greek', + 'en-GB' => 'English (British)', + 'en-US' => 'English (American)', + 'es' => 'Spanish', + 'et' => 'Estonian', + 'fi' => 'Finnish', + 'fr' => 'French', + 'hu' => 'Hungarian', + 'id' => 'Indonesian', + 'it' => 'Italian', + 'ja' => 'Japanese', + 'ko' => 'Korean', + 'lt' => 'Lithuanian', + 'lv' => 'Latvian', + 'nb' => 'Norwegian (Bokmål)', + 'nl' => 'Dutch', + 'pl' => 'Polish', + 'pt-BR' => 'Portuguese (Brazilian)', + 'pt-PT' => 'Portuguese (European)', + 'ro' => 'Romanian', + 'ru' => 'Russian', + 'sk' => 'Slovak', + 'sl' => 'Slovenian', + 'sv' => 'Swedish', + 'tr' => 'Turkish', + 'uk' => 'Ukrainian', + 'zh-CN' => 'Chinese (Simplified)', + 'zh-TW' => 'Chinese (Traditional)' + ]; + + /** + * WordPress locale mapping for DeepL language codes + */ + private $wp_locale_mapping = [ + 'ar' => 'ar', + 'bg' => 'bg_BG', + 'cs' => 'cs_CZ', + 'da' => 'da_DK', + 'de' => 'de_DE', + 'el' => 'el', + 'en-GB' => 'en_GB', + 'en-US' => 'en_US', + 'es' => 'es_ES', + 'et' => 'et', + 'fi' => 'fi', + 'fr' => 'fr_FR', + 'hu' => 'hu_HU', + 'id' => 'id_ID', + 'it' => 'it_IT', + 'ja' => 'ja', + 'ko' => 'ko_KR', + 'lt' => 'lt_LT', + 'lv' => 'lv', + 'nb' => 'nb_NO', + 'nl' => 'nl_NL', + 'pl' => 'pl_PL', + 'pt-BR' => 'pt_BR', + 'pt-PT' => 'pt_PT', + 'ro' => 'ro_RO', + 'ru' => 'ru_RU', + 'sk' => 'sk_SK', + 'sl' => 'sl_SI', + 'sv' => 'sv_SE', + 'tr' => 'tr_TR', + 'uk' => 'uk', + 'zh-CN' => 'zh_CN', + 'zh-TW' => 'zh_TW' + ]; + + private $source_pot_file; + private $lang_dir; + private $api_key; + private $force; + private $vendor_dir; + + public function __construct($api_key = null, $force = false) { + $this->source_pot_file = dirname(__DIR__) . '/lang/multisite-ultimate.pot'; + $this->lang_dir = dirname(__DIR__) . '/lang'; + $this->vendor_dir = dirname(__DIR__) . '/vendor'; + $this->api_key = $api_key ?: getenv('DEEPL_API_KEY'); + $this->force = $force; + + if (!$this->api_key) { + throw new Exception('DeepL API key is required. Set DEEPL_API_KEY environment variable or use --api-key parameter.'); + } + + if (!file_exists($this->source_pot_file)) { + throw new Exception("Source POT file not found: {$this->source_pot_file}"); + } + + if (!is_dir($this->vendor_dir)) { + throw new Exception("Vendor directory not found. Run 'composer install' first."); + } + } + + public function translateAll() { + echo "Starting translation process for Multisite Ultimate\n"; + echo "Source POT: {$this->source_pot_file}\n"; + echo "Output directory: {$this->lang_dir}\n\n"; + + $success_count = 0; + $total_count = count($this->deepl_languages); + + foreach ($this->deepl_languages as $deepl_code => $language_name) { + // Skip English since that's our source language + if (strpos($deepl_code, 'en') === 0) { + continue; + } + + $wp_locale = $this->wp_locale_mapping[$deepl_code]; + $output_file = $this->lang_dir . '/multisite-ultimate-' . $wp_locale . '.po'; + + echo "Translating to {$language_name} ({$deepl_code} -> {$wp_locale})... "; + + // Skip if file exists and we're not forcing re-translation + if (file_exists($output_file) && !$this->force) { + echo "SKIPPED (file exists, use --force to overwrite)\n"; + continue; + } + + try { + $result = $this->translateLanguage($deepl_code, $output_file); + if ($result) { + echo "SUCCESS\n"; + $success_count++; + } else { + echo "FAILED\n"; + } + } catch (Exception $e) { + echo "ERROR: " . $e->getMessage() . "\n"; + } + } + + echo "\nTranslation complete!\n"; + echo "Successfully translated: {$success_count}/" . ($total_count - 2) . " languages\n"; // -2 for English variants + } + + private function translateLanguage($deepl_code, $output_file) { + // Try to find potrans binary in multiple locations + $potrans_binary = $this->findPotrancBinary(); + + if (!$potrans_binary) { + throw new Exception("potrans binary not found. Install it globally via 'composer global require om/potrans' or set POTRANS_PATH environment variable."); + } + + $cmd = sprintf( + 'php %s deepl %s %s --apikey=%s --target-lang=%s --source-lang=EN', + escapeshellarg($potrans_binary), + escapeshellarg($this->source_pot_file), + escapeshellarg(dirname($output_file)), + escapeshellarg($this->api_key), + escapeshellarg($deepl_code) + ); + + if ($this->force) { + $cmd .= ' --force'; + } + + // Execute the translation command + $output = []; + $return_code = 0; + exec($cmd . ' 2>&1', $output, $return_code); + + if ($return_code !== 0) { + throw new Exception("potrans command failed: " . implode("\n", $output)); + } + + // potrans outputs with different naming, we need to rename the file + $potrans_output = dirname($output_file) . '/' . basename($this->source_pot_file, '.pot') . '-' . strtolower(str_replace('-', '_', $deepl_code)) . '.po'; + + if (file_exists($potrans_output) && $potrans_output !== $output_file) { + rename($potrans_output, $output_file); + } + + return file_exists($output_file); + } + + public function generateMoFiles() { + echo "Generating .mo files from .po files...\n"; + + $po_files = glob($this->lang_dir . '/multisite-ultimate-*.po'); + $success_count = 0; + + foreach ($po_files as $po_file) { + $mo_file = str_replace('.po', '.mo', $po_file); + echo "Generating " . basename($mo_file) . "... "; + + $cmd = sprintf('msgfmt %s -o %s', escapeshellarg($po_file), escapeshellarg($mo_file)); + $output = []; + $return_code = 0; + exec($cmd . ' 2>&1', $output, $return_code); + + if ($return_code === 0 && file_exists($mo_file)) { + echo "SUCCESS\n"; + $success_count++; + } else { + echo "FAILED\n"; + } + } + + echo "Generated {$success_count} .mo files\n"; + } + + private function findPotrancBinary() { + // 1. Check POTRANS_PATH environment variable + $env_path = getenv('POTRANS_PATH'); + if ($env_path && file_exists($env_path)) { + return $env_path; + } + + // 2. Check vendor/bin/potrans (local installation) + $local_path = $this->vendor_dir . '/bin/potrans'; + if (file_exists($local_path)) { + return $local_path; + } + + // 3. Check global composer installation + $home = getenv('HOME') ?: getenv('USERPROFILE'); + if ($home) { + $global_vendor_path = $home . '/.composer/vendor/bin/potrans'; + if (file_exists($global_vendor_path)) { + return $global_vendor_path; + } + + // Alternative global composer path + $global_vendor_path2 = $home . '/.config/composer/vendor/bin/potrans'; + if (file_exists($global_vendor_path2)) { + return $global_vendor_path2; + } + } + + // 4. Check if potrans is in PATH + $which_result = null; + $return_code = 0; + exec('which potrans 2>/dev/null', $which_result, $return_code); + if ($return_code === 0 && !empty($which_result[0]) && file_exists($which_result[0])) { + return $which_result[0]; + } + + // 5. Try whereis on Linux systems + $whereis_result = null; + $return_code = 0; + exec('whereis potrans 2>/dev/null', $whereis_result, $return_code); + if ($return_code === 0 && !empty($whereis_result[0])) { + $parts = explode(' ', $whereis_result[0]); + if (count($parts) > 1 && file_exists($parts[1])) { + return $parts[1]; + } + } + + return false; + } +} + +// Parse command line arguments +$api_key = null; +$force = false; +$help = false; + +for ($i = 1; $i < $argc; $i++) { + $arg = $argv[$i]; + + if (strpos($arg, '--api-key=') === 0) { + $api_key = substr($arg, strlen('--api-key=')); + } elseif ($arg === '--force') { + $force = true; + } elseif ($arg === '--help' || $arg === '-h') { + $help = true; + } +} + +if ($help) { + echo "Multisite Ultimate Translation Script\n"; + echo "=====================================\n\n"; + echo "Usage: php scripts/translate.php [options]\n\n"; + echo "Options:\n"; + echo " --api-key=KEY DeepL API key (or set DEEPL_API_KEY environment variable)\n"; + echo " --force Force re-translation of existing files\n"; + echo " --help Show this help message\n\n"; + echo "This script will:\n"; + echo "1. Translate the main POT file to all DeepL supported languages\n"; + echo "2. Generate .mo files from the translated .po files\n\n"; + exit(0); +} + +try { + $translator = new MultisiteUltimateTranslator($api_key, $force); + $translator->translateAll(); + $translator->generateMoFiles(); + + echo "\nAll done! 🎉\n"; +} catch (Exception $e) { + echo "Error: " . $e->getMessage() . "\n"; + exit(1); +} \ No newline at end of file From ca245484045057b14e279590332ce122fb016407 Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 10:45:30 -0600 Subject: [PATCH 04/27] Allow more data attributes --- inc/functions/helper.php | 120 ++++++++++++++++++++++++--------------- 1 file changed, 73 insertions(+), 47 deletions(-) diff --git a/inc/functions/helper.php b/inc/functions/helper.php index 5e2ac7056..14e0a27f2 100644 --- a/inc/functions/helper.php +++ b/inc/functions/helper.php @@ -353,56 +353,82 @@ function wu_kses_allowed_html(): array { $vue_and_data_attributes = [ // Vue.js directives - 'v-html' => true, - 'v-show' => true, - 'v-if' => true, - 'v-else' => true, - 'v-else-if' => true, - 'v-for' => true, - 'v-model' => true, - 'v-bind' => true, - 'v-bind:class' => true, - 'v-on' => true, - 'v-cloak' => true, - 'v-pre' => true, - 'v-once' => true, - 'v-text' => true, + 'v-html' => true, + 'v-show' => true, + 'v-if' => true, + 'v-else' => true, + 'v-else-if' => true, + 'v-for' => true, + 'v-model' => true, + 'v-bind' => true, + 'v-bind:class' => true, + 'v-on' => true, + 'v-cloak' => true, + 'v-pre' => true, + 'v-once' => true, + 'v-text' => true, // Vue.js shorthand attributes - ':class' => true, - ':style' => true, - 'v-on:click' => true, - 'v-on:input' => true, - 'v-on:change' => true, - '@click' => true, - '@submit' => true, - '@change' => true, + ':class' => true, + ':style' => true, + 'v-on:click' => true, + 'v-on:input' => true, + 'v-on:change' => true, + '@click' => true, + '@click.prevent' => true, + '@submit' => true, + '@change' => true, // Common data attributes - 'data-image' => true, - 'data-src' => true, - 'data-id' => true, - 'data-value' => true, - 'data-target' => true, - 'data-toggle' => true, - 'data-dismiss' => true, - 'data-placement' => true, - 'data-content' => true, - 'data-title' => true, - 'data-delay' => true, - 'data-animation' => true, - 'data-container' => true, - 'data-trigger' => true, - 'data-model' => true, - 'data-value-field' => true, - 'data-label-field' => true, - 'data-search-field' => true, - 'data-max-items' => true, - 'data-init' => true, - 'tabindex' => true, - + 'data-image' => true, + 'data-src' => true, + 'data-id' => true, + 'data-value' => true, + 'data-target' => true, + 'data-toggle' => true, + 'data-dismiss' => true, + 'data-placement' => true, + 'data-content' => true, + 'data-title' => true, + 'data-delay' => true, + 'data-animation' => true, + 'data-container' => true, + 'data-trigger' => true, + 'data-model' => true, + 'data-value-field' => true, + 'data-label-field' => true, + 'data-search-field' => true, + 'data-max-items' => true, + 'data-frame' => true, + 'data-selectize' => true, + 'data-selectize-categories' => true, + 'data-selected' => true, + 'data-init' => true, + 'data-wu-customizer-panel' => true, + 'data-editor' => true, + 'data-code-editor' => true, + 'data-frequency-selector' => true, + 'data-wu-app' => true, + 'data-loading' => true, + 'data-state' => true, + 'tabindex' => true, + 'data-base-link' => true, + 'data-exclude' => true, + 'data-field-value' => true, + 'data-on-load' => true, + 'data-format' => true, + 'data-allow-time' => true, + 'data-no-calendar' => true, + 'data-clipboard-text' => true, + 'data-page' => true, + 'data-testid' => true, + 'data-confirm-email' => true, + 'data-include' => true, + 'data-clipboard-action' => true, + 'data-action' => true, // others - 'style' => true, - 'class' => true, - 'id' => true, + 'style' => true, + 'class' => true, + 'id' => true, + 'data-price' => true, ]; $allowed_html = wp_kses_allowed_html('post'); From bf13f49fa8eae2e684b36ea107f14d0961639e73 Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 10:45:38 -0600 Subject: [PATCH 05/27] cleanup --- utils/ollama/src/refactor.php | 227 ---------------------------------- 1 file changed, 227 deletions(-) delete mode 100644 utils/ollama/src/refactor.php diff --git a/utils/ollama/src/refactor.php b/utils/ollama/src/refactor.php deleted file mode 100644 index 018af2607..000000000 --- a/utils/ollama/src/refactor.php +++ /dev/null @@ -1,227 +0,0 @@ -apiKey = 'sk-12df7cbb1e3c42aabc7828db0d9e4f18'; -//$config->url = 'https://mc.stonefamily.ro/openai'; -//$config->model = 'qwen2.5-coder'; -//$chat = new OpenAIChat($config); -//$response = $chat->generateText('what is one + one ?'); // will return something like "Two" -//var_dump($response); -//die(); -//$client = \ArdaGnsrn\Ollama\Ollama::client('https://mc.stonefamily.ro/ollama'); -$client = new \ArdaGnsrn\Ollama\OllamaClient('http://nas:11434', 'sk-12df7cbb1e3c42aabc7828db0d9e4f18' ); -//sk-12df7cbb1e3c42aabc7828db0d9e4f18 -$files = [ -// 'views/emails/admin/payment-received.php', -// 'views/emails/admin/domain-created.php', -// 'views/checkout/fields/field-password.php', -// 'views/checkout/paypal/confirm.php', -// 'views/checkout/templates/pricing-table/legacy.php', -// 'views/checkout/templates/order-summary/simple.php', -// 'views/checkout/templates/template-selection/clean.php', -// 'views/checkout/templates/template-selection/legacy.php', -// 'views/checkout/templates/template-selection/minimal.php', -// 'views/checkout/templates/order-bump/simple.php', -// 'views/checkout/templates/steps/clean.php', -// 'views/checkout/templates/steps/minimal.php', -// 'views/checkout/partials/pricing-table-list.php', -// 'views/checkout/register.php', -// 'views/dashboard-statistics/widget-mrr-growth.php', -// 'views/dashboard-statistics/widget-taxes.php', -// 'views/dashboard-statistics/widget-tax-by-code.php', -// 'views/dashboard-statistics/widget-tax-graph.php', -// 'views/dashboard-statistics/widget-new-accounts.php', -// 'views/dashboard-statistics/widget-revenue.php', -// 'views/dashboard-statistics/widget-tax-by-day.php', - 'views/dashboard-statistics/widget-countries.php', - 'views/dashboard-statistics/widget-forms.php', - 'views/settings/fields/field-multi_checkbox.php', - 'views/settings/fields/field-image.php', - 'views/memberships/product-list.php', - 'views/taxes/list.php', - 'views/system-info/system-info.php', - 'views/system-info/system-info-table.php', - 'views/events/widget-payload.php', - 'views/events/widget-message.php', - 'views/events/widget-initiator.php', - 'views/about.php', - 'views/domain/dns-table.php', - 'views/domain/log.php', - 'views/ui/selectize-templates.php', - 'views/ui/template-previewer.php', - 'views/ui/branding/footer.php', - 'views/ui/branding/header.php', - 'views/ui/jumper-trigger.php', - 'views/ui/container-toggle.php', - 'views/ui/toolbox.php', - 'views/ui/jumper.php', - 'views/broadcast/widget-targets.php', - 'views/sites/edit-placeholders.php', - 'views/payments/line-item-actions.php', - 'views/payments/tax-details.php', - 'views/wizards/setup/requirements_table.php', - 'views/wizards/setup/installation_steps.php', - 'views/wizards/setup/support_terms.php', - 'views/wizards/setup/ready.php', - 'views/wizards/host-integrations/cloudflare-instructions.php', - 'views/wizards/host-integrations/runcloud-instructions.php', - 'views/wizards/host-integrations/configuration.php', - 'views/wizards/host-integrations/configuration-results.php', - 'views/wizards/host-integrations/test.php', - 'views/wizards/host-integrations/activation.php', - 'views/wizards/host-integrations/ready.php', - 'views/wizards/host-integrations/gridpane-instructions.php', - 'views/email/widget-placeholders.php', - 'views/legacy/signup/signup-steps-navigation.php', - 'views/legacy/signup/signup-nav-links.php', - 'views/legacy/signup/pricing-table/coupon-code.php', - 'views/legacy/signup/pricing-table/frequency-selector.php', - 'views/legacy/signup/pricing-table/no-plans.php', - 'views/legacy/signup/pricing-table/plan.php', - 'views/legacy/signup/steps/step-domain-url-preview.php', - 'views/legacy/signup/signup-main.php', - 'views/admin-notices.php', - 'views/checkout/fields/field-group.php', - 'views/checkout/fields/field-products.php', - 'views/checkout/fields/field-checkbox-multi.php', - 'views/checkout/fields/field-select.php', - 'views/checkout/fields/form.php', - 'views/checkout/fields/field-hidden.php', - 'views/checkout/fields/field-submit.php', - 'views/checkout/fields/field-checkbox.php', - 'views/checkout/fields/partials/field-description.php', - 'views/checkout/fields/partials/field-title.php', - 'views/checkout/fields/field-toggle.php', - 'views/checkout/fields/field-radio.php', - 'views/checkout/fields/field-payment-methods.php', - 'views/checkout/fields/field-html.php', - 'views/checkout/fields/field-text.php', - 'views/checkout/fields/field-note.php', - 'views/checkout/templates/pricing-table/list.php', - 'views/checkout/templates/steps/legacy.php', - 'views/checkout/templates/period-selection/clean.php', - 'views/checkout/templates/period-selection/legacy.php', - 'views/dashboard-statistics/filter.php', - 'views/settings/fields/field-wp_editor.php', - 'views/settings/fields/field-heading.php', - 'views/settings/fields/field-select.php', - 'views/settings/fields/field-heading_collapsible.php', - 'views/settings/fields/field-select2.php', - 'views/settings/fields/field-checkbox.php', - 'views/settings/fields/field-textarea.php', - 'views/settings/fields/field-color.php', - 'views/settings/fields/field-ajax_button.php', - 'views/settings/fields/field-text.php', - 'views/settings/fields/field-note.php', - 'views/base/edit/widget-save.php', - 'views/base/dash.php', - 'views/base/list.php', - 'views/base/edit.php', - 'views/base/wizard.php', - 'views/base/grid.php', - 'views/base/empty-state.php', - 'views/dashboard-widgets/site-maintenance.php', - 'views/broadcast/emails/base.php', - 'views/wizards/setup/default.php', - 'views/wizards/host-integrations/serverpilot-instructions.php', - 'views/dynamic-styles/template-previewer.php', - 'views/legacy/signup/pricing-table/pricing-table.php', - 'views/legacy/signup/steps/step-default.php', - 'views/wizards/host-integrations/cloudways-instructions.php', - 'views/settings/widget-settings-body.php', - 'views/base/wizard-body.php', - 'views/events/ascii-badge.php', - 'views/classes.php', -]; -$chat = new Chat($client); - -//foreach ( $files as $file) { - echo 'php ' . __DIR__ . '/../../../vendor/bin/phpcs -q --parallel=4 --report=json ' . __DIR__ . '/../../../'; - $json = shell_exec( 'php ' . __DIR__ . '/../../../vendor/bin/phpcs -q --parallel=4 --report=json ' . __DIR__ . '/../../../' ); -// $output = explode( "\n", $json ); -// $lines = file_get_contents( __DIR__ . '/../../../' . $file); -// $prompt = "```\n" . $lines . "```\n\n"; - - $problems = json_decode( $json, true ); -// var_dump( $problems ); - if(!$problems) { - var_dump($json); - die(); - } - foreach ( $problems['files'] as $file => $f ) { - $file_changed = false; - $lines = file( __DIR__ . '/../../../' . $file ); - - foreach ( $f['messages'] as $message ) { - if ( 'WordPress.WP.I18n.MissingTranslatorsComment' !== $message['source'] ) { - continue; - } - $context = ''; - for ( $i = 1; $i > 0; $i -- ) { - $context .= $lines [ $message['line'] - $i ]; - } - $prompt = "I am working on a WordPress plugin and I am using PHP Code Sniffer to check for errors.\nPlease fix the following error reported by PHP Code Sniffer in the below code:\n"; - $prompt .= " Error: " . $message['source'] . ':' . " " . $message['message'] . "\n```\n" . $context . "\n```"; - - echo $prompt; - $response = $chat->create( - [ - 'model' => 'qwen2.5-coder:latest', - 'messages' => [ - [ - 'role' => 'system', - 'content' => 'You are an expert PHP programming specializing in WordPress development. You will take PHP code and input and respond with the PHP code fixed and enhanced. You only produce valid PHP 7.4+ code. Please do not explain the code only output the fixed code if necessary. When adding a translators: comment use the short // comment syntax and place the comment in the line immediately before the translated string. If the translated string is wrapped in `.', - ], - [ - 'role' => 'user', - 'content' => $prompt, - ], - ], - ] - ); - - preg_match( '/```php(.*?)```/s', $response->message->content, $matches ); - $newcode = $matches[1] ?? ''; - echo $newcode; - $lines [ $message['line'] - 1 ] = $newcode; - - $descriptorspec = array( - 0 => array( "pipe", "r" ), // stdout is a pipe that the child will write to - ); - - $cwd = '/tmp'; - $env = array( 'some_option' => 'aeiou' ); - - $process = proc_open( 'php -l', $descriptorspec, $pipes ); - - if ( is_resource( $process ) ) { - fwrite( $pipes[0], join( '', $lines ) ); - $return_value = proc_close( $process ); - - echo "command returned $return_value\n"; - if ( $return_value != 0 ) { - // bad code - $lines[ $message['line'] - 1 ] = $context; - } else { - $file_changed = true; - } - } - - } - - if ( $file_changed ) { - file_put_contents( __DIR__ . '/../../../' . $file . '_qwen.php', join( '', $lines ) ); - passthru( 'php ' . __DIR__ . '/../../../vendor/bin/phpcbf ' . __DIR__ . '/../../../' . $file . '_qwen.php' ); - } - } -//} -// -// echo "processing $file of " . strlen($code) . "\n"; - - -// file_put_contents(__DIR__ . '/../../../' . $file . '.new.php', $newcode); -//} \ No newline at end of file From 0e76b303f3fd1dcf3df747772f23c687127a2781 Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 11:27:50 -0600 Subject: [PATCH 06/27] Email confirmation is not required on a checkout form --- .../signup-fields/class-signup-field-email-confirmation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/checkout/signup-fields/class-signup-field-email-confirmation.php b/inc/checkout/signup-fields/class-signup-field-email-confirmation.php index 69bba49d6..21b3fe0f0 100644 --- a/inc/checkout/signup-fields/class-signup-field-email-confirmation.php +++ b/inc/checkout/signup-fields/class-signup-field-email-confirmation.php @@ -42,7 +42,7 @@ public function get_type(): string { */ public function is_required(): bool { - return true; + return false; } /** From 9f17797c1550eae141c7169f234e2e1c7631b5db Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 11:28:11 -0600 Subject: [PATCH 07/27] Add better type hints --- inc/models/class-checkout-form.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/inc/models/class-checkout-form.php b/inc/models/class-checkout-form.php index e27d48d9f..4c28e23e0 100644 --- a/inc/models/class-checkout-form.php +++ b/inc/models/class-checkout-form.php @@ -52,10 +52,10 @@ class Checkout_Form extends Base_Model { protected $active = true; /** - * Payload of the event. + * Settings which hold the fields of the checkout form * * @since 2.0.0 - * @var object + * @var array */ protected $settings; @@ -239,7 +239,7 @@ public function set_custom_css($custom_css): void { * Get settings of the event. * * @since 2.0.0 - * @return mixed + * @return array */ public function get_settings() { @@ -258,7 +258,7 @@ public function get_settings() { * Set settings of the checkout form. * * @since 2.0.0 - * @param object $settings The checkout form settings and configurations. + * @param array|string $settings The checkout form settings and configurations. * @return void */ public function set_settings($settings): void { @@ -421,8 +421,6 @@ public function get_all_fields() { /** * Get all fields of a given type. * - * @since 2.0.11 - * * @param string|array $type The field type or types to search for. * @return array */ @@ -1147,7 +1145,7 @@ public function set_conversion_snippets($conversion_snippets): void { * * @since 2.0.0 * - * @return bool + * @return bool|\WP_Error */ public function save() { From f3f0a1ebfc0acc9e9e16e4c647ad9df63c4a88ee Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 13:18:13 -0600 Subject: [PATCH 08/27] Fix checkout --- assets/js/setup-wizard.min.js | 2 +- .../class-signup-field-order-bump.php | 10 ++++++++-- .../class-signup-field-order-summary.php | 10 ++++++++-- .../class-signup-field-period-selection.php | 10 ++++++++-- .../class-signup-field-pricing-table.php | 10 ++++++++-- .../signup-fields/class-signup-field-steps.php | 11 ++++++++--- .../class-signup-field-template-selection.php | 10 ++++++++-- .../field-templates/class-base-field-template.php | 10 ++++------ inc/functions/helper.php | 4 ++++ inc/managers/class-field-templates-manager.php | 3 ++- inc/ui/class-base-element.php | 15 +++++++++++++-- inc/ui/class-form.php | 13 ++++++------- inc/ui/class-template-switching-element.php | 10 ++++++++-- views/admin-pages/fields/form.php | 2 +- views/checkout/fields/field-note.php | 2 +- views/checkout/fields/form.php | 2 +- 16 files changed, 89 insertions(+), 35 deletions(-) diff --git a/assets/js/setup-wizard.min.js b/assets/js/setup-wizard.min.js index eaf48a1e6..249c6f6b3 100644 --- a/assets/js/setup-wizard.min.js +++ b/assets/js/setup-wizard.min.js @@ -1 +1 @@ -if((r=>{window._wu_block_ui_polyfill=wu_block_ui_polyfill,wu_block_ui_polyfill=function(){},r(document).ready(function(){r("#poststuff").on("submit","form",function(t){t.preventDefault();let s=r(this),a=s.find("table[data-id]").data("id"),d=(s.find("[name=next]").attr("disabled","disabled"),s.find("tr[data-content]")),l=(d=d.filter(function(){var t=r(this).find("input[type=checkbox]");return!t.length||t.is(":checked")}),0),o=0;!function e(t){window.onbeforeunload=function(){return""};if(0===t.length)return d.length!==l&&"migration"!==a||(window.onbeforeunload=null,_wu_block_ui_polyfill(r("#poststuff .inside")),setTimeout(()=>{s.get(0).submit()},100)),s.find("[name=next]").removeAttr("disabled"),!1;let n=r(t);let i=n.data("content");n.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});n.find("td.status").attr("class","").addClass("status").find("> span").html(wu_setup[i].installing).end().find(".spinner").addClass("is-active").end().find("a.help").slideUp();r.ajax({url:ajaxurl,method:"post",data:{action:"wu_setup_install",installer:i,"dry-run":wu_setup_settings.dry_run},success(t){!0===t.success?(n.find("td.status").attr("class","").addClass("status wu-text-green-600").find("> span").html(wu_setup[i].success).end().find(".spinner").removeClass("is-active"),n.removeAttr("data-content"),l++):n.find("td.status").attr("class","").addClass("status wu-text-red-400").find("> span").html(t.data[0].message).end().find(".spinner").removeClass("is-active").end().find("a.help").slideDown(),o++,e(d.eq(o))},error(){n.find("td.status").attr("class","").addClass("status wu-text-red-400").find("span").html("").end().find(".spinner").removeClass("is-active").end().find("a.help").slideDown(),o++,e(d.eq(o))}})}(d.eq(o))})})})(jQuery),"function"!=typeof wu_initialize_tooltip){let t=function(){jQuery('[role="tooltip"]').tipTip({attribute:"aria-label"})},e=function(t){return jQuery(t).wu_block({message:"Please wait...",overlayCSS:{backgroundColor:"#FFF",opacity:.6},css:{padding:0,margin:0,width:"50%",fontSize:"14px !important",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"none",backgroundColor:"none",cursor:"wait"}}),jQuery(t)};jQuery(document).ready(function(){t()})} \ No newline at end of file +if((r=>{window._wu_block_ui_polyfill=wu_block_ui_polyfill,wu_block_ui_polyfill=function(){},r(document).ready(function(){r("#poststuff").on("submit","form",function(t){t.preventDefault();let s=r(this),a=s.find("table[data-id]").data("id"),d=(s.find("[name=next]").attr("disabled","disabled"),s.find("tr[data-content]")),l=(d=d.filter(function(){var t=r(this).find("input[type=checkbox]");return!t.length||t.is(":checked")}),0),o=0;!function e(t){window.onbeforeunload=function(){return""};if(0===t.length)return d.length!==l&&"migration"!==a||(window.onbeforeunload=null,_wu_block_ui_polyfill(r("#poststuff .inside")),setTimeout(()=>{s.get(0).submit()},100)),s.find("[name=next]").removeAttr("disabled"),!1;let n=r(t);let i=n.data("content");n.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});n.find("td.status").attr("class","").addClass("status").find("> span").html(wu_setup[i].installing).end().find(".spinner").addClass("is-active").end().find("a.help").slideUp();r.ajax({url:ajaxurl,method:"post",data:{action:"wu_setup_install",installer:i,"dry-run":wu_setup_settings.dry_run},success(t){!0===t.success?(n.find("td.status").attr("class","").addClass("status wu-text-green-600").find("> span").html(wu_setup[i].success).end().find(".spinner").removeClass("is-active"),n.removeAttr("data-content"),l++):n.find("td.status").attr("class","").addClass("status wu-text-red-400").find("> span").html(t.data[0].message).end().find(".spinner").removeClass("is-active").end().find("a.help").slideDown(),o++,e(d.eq(o))},error(){n.find("td.status").attr("class","").addClass("status wu-text-red-400").find("span").html("").end().find(".spinner").removeClass("is-active").end().find("a.help").slideDown(),o++,e(d.eq(o))}})}(d.eq(o))}),r("#poststuff [name=next]").removeAttr("disabled")})})(jQuery),"function"!=typeof wu_initialize_tooltip){let t=function(){jQuery('[role="tooltip"]').tipTip({attribute:"aria-label"})},e=function(t){return jQuery(t).wu_block({message:"Please wait...",overlayCSS:{backgroundColor:"#FFF",opacity:.6},css:{padding:0,margin:0,width:"50%",fontSize:"14px !important",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"none",backgroundColor:"none",cursor:"wait"}}),jQuery(t)};jQuery(document).ready(function(){t()})} \ No newline at end of file diff --git a/inc/checkout/signup-fields/class-signup-field-order-bump.php b/inc/checkout/signup-fields/class-signup-field-order-bump.php index e970c6cc4..2bd5bddfd 100644 --- a/inc/checkout/signup-fields/class-signup-field-order-bump.php +++ b/inc/checkout/signup-fields/class-signup-field-order-bump.php @@ -247,12 +247,18 @@ public function to_fields_array($attributes) { $template_class = Field_Templates_Manager::get_instance()->get_template_class('order_bump', $attributes['order_bump_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'multisite-ultimate'); + $desc = function() use($attributes, $template_class) { + if ($template_class) { + $template_class->render_container($attributes); + } else { + esc_html_e('Template does not exist.', 'multisite-ultimate'); + } + }; return [ $attributes['id'] => [ 'type' => 'note', - 'desc' => $content, + 'desc' => $desc, 'wrapper_classes' => $attributes['element_classes'], ], ]; diff --git a/inc/checkout/signup-fields/class-signup-field-order-summary.php b/inc/checkout/signup-fields/class-signup-field-order-summary.php index 215bb91d5..84d9f9969 100644 --- a/inc/checkout/signup-fields/class-signup-field-order-summary.php +++ b/inc/checkout/signup-fields/class-signup-field-order-summary.php @@ -221,11 +221,17 @@ public function to_fields_array($attributes) { $template_class = Field_Templates_Manager::get_instance()->get_template_class('order_summary', $attributes['order_summary_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'multisite-ultimate'); + $desc = function() use($attributes, $template_class) { + if ($template_class) { + $template_class->render_container($attributes); + } else { + esc_html_e('Template does not exist.', 'multisite-ultimate'); + } + }; $checkout_fields[ $attributes['id'] ] = [ 'type' => 'note', - 'desc' => $content, + 'desc' => $desc, 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'classes' => wu_get_isset($attributes, 'element_classes', ''), 'wrapper_html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-period-selection.php b/inc/checkout/signup-fields/class-signup-field-period-selection.php index 441dea178..0ec4793a7 100644 --- a/inc/checkout/signup-fields/class-signup-field-period-selection.php +++ b/inc/checkout/signup-fields/class-signup-field-period-selection.php @@ -297,7 +297,13 @@ public function to_fields_array($attributes) { $template_class = Field_Templates_Manager::get_instance()->get_template_class('period_selection', $attributes['period_selection_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'multisite-ultimate'); + $desc = function() use($attributes, $template_class) { + if ($template_class) { + $template_class->render_container($attributes); + } else { + esc_html_e('Template does not exist.', 'multisite-ultimate'); + } + }; $checkout_fields = []; @@ -305,7 +311,7 @@ public function to_fields_array($attributes) { 'type' => 'note', 'id' => $attributes['id'], 'wrapper_classes' => $attributes['element_classes'], - 'desc' => $content, + 'desc' => $desc, ]; $checkout_fields['duration'] = [ diff --git a/inc/checkout/signup-fields/class-signup-field-pricing-table.php b/inc/checkout/signup-fields/class-signup-field-pricing-table.php index 1722a6b7d..7b4647ac7 100644 --- a/inc/checkout/signup-fields/class-signup-field-pricing-table.php +++ b/inc/checkout/signup-fields/class-signup-field-pricing-table.php @@ -277,7 +277,13 @@ public function to_fields_array($attributes) { $template_class = Field_Templates_Manager::get_instance()->get_template_class('pricing_table', $attributes['pricing_table_template']); - $content = $template_class ? $template_class->render_container($template_attributes) : __('Template does not exist.', 'multisite-ultimate'); + $desc = function() use($template_attributes, $template_class) { + if ($template_class) { + $template_class->render_container($template_attributes); + } else { + esc_html_e('Template does not exist.', 'multisite-ultimate'); + } + }; $checkout_fields = []; @@ -286,7 +292,7 @@ public function to_fields_array($attributes) { 'id' => $attributes['id'], 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'classes' => wu_get_isset($attributes, 'element_classes', ''), - 'desc' => $content, + 'desc' => $desc, 'wrapper_html_attr' => [ 'style' => $this->calculate_style_attr(), ], diff --git a/inc/checkout/signup-fields/class-signup-field-steps.php b/inc/checkout/signup-fields/class-signup-field-steps.php index 3e399f551..ca70eda1f 100644 --- a/inc/checkout/signup-fields/class-signup-field-steps.php +++ b/inc/checkout/signup-fields/class-signup-field-steps.php @@ -207,12 +207,17 @@ public function to_fields_array($attributes) { $template_class = Field_Templates_Manager::get_instance()->get_template_class('steps', $attributes['steps_template']); - $content = $template_class ? $template_class->render_container($attributes) : __('Template does not exist.', 'multisite-ultimate'); - + $desc = function() use($attributes, $template_class) { + if ($template_class) { + $template_class->render_container($attributes); + } else { + esc_html_e('Template does not exist.', 'multisite-ultimate'); + } + }; return [ $attributes['id'] => [ 'type' => 'note', - 'desc' => $content, + 'desc' => $desc, 'wrapper_classes' => $attributes['element_classes'], ], ]; diff --git a/inc/checkout/signup-fields/class-signup-field-template-selection.php b/inc/checkout/signup-fields/class-signup-field-template-selection.php index 85e3fbb17..9fadcc1e9 100644 --- a/inc/checkout/signup-fields/class-signup-field-template-selection.php +++ b/inc/checkout/signup-fields/class-signup-field-template-selection.php @@ -356,11 +356,17 @@ public function to_fields_array($attributes) { $template_class = Field_Templates_Manager::get_instance()->get_template_class('template_selection', $attributes['template_selection_template']); - $content = $template_class ? $template_class->render_container($template_attributes, $this) : __('Template does not exist.', 'multisite-ultimate'); + $desc = function() use($template_attributes, $template_class) { + if ($template_class) { + $template_class->render_container($template_attributes); + } else { + esc_html_e('Template does not exist.', 'multisite-ultimate'); + } + }; $checkout_fields[ $attributes['id'] ] = [ 'type' => 'note', - 'desc' => $content, + 'desc' => $desc, 'wrapper_classes' => $attributes['element_classes'], ]; diff --git a/inc/checkout/signup-fields/field-templates/class-base-field-template.php b/inc/checkout/signup-fields/field-templates/class-base-field-template.php index 1bcf87931..642a8786d 100644 --- a/inc/checkout/signup-fields/field-templates/class-base-field-template.php +++ b/inc/checkout/signup-fields/field-templates/class-base-field-template.php @@ -138,13 +138,13 @@ public function render($attributes) { /** * Displays the content on the checkout form as a wrapper. * - * This method should not be override. + * This method should not be overridden. * * @since 2.0.0 * * @param array $attributes The field template attributes. * @param object $signup_field The base field. - * @return string + * @return void */ public function render_container($attributes, $signup_field = false) { @@ -153,11 +153,9 @@ public function render_container($attributes, $signup_field = false) { $attributes = $signup_field->reduce_attributes($attributes); } - $markup = sprintf('', esc_js($this->id), esc_attr(wp_json_encode($attributes))); + printf('', esc_js($this->id), esc_attr(wp_json_encode($attributes))); } else { - $markup = $this->render($attributes); + $this->output($attributes); } - - return $markup; } } diff --git a/inc/functions/helper.php b/inc/functions/helper.php index 14e0a27f2..ebfa46ed9 100644 --- a/inc/functions/helper.php +++ b/inc/functions/helper.php @@ -463,6 +463,10 @@ function wu_kses_allowed_html(): array { 'name' => true, 'value' => true, ]; + $allowed_html['dynamic'] = [ + ':template' => true, + 'template' => true, + ]; return [ 'svg' => $svg_attributes + [ diff --git a/inc/managers/class-field-templates-manager.php b/inc/managers/class-field-templates-manager.php index 41adf3983..294369d44 100644 --- a/inc/managers/class-field-templates-manager.php +++ b/inc/managers/class-field-templates-manager.php @@ -11,6 +11,7 @@ namespace WP_Ultimo\Managers; +use WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Base_Field_Template; use WP_Ultimo\Managers\Base_Manager; // Exit if accessed directly @@ -177,7 +178,7 @@ public function get_templates($field_type) { * * @param string $field_type The field type id. * @param string $field_template_id The field template id. - * @return object + * @return Base_Field_Template */ public function get_template_class($field_type, $field_template_id) { diff --git a/inc/ui/class-base-element.php b/inc/ui/class-base-element.php index a04f5da83..7495534f8 100644 --- a/inc/ui/class-base-element.php +++ b/inc/ui/class-base-element.php @@ -649,7 +649,7 @@ public function register_shortcode(): void { return; } - add_shortcode($this->get_shortcode_id(), [$this, 'display']); + add_shortcode($this->get_shortcode_id(), [$this, 'get_content']); } /** @@ -1004,6 +1004,17 @@ public function display($atts) { call_user_func([$this, 'output'], $atts); } + /** + * @param $atts + * + * @return string + */ + public function get_content($atts): string { + ob_start(); + $this->display($atts); + return ob_get_clean(); + } + /** * Retrieves a cleaned up version of the content. * @@ -1016,7 +1027,7 @@ public function display($atts) { */ public function display_template($atts) { - $content = $this->display($atts); + $content = $this->get_content($atts); $content = str_replace( [ diff --git a/inc/ui/class-form.php b/inc/ui/class-form.php index 5471bf2c2..7dd614615 100644 --- a/inc/ui/class-form.php +++ b/inc/ui/class-form.php @@ -171,8 +171,13 @@ public function render(): void { ] ); - ob_start(); + wu_get_template("{$this->views}/form", $variables); + } + /** + * @return void + */ + public function render_fields(): void { foreach ($this->get_fields() as $field_slug => $field) { $template_name = $field->get_template_name(); @@ -193,12 +198,6 @@ public function render(): void { "{$this->views}/field-text" ); } - - $rendered_fields = ob_get_clean(); - - $variables['rendered_fields'] = $rendered_fields; - - wu_get_template("{$this->views}/form", $variables); } /** diff --git a/inc/ui/class-template-switching-element.php b/inc/ui/class-template-switching-element.php index 2e68fe4dc..cfadbf43b 100644 --- a/inc/ui/class-template-switching-element.php +++ b/inc/ui/class-template-switching-element.php @@ -349,7 +349,13 @@ public function output($atts, $content = null): void { $template_class = Field_Templates_Manager::get_instance()->get_template_class('template_selection', $atts['template_selection_template']); - $content = $template_class ? $template_class->render_container($template_attributes, $reducer_class) : __('Template does not exist.', 'multisite-ultimate'); + $desc = function() use($template_attributes, $template_class) { + if ($template_class) { + $template_class->render_container($template_attributes); + } else { + esc_html_e('Template does not exist.', 'multisite-ultimate'); + } + }; $checkout_fields['back_to_template_selection'] = [ 'type' => 'note', @@ -366,7 +372,7 @@ public function output($atts, $content = null): void { 'type' => 'note', 'wrapper_classes' => 'wu-w-full', 'classes' => 'wu-w-full', - 'desc' => $content, + 'desc' => $desc, 'wrapper_html_attr' => [ 'v-show' => 'template_id == original_template_id', 'v-cloak' => '1', diff --git a/views/admin-pages/fields/form.php b/views/admin-pages/fields/form.php index 8750674ff..329601ecd 100644 --- a/views/admin-pages/fields/form.php +++ b/views/admin-pages/fields/form.php @@ -27,7 +27,7 @@
    print_html_attributes(); ?>> - + render_fields(); ?>
diff --git a/views/checkout/fields/field-note.php b/views/checkout/fields/field-note.php index 9e8c7dd02..33112eb86 100644 --- a/views/checkout/fields/field-note.php +++ b/views/checkout/fields/field-note.php @@ -11,6 +11,6 @@
print_wrapper_html_attributes(); ?>> - desc, wu_kses_allowed_html()); ?> + desc ?? '', wu_kses_allowed_html()); ?>
diff --git a/views/checkout/fields/form.php b/views/checkout/fields/form.php index 9fde4829b..c3f311eb8 100644 --- a/views/checkout/fields/form.php +++ b/views/checkout/fields/form.php @@ -24,7 +24,7 @@ - + render_fields(); ?> wrap_in_form_tag) : ?> From 0f3649ce9b5e00a5d2d24131adc9207d5469335e Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Sep 2025 13:58:17 -0600 Subject: [PATCH 09/27] Fix checkout --- inc/checkout/signup-fields/class-signup-field-submit-button.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/checkout/signup-fields/class-signup-field-submit-button.php b/inc/checkout/signup-fields/class-signup-field-submit-button.php index 2d3d96913..a04c099a7 100644 --- a/inc/checkout/signup-fields/class-signup-field-submit-button.php +++ b/inc/checkout/signup-fields/class-signup-field-submit-button.php @@ -15,7 +15,7 @@ defined('ABSPATH') || exit; /** - * Creates an cart with the parameters of the purchase being placed. + * Creates a cart with the parameters of the purchase being placed. * * @package WP_Ultimo * @subpackage Checkout From 2533b664d5914e450e00175f26ac990fad8b7009 Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 16 Sep 2025 17:14:11 -0600 Subject: [PATCH 10/27] Add option to confirm email address --- .../class-signup-field-email.php | 28 +++++++++++++++++-- .../class-signup-field-password.php | 2 +- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/inc/checkout/signup-fields/class-signup-field-email.php b/inc/checkout/signup-fields/class-signup-field-email.php index a926d678e..c5cd8ea85 100644 --- a/inc/checkout/signup-fields/class-signup-field-email.php +++ b/inc/checkout/signup-fields/class-signup-field-email.php @@ -116,7 +116,9 @@ public function get_icon(): string { public function defaults() { return [ - 'display_notices' => true, + 'display_notices' => true, + 'email_confirm_field' => false, + 'email_confirm_label' => __('Confirm Email', 'multisite-ultimate'), ]; } @@ -158,7 +160,7 @@ public function force_attributes() { public function get_fields() { return [ - 'display_notices' => [ + 'display_notices' => [ 'type' => 'toggle', 'title' => __('Display Notices', 'multisite-ultimate'), 'desc' => __('When the customer is already logged in, a box with the customer\'s username and a link to logout is displayed instead of the email field. Disable this option if you do not want that box to show up.', 'multisite-ultimate'), @@ -168,6 +170,12 @@ public function get_fields() { 'v-model' => 'display_notices', ], ], + 'email_confirm_field' => [ + 'type' => 'toggle', + 'title' => __('Display Email Confirm Field', 'multisite-ultimate'), + 'desc' => __('Adds a "Confirm Email" field below email field to reduce the chance of making a mistake.', 'multisite-ultimate'), + 'value' => 1, + ], ]; } @@ -222,6 +230,22 @@ public function to_fields_array($attributes) { 'style' => $this->calculate_style_attr(), ], ]; + if ($attributes['email_confirm_field']) { + $checkout_fields['email_address_conf'] = [ + 'type' => 'text', + 'id' => 'email_address_conf', + 'name' => $attributes['email_confirm_label'], + 'placeholder' => '', + 'tooltip' => '', + 'meter' => false, + 'required' => true, + 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), + 'classes' => wu_get_isset($attributes, 'element_classes', ''), + 'wrapper_html_attr' => [ + 'style' => $this->calculate_style_attr(), + ], + ]; + } } return $checkout_fields; diff --git a/inc/checkout/signup-fields/class-signup-field-password.php b/inc/checkout/signup-fields/class-signup-field-password.php index c9f7bf13c..67f5e0d28 100644 --- a/inc/checkout/signup-fields/class-signup-field-password.php +++ b/inc/checkout/signup-fields/class-signup-field-password.php @@ -175,7 +175,7 @@ public function get_fields() { 'password_confirm_field' => [ 'type' => 'toggle', 'title' => __('Display Password Confirm Field', 'multisite-ultimate'), - 'desc' => __('Adds a "Confirm your Password" field below the default password field to reduce the chance or making a mistake.', 'multisite-ultimate'), + 'desc' => __('Adds a "Confirm your Password" field below the default password field to reduce the chance of making a mistake.', 'multisite-ultimate'), 'value' => 1, ], ]; From 14e89265188c20120e8d8dcc449a61c1596b3929 Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 16 Sep 2025 17:14:46 -0600 Subject: [PATCH 11/27] Fix rendering template selection --- .../signup-fields/class-signup-field-template-selection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/checkout/signup-fields/class-signup-field-template-selection.php b/inc/checkout/signup-fields/class-signup-field-template-selection.php index 9fadcc1e9..4aaea70ec 100644 --- a/inc/checkout/signup-fields/class-signup-field-template-selection.php +++ b/inc/checkout/signup-fields/class-signup-field-template-selection.php @@ -356,9 +356,9 @@ public function to_fields_array($attributes) { $template_class = Field_Templates_Manager::get_instance()->get_template_class('template_selection', $attributes['template_selection_template']); - $desc = function() use($template_attributes, $template_class) { + $desc = function () use ($template_attributes, $template_class) { if ($template_class) { - $template_class->render_container($template_attributes); + $template_class->render_container($template_attributes, $this); } else { esc_html_e('Template does not exist.', 'multisite-ultimate'); } From a4108af559ee7170a9f156e122901f74f960f643 Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 16 Sep 2025 17:17:45 -0600 Subject: [PATCH 12/27] Avoid kses --- .../class-signup-field-submit-button.php | 2 +- views/checkout/fields/field-html.php | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/inc/checkout/signup-fields/class-signup-field-submit-button.php b/inc/checkout/signup-fields/class-signup-field-submit-button.php index a04c099a7..f5e09875e 100644 --- a/inc/checkout/signup-fields/class-signup-field-submit-button.php +++ b/inc/checkout/signup-fields/class-signup-field-submit-button.php @@ -215,7 +215,7 @@ public function to_fields_array($attributes) { 'type' => 'html', 'wrapper_classes' => 'md:wu-w-1/2 wu-box-border wu-float-left wu--mt-4', 'id' => $attributes['id'] . '_go_back', - 'content' => sprintf('%s', esc_html($attributes['back_button_label'])), + 'content' => fn() => printf('%s', esc_html($attributes['back_button_label'])) && null, ]; $button_wrapper_classes .= ' md:wu-w-1/2 wu-box-border wu-float-left wu-text-right'; diff --git a/views/checkout/fields/field-html.php b/views/checkout/fields/field-html.php index bb2716dc2..d0e79d278 100644 --- a/views/checkout/fields/field-html.php +++ b/views/checkout/fields/field-html.php @@ -4,7 +4,7 @@ * * @since 2.0.0 */ -defined( 'ABSPATH' ) || exit; +defined('ABSPATH') || exit; ?> @@ -12,19 +12,19 @@
- $field, - ] - ); + /** + * Adds the partial title template. + * + * @since 2.0.0 + */ + wu_get_template( + 'checkout/fields/partials/field-title', + [ + 'field' => $field, + ] + ); /** * Adds the partial description template. @@ -40,12 +40,12 @@ ?>
- content, wu_kses_allowed_html()); ?> + content ? wp_kses($field->content, wu_kses_allowed_html()) : ''; ?>
Date: Tue, 16 Sep 2025 17:18:02 -0600 Subject: [PATCH 13/27] Fix checkout on with no payment method --- views/checkout/fields/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/checkout/fields/form.php b/views/checkout/fields/form.php index c3f311eb8..f64793dc9 100644 --- a/views/checkout/fields/form.php +++ b/views/checkout/fields/form.php @@ -32,6 +32,6 @@ - wrap_tag); ?>> + wrap_tag); ?>> From 8d9d742cfc010bfefc1c38f2d53ec9cf5f6bd9cd Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 16 Sep 2025 17:18:31 -0600 Subject: [PATCH 14/27] fix rendering template switcher --- inc/ui/class-template-switching-element.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/ui/class-template-switching-element.php b/inc/ui/class-template-switching-element.php index cfadbf43b..eb30d3a0d 100644 --- a/inc/ui/class-template-switching-element.php +++ b/inc/ui/class-template-switching-element.php @@ -349,9 +349,9 @@ public function output($atts, $content = null): void { $template_class = Field_Templates_Manager::get_instance()->get_template_class('template_selection', $atts['template_selection_template']); - $desc = function() use($template_attributes, $template_class) { + $desc = function () use ($template_attributes, $template_class, $reducer_class) { if ($template_class) { - $template_class->render_container($template_attributes); + $template_class->render_container($template_attributes, $reducer_class); } else { esc_html_e('Template does not exist.', 'multisite-ultimate'); } From 5c7254b5bc10bf305aae5998b3ace9a9852a7a94 Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 16 Sep 2025 17:18:44 -0600 Subject: [PATCH 15/27] Remove extra field for confirm email --- inc/managers/class-signup-fields-manager.php | 1 - 1 file changed, 1 deletion(-) diff --git a/inc/managers/class-signup-fields-manager.php b/inc/managers/class-signup-fields-manager.php index aeccdd98c..f6a5f4c5b 100644 --- a/inc/managers/class-signup-fields-manager.php +++ b/inc/managers/class-signup-fields-manager.php @@ -54,7 +54,6 @@ public function get_field_types() { 'template_selection' => \WP_Ultimo\Checkout\Signup_Fields\Signup_Field_Template_Selection::class, 'username' => \WP_Ultimo\Checkout\Signup_Fields\Signup_Field_Username::class, 'email' => \WP_Ultimo\Checkout\Signup_Fields\Signup_Field_Email::class, - 'email_confirmation' => \WP_Ultimo\Checkout\Signup_Fields\Signup_Field_Email_Confirmation::class, 'password' => \WP_Ultimo\Checkout\Signup_Fields\Signup_Field_Password::class, 'site_title' => \WP_Ultimo\Checkout\Signup_Fields\Signup_Field_Site_Title::class, 'site_url' => \WP_Ultimo\Checkout\Signup_Fields\Signup_Field_Site_Url::class, From 870af60a70123abf302703ae34d840cdb9c5b46e Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 16 Sep 2025 17:19:24 -0600 Subject: [PATCH 16/27] code styles --- inc/gateways/class-stripe-gateway.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/inc/gateways/class-stripe-gateway.php b/inc/gateways/class-stripe-gateway.php index 8843695e2..8d384674e 100644 --- a/inc/gateways/class-stripe-gateway.php +++ b/inc/gateways/class-stripe-gateway.php @@ -679,30 +679,25 @@ public function fields(): string { ob_start(); $stripe_form->render(); - - // phpcs:disable - ?>
- -
+ +
-
- -
+
+ +
- +
Date: Tue, 16 Sep 2025 17:19:29 -0600 Subject: [PATCH 17/27] code styles --- .../class-signup-field-email-confirmation.php | 332 ------------------ 1 file changed, 332 deletions(-) delete mode 100644 inc/checkout/signup-fields/class-signup-field-email-confirmation.php diff --git a/inc/checkout/signup-fields/class-signup-field-email-confirmation.php b/inc/checkout/signup-fields/class-signup-field-email-confirmation.php deleted file mode 100644 index 21b3fe0f0..000000000 --- a/inc/checkout/signup-fields/class-signup-field-email-confirmation.php +++ /dev/null @@ -1,332 +0,0 @@ - true, - 'confirmation_label' => __('Confirm Email Address', 'multisite-ultimate'), - 'confirmation_placeholder' => __('Re-enter your email address', 'multisite-ultimate'), - ]; - } - - /** - * List of keys of the default fields we want to display on the builder. - * - * @since 2.0.0 - * @return array - */ - public function default_fields() { - - return [ - 'name', - 'placeholder', - 'tooltip', - ]; - } - - /** - * If you want to force a particular attribute to a value, declare it here. - * - * @since 2.0.0 - * @return array - */ - public function force_attributes() { - - return [ - 'id' => 'email_address', - 'required' => true, - ]; - } - - /** - * Returns the list of additional fields specific to this type. - * - * @since 2.0.0 - * @return array - */ - public function get_fields() { - - return [ - 'display_notices' => [ - 'type' => 'toggle', - 'title' => __('Display Notices', 'multisite-ultimate'), - 'desc' => __('When the customer is already logged in, a box with the customer\'s username and a link to logout is displayed instead of the email fields. Disable this option if you do not want that box to show up.', 'multisite-ultimate'), - 'tooltip' => '', - 'value' => 1, - 'html_attr' => [ - 'v-model' => 'display_notices', - ], - ], - 'confirmation_label' => [ - 'type' => 'text', - 'title' => __('Confirmation Field Label', 'multisite-ultimate'), - 'placeholder' => __('e.g. Confirm Email Address', 'multisite-ultimate'), - 'desc' => __('This is the label for the email confirmation field.', 'multisite-ultimate'), - 'tooltip' => '', - 'value' => __('Confirm Email Address', 'multisite-ultimate'), - 'html_attr' => [ - 'v-model' => 'confirmation_label', - ], - ], - 'confirmation_placeholder' => [ - 'type' => 'text', - 'title' => __('Confirmation Field Placeholder', 'multisite-ultimate'), - 'placeholder' => __('e.g. Re-enter your email address', 'multisite-ultimate'), - 'desc' => __('This value appears inside the confirmation field as placeholder text.', 'multisite-ultimate'), - 'tooltip' => '', - 'value' => __('Re-enter your email address', 'multisite-ultimate'), - 'html_attr' => [ - 'v-model' => 'confirmation_placeholder', - ], - ], - ]; - } - - /** - * Returns the field/element actual field array to be used on the checkout form. - * - * @since 2.0.0 - * - * @param array $attributes Attributes saved on the editor form. - * @return array An array of fields, not the field itself. - */ - public function to_fields_array($attributes) { - - $checkout_fields = []; - - if (is_user_logged_in()) { - if ($attributes['display_notices']) { - $checkout_fields['login_note'] = [ - 'type' => 'note', - 'title' => __('Not you?', 'multisite-ultimate'), - 'desc' => [$this, 'render_not_you_customer_message'], - 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), - 'wrapper_html_attr' => [ - 'style' => $this->calculate_style_attr(), - ], - ]; - } - } else { - if ($attributes['display_notices']) { - $checkout_fields['login_note'] = [ - 'type' => 'note', - 'title' => __('Existing customer?', 'multisite-ultimate'), - 'desc' => [$this, 'render_existing_customer_message'], - 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), - 'wrapper_html_attr' => [ - 'style' => $this->calculate_style_attr(), - ], - ]; - } - - $checkout_fields['email_address'] = [ - 'type' => 'email', - 'id' => 'email_address', - 'name' => $attributes['name'], - 'placeholder' => $attributes['placeholder'], - 'tooltip' => $attributes['tooltip'], - 'value' => $this->get_value(), - 'required' => true, - 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), - 'classes' => wu_get_isset($attributes, 'element_classes', ''), - 'wrapper_html_attr' => [ - 'style' => $this->calculate_style_attr(), - ], - ]; - - $checkout_fields['email_address_confirmation'] = [ - 'type' => 'email', - 'id' => 'email_address_confirmation', - 'name' => wu_get_isset($attributes, 'confirmation_label', __('Confirm Email Address', 'multisite-ultimate')), - 'placeholder' => wu_get_isset($attributes, 'confirmation_placeholder', __('Re-enter your email address', 'multisite-ultimate')), - 'tooltip' => __('Please re-enter your email address to confirm it matches.', 'multisite-ultimate'), - 'value' => '', - 'required' => true, - 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), - 'classes' => wu_get_isset($attributes, 'element_classes', ''), - 'wrapper_html_attr' => [ - 'style' => $this->calculate_style_attr(), - ], - 'html_attr' => [ - 'data-confirm-email' => 'email_address', - ], - ]; - } - - return $checkout_fields; - } - - /** - * Renders the login message for users that are not logged in. - * - * @since 2.0.0 - * @return string - */ - public function render_existing_customer_message() { - - $login_url = wp_login_url(add_query_arg('logged', '1')); - - ob_start(); ?> - -
- - Log in to renew or change an existing membership.', 'multisite-ultimate')), esc_attr($login_url)); - - ?> - -
- - - -

- Log in using your account.', 'multisite-ultimate')), esc_html(wp_get_current_user()->display_name), esc_attr($login_url)); - - ?> -

- - Date: Tue, 16 Sep 2025 17:19:49 -0600 Subject: [PATCH 18/27] allow more attributes --- inc/functions/helper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/functions/helper.php b/inc/functions/helper.php index ebfa46ed9..1a366c08a 100644 --- a/inc/functions/helper.php +++ b/inc/functions/helper.php @@ -374,7 +374,8 @@ function wu_kses_allowed_html(): array { 'v-on:input' => true, 'v-on:change' => true, '@click' => true, - '@click.prevent' => true, + '@click.prevent' => true, + 'v-on:click.prevent' => true, '@submit' => true, '@change' => true, // Common data attributes From 1a7326b8626512dc2e66a91c519442fe8f317eaf Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 16 Sep 2025 17:35:43 -0600 Subject: [PATCH 19/27] Change text domain to 'ultimate-multisite' --- data/translatable-strings.php | 16 +- inc/admin-pages/class-addons-admin-page.php | 36 +- inc/admin-pages/class-base-admin-page.php | 2 +- .../class-base-customer-facing-admin-page.php | 16 +- .../class-broadcast-edit-admin-page.php | 64 +-- .../class-broadcast-list-admin-page.php | 72 +-- .../class-checkout-form-edit-admin-page.php | 196 +++---- .../class-checkout-form-list-admin-page.php | 36 +- .../class-customer-edit-admin-page.php | 148 +++--- .../class-customer-list-admin-page.php | 42 +- .../class-dashboard-admin-page.php | 52 +- .../class-discount-code-edit-admin-page.php | 120 ++--- .../class-discount-code-list-admin-page.php | 12 +- .../class-domain-edit-admin-page.php | 78 +-- .../class-domain-list-admin-page.php | 46 +- inc/admin-pages/class-edit-admin-page.php | 42 +- .../class-email-edit-admin-page.php | 110 ++-- .../class-email-list-admin-page.php | 52 +- ...ss-email-template-customize-admin-page.php | 132 ++--- .../class-event-list-admin-page.php | 12 +- .../class-event-view-admin-page.php | 30 +- ...-hosting-integration-wizard-admin-page.php | 14 +- ...-invoice-template-customize-admin-page.php | 60 +-- .../class-jobs-list-admin-page.php | 6 +- inc/admin-pages/class-list-admin-page.php | 4 +- .../class-membership-edit-admin-page.php | 224 ++++---- .../class-membership-list-admin-page.php | 44 +- .../class-migration-alert-admin-page.php | 6 +- .../class-payment-edit-admin-page.php | 208 ++++---- .../class-payment-list-admin-page.php | 38 +- .../class-placeholders-admin-page.php | 16 +- .../class-product-edit-admin-page.php | 254 ++++----- .../class-product-list-admin-page.php | 12 +- inc/admin-pages/class-settings-admin-page.php | 68 +-- .../class-setup-wizard-admin-page.php | 86 +-- .../class-shortcodes-admin-page.php | 14 +- .../class-site-edit-admin-page.php | 128 ++--- .../class-site-list-admin-page.php | 72 +-- .../class-system-info-admin-page.php | 38 +- .../class-tax-rates-admin-page.php | 26 +- ...emplate-previewer-customize-admin-page.php | 58 +- inc/admin-pages/class-top-admin-nav-menu.php | 38 +- .../class-view-logs-admin-page.php | 52 +- .../class-webhook-edit-admin-page.php | 70 +-- .../class-webhook-list-admin-page.php | 36 +- inc/admin-pages/class-wizard-admin-page.php | 18 +- .../class-account-admin-page.php | 8 +- .../class-add-new-site-admin-page.php | 6 +- .../class-checkout-admin-page.php | 6 +- .../class-my-sites-admin-page.php | 6 +- .../class-template-switching-admin-page.php | 6 +- .../debug/class-debug-admin-page.php | 8 +- inc/api/class-register-endpoint.php | 78 +-- inc/api/schemas/broadcast-create.php | 26 +- inc/api/schemas/broadcast-update.php | 26 +- inc/api/schemas/checkout-form-create.php | 26 +- inc/api/schemas/checkout-form-update.php | 26 +- inc/api/schemas/customer-create.php | 28 +- inc/api/schemas/customer-update.php | 28 +- inc/api/schemas/discount-code-create.php | 38 +- inc/api/schemas/discount-code-update.php | 38 +- inc/api/schemas/domain-create.php | 20 +- inc/api/schemas/domain-update.php | 20 +- inc/api/schemas/email-create.php | 44 +- inc/api/schemas/email-update.php | 44 +- inc/api/schemas/event-create.php | 20 +- inc/api/schemas/event-update.php | 20 +- inc/api/schemas/membership-create.php | 60 +-- inc/api/schemas/membership-update.php | 60 +-- inc/api/schemas/payment-create.php | 40 +- inc/api/schemas/payment-update.php | 40 +- inc/api/schemas/product-create.php | 62 +-- inc/api/schemas/product-update.php | 62 +-- inc/api/schemas/site-create.php | 54 +- inc/api/schemas/site-update.php | 54 +- inc/api/schemas/webhook-create.php | 24 +- inc/api/schemas/webhook-update.php | 24 +- inc/api/trait-rest-api.php | 12 +- inc/api/trait-wp-cli.php | 12 +- inc/checkout/class-cart.php | 54 +- inc/checkout/class-checkout-pages.php | 22 +- inc/checkout/class-checkout.php | 32 +- inc/checkout/class-legacy-checkout.php | 68 +-- inc/checkout/class-line-item.php | 2 +- .../signup-fields/class-base-signup-field.php | 64 +-- .../class-signup-field-billing-address.php | 10 +- .../class-signup-field-checkbox.php | 10 +- .../class-signup-field-color.php | 10 +- .../class-signup-field-discount-code.php | 8 +- .../class-signup-field-email.php | 24 +- .../class-signup-field-hidden.php | 12 +- .../class-signup-field-order-bump.php | 28 +- .../class-signup-field-order-summary.php | 22 +- .../class-signup-field-password.php | 16 +- .../class-signup-field-payment.php | 8 +- .../class-signup-field-period-selection.php | 38 +- .../class-signup-field-pricing-table.php | 32 +- .../class-signup-field-products.php | 14 +- .../class-signup-field-select.php | 24 +- .../class-signup-field-shortcode.php | 14 +- .../class-signup-field-site-title.php | 10 +- .../class-signup-field-site-url.php | 32 +- .../class-signup-field-steps.php | 14 +- .../class-signup-field-submit-button.php | 20 +- .../class-signup-field-template-selection.php | 44 +- .../class-signup-field-terms-of-use.php | 22 +- .../signup-fields/class-signup-field-text.php | 6 +- .../class-signup-field-username.php | 10 +- .../class-base-field-template.php | 4 +- ...class-simple-order-bump-field-template.php | 4 +- ...ass-clean-order-summary-field-template.php | 4 +- ...-clean-period-selection-field-template.php | 4 +- ...legacy-period-selection-field-template.php | 4 +- ...ss-legacy-pricing-table-field-template.php | 4 +- ...lass-list-pricing-table-field-template.php | 4 +- .../class-clean-steps-field-template.php | 4 +- .../class-legacy-steps-field-template.php | 4 +- .../class-minimal-steps-field-template.php | 4 +- ...lean-template-selection-field-template.php | 4 +- ...gacy-template-selection-field-template.php | 4 +- ...imal-template-selection-field-template.php | 4 +- inc/class-addon-repository.php | 8 +- inc/class-api.php | 38 +- inc/class-dashboard-widgets.php | 40 +- inc/class-domain-mapping.php | 2 +- inc/class-hooks.php | 4 +- inc/class-logger.php | 2 +- inc/class-maintenance-mode.php | 18 +- inc/class-newsletter.php | 4 +- inc/class-orphaned-tables-manager.php | 24 +- inc/class-orphaned-users-manager.php | 28 +- inc/class-requirements.php | 6 +- inc/class-scripts.php | 38 +- inc/class-settings.php | 382 ++++++------- inc/class-sunrise.php | 4 +- inc/class-user-switching.php | 4 +- inc/class-whitelabel.php | 34 +- inc/compat/class-edit-users-compat.php | 8 +- inc/compat/class-general-compat.php | 2 +- inc/compat/class-gutenberg-support.php | 2 +- inc/compat/class-legacy-shortcodes.php | 18 +- inc/compat/class-login-wp-compat.php | 2 +- inc/compat/class-multiple-accounts-compat.php | 14 +- inc/country/class-country-br.php | 56 +- inc/country/class-country-ca.php | 28 +- inc/country/class-country-cn.php | 70 +-- inc/country/class-country-de.php | 34 +- inc/country/class-country-es.php | 58 +- inc/country/class-country-fr.php | 248 ++++----- inc/country/class-country-gb.php | 496 ++++++++--------- inc/country/class-country-in.php | 74 +-- inc/country/class-country-jp.php | 96 ++-- inc/country/class-country-mx.php | 66 +-- inc/country/class-country-my.php | 34 +- inc/country/class-country-ne.php | 16 +- inc/country/class-country-nl.php | 32 +- inc/country/class-country-ru.php | 170 +++--- inc/country/class-country-sg.php | 12 +- inc/country/class-country-tr.php | 164 +++--- inc/country/class-country-us.php | 134 ++--- inc/country/class-country-za.php | 20 +- inc/country/class-country.php | 30 +- inc/database/domains/class-domain-stage.php | 10 +- .../memberships/class-membership-status.php | 12 +- .../payments/class-payment-status.php | 14 +- inc/database/products/class-product-type.php | 6 +- inc/database/sites/class-site-type.php | 10 +- inc/debug/class-debug.php | 70 +-- inc/deprecated/deprecated.php | 4 +- .../query-monitor/panel/class-overview.php | 4 +- inc/domain-mapping/class-helper.php | 2 +- inc/functions/admin.php | 8 +- inc/functions/countries.php | 502 +++++++++--------- inc/functions/currency.php | 274 +++++----- inc/functions/customer.php | 6 +- inc/functions/date.php | 10 +- inc/functions/gateway.php | 2 +- inc/functions/limitations.php | 4 +- inc/functions/markup-helpers.php | 2 +- inc/functions/membership.php | 12 +- inc/functions/mock.php | 8 +- inc/functions/settings.php | 2 +- inc/functions/sunrise.php | 4 +- inc/functions/user.php | 2 +- inc/gateways/class-base-gateway.php | 8 +- inc/gateways/class-base-stripe-gateway.php | 54 +- inc/gateways/class-manual-gateway.php | 18 +- inc/gateways/class-paypal-gateway.php | 112 ++-- .../class-stripe-checkout-gateway.php | 48 +- inc/gateways/class-stripe-gateway.php | 56 +- inc/helpers/class-screenshot.php | 6 +- inc/helpers/class-site-duplicator.php | 18 +- inc/helpers/class-validator.php | 18 +- inc/helpers/class-woocommerce-api-client.php | 4 +- inc/helpers/class-wp-config.php | 6 +- .../validation-rules/class-checkout-steps.php | 4 +- .../class-price-variations.php | 2 +- .../validation-rules/class-products.php | 2 +- .../validation-rules/class-site-template.php | 8 +- inc/helpers/validation-rules/class-unique.php | 2 +- inc/installers/class-core-installer.php | 24 +- .../class-default-content-installer.php | 72 +-- inc/installers/class-migrator.php | 92 ++-- .../class-base-host-provider.php | 24 +- .../class-closte-host-provider.php | 168 +++++- .../class-cloudflare-host-provider.php | 20 +- .../class-cloudways-host-provider.php | 34 +- .../class-cpanel-host-provider.php | 28 +- .../class-gridpane-host-provider.php | 8 +- .../class-runcloud-host-provider.php | 28 +- .../class-serverpilot-host-provider.php | 22 +- .../class-wpengine-host-provider.php | 4 +- .../class-wpmudev-host-provider.php | 8 +- .../cpanel-api/class-cpanel-api.php | 4 +- inc/internal/class-memory-trap.php | 2 +- inc/invoices/class-invoice.php | 4 +- .../class-customer-user-role-limits.php | 4 +- inc/limits/class-plugin-limits.php | 12 +- inc/limits/class-post-type-limits.php | 12 +- inc/limits/class-theme-limits.php | 6 +- inc/list-tables/class-base-list-table.php | 62 +-- .../class-broadcast-list-table.php | 68 +-- .../class-checkout-form-list-table.php | 28 +- inc/list-tables/class-customer-list-table.php | 44 +- .../class-customers-membership-list-table.php | 16 +- .../class-customers-payment-list-table.php | 6 +- .../class-customers-site-list-table.php | 12 +- .../class-discount-code-list-table.php | 38 +- inc/list-tables/class-domain-list-table.php | 48 +- inc/list-tables/class-email-list-table.php | 48 +- inc/list-tables/class-event-list-table.php | 40 +- .../class-inside-events-list-table.php | 8 +- .../class-line-item-list-table.php | 26 +- .../class-membership-line-item-list-table.php | 18 +- .../class-membership-list-table-widget.php | 26 +- .../class-membership-list-table.php | 62 +-- .../class-memberships-site-list-table.php | 12 +- .../class-payment-line-item-list-table.php | 22 +- .../class-payment-list-table-widget.php | 18 +- inc/list-tables/class-payment-list-table.php | 64 +-- inc/list-tables/class-product-list-table.php | 48 +- .../class-site-customer-list-table.php | 10 +- inc/list-tables/class-site-list-table.php | 64 +-- .../class-sites-domain-list-table.php | 6 +- inc/list-tables/class-webhook-list-table.php | 32 +- .../class-invoice-list-table.php | 8 +- .../class-product-list-table.php | 2 +- .../customer-panel/class-site-list-table.php | 4 +- inc/managers/class-block-manager.php | 2 +- inc/managers/class-broadcast-manager.php | 4 +- inc/managers/class-customer-manager.php | 20 +- inc/managers/class-domain-manager.php | 106 ++-- inc/managers/class-email-manager.php | 50 +- inc/managers/class-event-manager.php | 32 +- .../class-field-templates-manager.php | 2 +- inc/managers/class-form-manager.php | 20 +- inc/managers/class-gateway-manager.php | 30 +- inc/managers/class-limitation-manager.php | 128 ++--- inc/managers/class-membership-manager.php | 18 +- inc/managers/class-notes-manager.php | 38 +- inc/managers/class-notification-manager.php | 4 +- inc/managers/class-payment-manager.php | 16 +- inc/managers/class-site-manager.php | 26 +- inc/managers/class-visits-manager.php | 2 +- inc/managers/class-webhook-manager.php | 2 +- inc/models/class-base-model.php | 10 +- inc/models/class-checkout-form.php | 116 ++-- inc/models/class-customer.php | 6 +- inc/models/class-discount-code.php | 16 +- inc/models/class-domain.php | 2 +- inc/models/class-event.php | 18 +- inc/models/class-membership.php | 20 +- inc/models/class-payment.php | 12 +- inc/models/class-product.php | 20 +- inc/models/class-site.php | 2 +- inc/objects/class-billing-address.php | 32 +- inc/objects/class-note.php | 6 +- .../class-template-placeholders.php | 6 +- inc/sso/class-sso.php | 2 +- inc/tax/class-dashboard-taxes-tab.php | 20 +- inc/tax/class-tax.php | 40 +- .../trait-wp-ultimo-coupon-deprecated.php | 6 +- .../trait-wp-ultimo-plan-deprecated.php | 26 +- .../trait-wp-ultimo-settings-deprecated.php | 6 +- .../trait-wp-ultimo-site-deprecated.php | 2 +- ...rait-wp-ultimo-subscription-deprecated.php | 2 +- inc/ui/class-account-summary-element.php | 20 +- inc/ui/class-base-element.php | 28 +- inc/ui/class-billing-info-element.php | 28 +- inc/ui/class-checkout-element.php | 58 +- inc/ui/class-current-membership-element.php | 54 +- inc/ui/class-current-site-element.php | 62 +-- inc/ui/class-domain-mapping-element.php | 64 +-- inc/ui/class-field.php | 2 +- inc/ui/class-invoices-element.php | 24 +- inc/ui/class-jumper.php | 56 +- inc/ui/class-limits-element.php | 24 +- inc/ui/class-login-form-element.php | 98 ++-- inc/ui/class-my-sites-element.php | 44 +- inc/ui/class-payment-methods-element.php | 20 +- inc/ui/class-simple-text-element.php | 20 +- inc/ui/class-site-actions-element.php | 156 +++--- inc/ui/class-site-maintenance-element.php | 26 +- inc/ui/class-template-previewer.php | 4 +- inc/ui/class-template-switching-element.php | 26 +- inc/ui/class-thank-you-element.php | 56 +- inc/ui/class-tours.php | 4 +- multisite-ultimate.php | 2 +- views/admin-pages/fields/field-dashicon.php | 2 +- views/admin-pages/fields/field-image.php | 6 +- views/admin-pages/fields/field-repeater.php | 2 +- .../admin-pages/fields/field-text-display.php | 6 +- views/admin-pages/fields/field-text-edit.php | 10 +- views/admin-pages/fields/field-text.php | 2 +- views/base/addons.php | 46 +- views/base/addons/details.php | 26 +- views/base/centered.php | 2 +- views/base/checkout-forms/js-templates.php | 28 +- views/base/checkout-forms/steps.php | 56 +- views/base/customers/grid-item.php | 28 +- views/base/edit/display-notes.php | 6 +- views/base/edit/editor-customizer.php | 4 +- views/base/edit/widget-list-table.php | 2 +- views/base/edit/widget-tabs.php | 8 +- views/base/filter.php | 46 +- views/base/products/grid-item.php | 4 +- views/base/responsive-table-row.php | 2 +- views/base/settings.php | 6 +- views/base/sites/grid-item.php | 12 +- views/base/wizard/submit-box.php | 4 +- views/broadcast/widget-targets.php | 2 +- views/checkout/fields/field-password.php | 2 +- .../checkout/partials/pricing-table-list.php | 4 +- views/checkout/paypal/confirm.php | 32 +- views/checkout/register.php | 2 +- .../checkout/templates/order-bump/simple.php | 4 +- .../templates/order-summary/simple.php | 36 +- .../templates/pricing-table/legacy.php | 20 +- views/checkout/templates/steps/clean.php | 4 +- views/checkout/templates/steps/minimal.php | 4 +- .../templates/template-selection/clean.php | 10 +- .../templates/template-selection/legacy.php | 20 +- .../templates/template-selection/minimal.php | 8 +- views/customers/widget-avatar.php | 12 +- views/dashboard-statistics/filter.php | 2 +- .../dashboard-statistics/widget-countries.php | 12 +- views/dashboard-statistics/widget-forms.php | 12 +- .../widget-most-visited-sites.php | 20 +- .../widget-mrr-growth.php | 2 +- .../widget-new-accounts.php | 8 +- views/dashboard-statistics/widget-revenue.php | 14 +- .../widget-tax-by-code.php | 18 +- .../widget-tax-by-day.php | 22 +- .../dashboard-statistics/widget-tax-graph.php | 2 +- views/dashboard-statistics/widget-taxes.php | 2 +- views/dashboard-widgets/account-summary.php | 18 +- views/dashboard-widgets/activity-stream.php | 14 +- views/dashboard-widgets/billing-info.php | 12 +- .../current-membership-product-details.php | 4 +- .../dashboard-widgets/current-membership.php | 28 +- views/dashboard-widgets/current-site.php | 8 +- views/dashboard-widgets/domain-mapping.php | 16 +- views/dashboard-widgets/first-steps.php | 8 +- views/dashboard-widgets/invoices.php | 6 +- views/dashboard-widgets/limits-and-quotas.php | 8 +- views/dashboard-widgets/login-form.php | 6 +- views/dashboard-widgets/my-sites.php | 14 +- views/dashboard-widgets/site-actions.php | 4 +- views/dashboard-widgets/summary.php | 8 +- views/dashboard-widgets/thank-you.php | 42 +- views/domain/dns-table.php | 12 +- views/domain/log.php | 4 +- views/email/widget-placeholders.php | 8 +- views/emails/admin/domain-created.php | 56 +- views/emails/admin/payment-received.php | 64 +-- views/emails/admin/site-published.php | 52 +- .../emails/customer/confirm-email-address.php | 10 +- views/emails/customer/payment-received.php | 24 +- .../customer/renewal-payment-created.php | 18 +- views/emails/customer/site-published.php | 16 +- views/events/widget-initiator.php | 6 +- views/events/widget-message.php | 2 +- views/events/widget-payload.php | 2 +- views/invoice/template.php | 24 +- .../pricing-table/frequency-selector.php | 6 +- .../legacy/signup/pricing-table/no-plans.php | 2 +- views/legacy/signup/pricing-table/plan.php | 18 +- views/legacy/signup/signup-main.php | 4 +- views/legacy/signup/signup-nav-links.php | 4 +- .../legacy/signup/signup-steps-navigation.php | 2 +- .../signup/steps/step-domain-url-preview.php | 4 +- views/limitations/plugin-selector.php | 26 +- views/limitations/site-template-selector.php | 10 +- views/limitations/theme-selector.php | 20 +- views/memberships/product-list.php | 4 +- views/payments/line-item-actions.php | 4 +- views/payments/tax-details.php | 4 +- views/settings/fields/field-image.php | 2 +- .../settings/fields/field-multi_checkbox.php | 2 +- views/shortcodes/shortcodes.php | 14 +- views/sites/edit-placeholders.php | 24 +- views/system-info/system-info-table.php | 2 +- views/system-info/system-info.php | 6 +- views/taxes/list.php | 44 +- views/ui/branding/footer.php | 10 +- views/ui/branding/header.php | 2 +- views/ui/container-toggle.php | 10 +- views/ui/jumper-trigger.php | 4 +- views/ui/jumper.php | 36 +- views/ui/selectize-templates.php | 10 +- views/ui/template-previewer.php | 16 +- views/ui/toolbox.php | 14 +- .../wizards/host-integrations/activation.php | 14 +- .../cloudflare-instructions.php | 34 +- .../configuration-results.php | 14 +- .../host-integrations/configuration.php | 10 +- .../gridpane-instructions.php | 10 +- views/wizards/host-integrations/ready.php | 6 +- .../runcloud-instructions.php | 26 +- views/wizards/host-integrations/test.php | 24 +- views/wizards/setup/alert.php | 8 +- views/wizards/setup/installation_steps.php | 6 +- views/wizards/setup/ready.php | 12 +- views/wizards/setup/requirements_table.php | 28 +- views/wizards/setup/support_terms.php | 16 +- 425 files changed, 6701 insertions(+), 6555 deletions(-) diff --git a/data/translatable-strings.php b/data/translatable-strings.php index e41f12253..373d5bc29 100644 --- a/data/translatable-strings.php +++ b/data/translatable-strings.php @@ -10,12 +10,12 @@ defined('ABSPATH') || exit; return [ - 'day' => __('day', 'multisite-ultimate'), - 'days' => __('days', 'multisite-ultimate'), - 'week' => __('week', 'multisite-ultimate'), - 'weeks' => __('weeks', 'multisite-ultimate'), - 'month' => __('month', 'multisite-ultimate'), - 'months' => __('months', 'multisite-ultimate'), - 'year' => __('year', 'multisite-ultimate'), - 'years' => __('years', 'multisite-ultimate'), + 'day' => __('day', 'ultimate-multisite'), + 'days' => __('days', 'ultimate-multisite'), + 'week' => __('week', 'ultimate-multisite'), + 'weeks' => __('weeks', 'ultimate-multisite'), + 'month' => __('month', 'ultimate-multisite'), + 'months' => __('months', 'ultimate-multisite'), + 'year' => __('year', 'ultimate-multisite'), + 'years' => __('years', 'ultimate-multisite'), ]; diff --git a/inc/admin-pages/class-addons-admin-page.php b/inc/admin-pages/class-addons-admin-page.php index ce599b4db..39ed115ba 100644 --- a/inc/admin-pages/class-addons-admin-page.php +++ b/inc/admin-pages/class-addons-admin-page.php @@ -184,7 +184,7 @@ public function display_more_info() { public function install_addon() { if (! current_user_can('manage_network_plugins')) { - $error = new \WP_Error('error', __('You do not have enough permissions to perform this task.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('You do not have enough permissions to perform this task.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -197,7 +197,7 @@ public function install_addon() { if (! $download_url) { // translators: %s slug of the addon. - wp_send_json_error(sprintf(__('Unable to download update addon. User does not have permission to install %s', 'multisite-ultimate'), $addon_slug), 400); + wp_send_json_error(sprintf(__('Unable to download update addon. User does not have permission to install %s', 'ultimate-multisite'), $addon_slug), 400); } /** @@ -206,7 +206,7 @@ public function install_addon() { $allowed = strncmp($download_url, MULTISITE_ULTIMATE_UPDATE_URL, strlen(MULTISITE_ULTIMATE_UPDATE_URL)) === 0; if (! $allowed) { - $error = new \WP_Error('insecure-url', __('You are trying to download an add-on from an insecure URL', 'multisite-ultimate')); + $error = new \WP_Error('insecure-url', __('You are trying to download an add-on from an insecure URL', 'ultimate-multisite')); wp_send_json_error($error); } @@ -267,7 +267,7 @@ public function register_scripts() { 'search' => wu_request('s', ''), 'category' => wu_request('tab', 'all'), 'i18n' => array( - 'all' => __('All Add-ons', 'multisite-ultimate'), + 'all' => __('All Add-ons', 'ultimate-multisite'), ), ) ); @@ -311,7 +311,7 @@ protected function get_addons_list() { if (is_wp_error($data) || empty($data)) { // translators: %s error message. - wu_log_add('api-calls', sprintf(__('Failed to fetch addons from API: %s', 'multisite-ultimate'), $data ? $data->get_error_message() : __('no addons returned', 'multisite-ultimate'))); + wu_log_add('api-calls', sprintf(__('Failed to fetch addons from API: %s', 'ultimate-multisite'), $data ? $data->get_error_message() : __('no addons returned', 'ultimate-multisite'))); return array(); } @@ -349,7 +349,7 @@ public function serve_addons_list() { */ public function get_title() { - return __('Add-ons', 'multisite-ultimate'); + return __('Add-ons', 'ultimate-multisite'); } /** @@ -360,7 +360,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Add-ons', 'multisite-ultimate'); + return __('Add-ons', 'ultimate-multisite'); } /** @@ -447,47 +447,47 @@ public function get_sections() { return array( 'all' => array( - 'title' => __('All Add-ons', 'multisite-ultimate'), + 'title' => __('All Add-ons', 'ultimate-multisite'), 'icon' => 'dashicons-wu-grid', ), 'premium' => array( - 'title' => __('Premium', 'multisite-ultimate'), + 'title' => __('Premium', 'ultimate-multisite'), 'icon' => 'dashicons-wu-rocket', ), 'free' => array( - 'title' => __('Free', 'multisite-ultimate'), + 'title' => __('Free', 'ultimate-multisite'), 'icon' => 'dashicons-wu-pin', ), 'gateways' => array( - 'title' => __('Gateways', 'multisite-ultimate'), + 'title' => __('Gateways', 'ultimate-multisite'), 'icon' => 'dashicons-wu-credit-card', ), 'growth' => array( - 'title' => __('Growth & Scaling', 'multisite-ultimate'), + 'title' => __('Growth & Scaling', 'ultimate-multisite'), 'icon' => 'dashicons-wu-line-graph', ), 'integrations' => array( - 'title' => __('Integrations', 'multisite-ultimate'), + 'title' => __('Integrations', 'ultimate-multisite'), 'icon' => 'dashicons-wu-power-plug', ), 'customization' => array( - 'title' => __('Customization', 'multisite-ultimate'), + 'title' => __('Customization', 'ultimate-multisite'), 'icon' => 'dashicons-wu-edit', ), 'admin-theme' => array( - 'title' => __('Admin Themes', 'multisite-ultimate'), + 'title' => __('Admin Themes', 'ultimate-multisite'), 'icon' => 'dashicons-wu-palette', ), 'monetization' => array( - 'title' => __('Monetization', 'multisite-ultimate'), + 'title' => __('Monetization', 'ultimate-multisite'), 'icon' => 'dashicons-wu-credit', ), 'migrators' => array( - 'title' => __('Migrators', 'multisite-ultimate'), + 'title' => __('Migrators', 'ultimate-multisite'), 'icon' => 'dashicons-wu-publish', ), 'marketplace' => array( - 'title' => __('Marketplace', 'multisite-ultimate'), + 'title' => __('Marketplace', 'ultimate-multisite'), 'icon' => 'dashicons-wu-shop', ), ); diff --git a/inc/admin-pages/class-base-admin-page.php b/inc/admin-pages/class-base-admin-page.php index 5cb9f17eb..9bfd5c412 100644 --- a/inc/admin-pages/class-base-admin-page.php +++ b/inc/admin-pages/class-base-admin-page.php @@ -626,7 +626,7 @@ public function get_title_links() { if (wu_get_documentation_url($this->get_id(), false)) { $this->action_links[] = [ 'url' => wu_get_documentation_url($this->get_id()), - 'label' => __('Documentation', 'multisite-ultimate'), + 'label' => __('Documentation', 'ultimate-multisite'), 'icon' => 'wu-open-book', ]; } diff --git a/inc/admin-pages/class-base-customer-facing-admin-page.php b/inc/admin-pages/class-base-customer-facing-admin-page.php index d011117f3..d455fd4b3 100644 --- a/inc/admin-pages/class-base-customer-facing-admin-page.php +++ b/inc/admin-pages/class-base-customer-facing-admin-page.php @@ -122,7 +122,7 @@ public function render_edit_page(): void { $fields['title'] = [ 'type' => 'text', - 'title' => __('Page & Menu Title', 'multisite-ultimate'), + 'title' => __('Page & Menu Title', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'title', ''), 'tooltip' => '', ]; @@ -130,14 +130,14 @@ public function render_edit_page(): void { if ($this->menu_settings) { $fields['position'] = [ 'type' => 'number', - 'title' => __('Menu', 'multisite-ultimate'), + 'title' => __('Menu', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'position', ''), 'tooltip' => '', ]; $fields['menu_icon'] = [ 'type' => 'dashicon', - 'title' => __('Menu Icon', 'multisite-ultimate'), + 'title' => __('Menu Icon', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'menu_icon', ''), 'tooltip' => '', ]; @@ -150,14 +150,14 @@ public function render_edit_page(): void { 'fields' => [ 'reset' => [ 'type' => 'submit', - 'title' => __('Reset Settings', 'multisite-ultimate'), + 'title' => __('Reset Settings', 'ultimate-multisite'), 'value' => 'edit', 'classes' => 'button', 'wrapper_classes' => 'wu-mb-0', ], 'submit' => [ 'type' => 'submit', - 'title' => __('Save Changes', 'multisite-ultimate'), + 'title' => __('Save Changes', 'ultimate-multisite'), 'value' => 'edit', 'classes' => 'button button-primary', 'wrapper_classes' => 'wu-mb-0', @@ -376,9 +376,9 @@ public function register_additional_scripts(): void { 'customize_link' => add_query_arg('customize', 1), 'close_link' => remove_query_arg('customize'), 'i18n' => [ - 'page_customize_label' => __('Customize Page', 'multisite-ultimate'), - 'customize_label' => __('Customize Elements', 'multisite-ultimate'), - 'close_label' => __('Exit Customize Mode', 'multisite-ultimate'), + 'page_customize_label' => __('Customize Page', 'ultimate-multisite'), + 'customize_label' => __('Customize Elements', 'ultimate-multisite'), + 'close_label' => __('Exit Customize Mode', 'ultimate-multisite'), ], ] ); diff --git a/inc/admin-pages/class-broadcast-edit-admin-page.php b/inc/admin-pages/class-broadcast-edit-admin-page.php index c915dadd3..715b8a880 100644 --- a/inc/admin-pages/class-broadcast-edit-admin-page.php +++ b/inc/admin-pages/class-broadcast-edit-admin-page.php @@ -93,7 +93,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -113,12 +113,12 @@ public function register_widgets(): void { 'fields' => [ 'type' => [ 'type' => 'select', - 'title' => __('Broadcast Type', 'multisite-ultimate'), - 'placeholder' => __('Type', 'multisite-ultimate'), - 'desc' => __('Broadcast type cannot be edited.', 'multisite-ultimate'), + 'title' => __('Broadcast Type', 'ultimate-multisite'), + 'placeholder' => __('Type', 'ultimate-multisite'), + 'desc' => __('Broadcast type cannot be edited.', 'ultimate-multisite'), 'options' => [ - 'broadcast_email' => __('Email', 'multisite-ultimate'), - 'broadcast_notice' => __('Admin Notice', 'multisite-ultimate'), + 'broadcast_email' => __('Email', 'ultimate-multisite'), + 'broadcast_notice' => __('Admin Notice', 'ultimate-multisite'), ], 'value' => $this->get_object()->get_type(), 'tooltip' => '', @@ -129,14 +129,14 @@ public function register_widgets(): void { ], 'notice_type' => [ 'type' => 'select', - 'title' => __('Broadcast Status', 'multisite-ultimate'), - 'placeholder' => __('Status', 'multisite-ultimate'), - 'desc' => __('This option determines the color of the admin notice.', 'multisite-ultimate'), + 'title' => __('Broadcast Status', 'ultimate-multisite'), + 'placeholder' => __('Status', 'ultimate-multisite'), + 'desc' => __('This option determines the color of the admin notice.', 'ultimate-multisite'), 'options' => [ - 'info' => __('Info (blue)', 'multisite-ultimate'), - 'success' => __('Success (green)', 'multisite-ultimate'), - 'warning' => __('Warning (yellow)', 'multisite-ultimate'), - 'error' => __('Error (red)', 'multisite-ultimate'), + 'info' => __('Info (blue)', 'ultimate-multisite'), + 'success' => __('Success (green)', 'ultimate-multisite'), + 'warning' => __('Warning (yellow)', 'ultimate-multisite'), + 'error' => __('Error (red)', 'ultimate-multisite'), ], 'value' => $this->get_object()->get_notice_type(), 'tooltip' => '', @@ -149,9 +149,9 @@ public function register_widgets(): void { ] ); - add_meta_box('wp-ultimo-broadcast-customer-targets', __('Customer Targets', 'multisite-ultimate'), [$this, 'output_default_widget_customer_targets'], get_current_screen()->id, 'side'); + add_meta_box('wp-ultimo-broadcast-customer-targets', __('Customer Targets', 'ultimate-multisite'), [$this, 'output_default_widget_customer_targets'], get_current_screen()->id, 'side'); - add_meta_box('wp-ultimo-broadcast-product-targets', __('Product Targets', 'multisite-ultimate'), [$this, 'output_default_widget_product_targets'], get_current_screen()->id, 'side'); + add_meta_box('wp-ultimo-broadcast-product-targets', __('Product Targets', 'ultimate-multisite'), [$this, 'output_default_widget_product_targets'], get_current_screen()->id, 'side'); } /** @@ -192,7 +192,7 @@ public function output_default_widget_customer_targets(): void {
%s
", - esc_html__('No customer found', 'multisite-ultimate') + esc_html__('No customer found', 'ultimate-multisite') ); break; @@ -279,9 +279,9 @@ public function output_default_widget_customer_targets(): void { %s %s ', esc_attr(wu_get_form_url('view_broadcast_targets', $modal_atts)), - esc_attr__('Targets', 'multisite-ultimate'), + esc_attr__('Targets', 'ultimate-multisite'), esc_html($targets_count), - esc_html__('Targets', 'multisite-ultimate') + esc_html__('Targets', 'ultimate-multisite') ); } else { $count = $targets_count - 6; @@ -299,9 +299,9 @@ public function output_default_widget_customer_targets(): void { %s %s ', esc_attr(wu_get_form_url('view_broadcast_targets', $modal_atts)), - esc_attr__('Targets', 'multisite-ultimate'), + esc_attr__('Targets', 'ultimate-multisite'), esc_html($targets_count), - esc_html__('Targets', 'multisite-ultimate') + esc_html__('Targets', 'ultimate-multisite') ); } @@ -352,7 +352,7 @@ public function output_default_widget_product_targets(): void { } // translators: %s is the number of customers. - $description = sprintf(__('%s customer(s) targeted.', 'multisite-ultimate'), $customer_count); + $description = sprintf(__('%s customer(s) targeted.', 'ultimate-multisite'), $customer_count); $product_targets[ $key ] = [ 'link' => $link, @@ -367,7 +367,7 @@ public function output_default_widget_product_targets(): void { $args = [ 'targets' => $product_targets, - 'loading_text' => __('Loading...', 'multisite-ultimate'), + 'loading_text' => __('Loading...', 'ultimate-multisite'), 'wrapper_class' => 'wu-bg-gray-100 wu--mt-3 wu--mb-6 wu--mx-3', 'modal_class' => 'wubox', ]; @@ -383,7 +383,7 @@ public function output_default_widget_product_targets(): void { */ public function get_title() { - return $this->edit ? __('Edit Broadcast', 'multisite-ultimate') : __('Add new Broadcast', 'multisite-ultimate'); + return $this->edit ? __('Edit Broadcast', 'ultimate-multisite') : __('Add new Broadcast', 'ultimate-multisite'); } /** @@ -394,7 +394,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Broadcast', 'multisite-ultimate'); + return __('Edit Broadcast', 'ultimate-multisite'); } /** @@ -417,15 +417,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Broadcast', 'multisite-ultimate'), - 'add_new_label' => __('Add new Broadcast', 'multisite-ultimate'), - 'updated_message' => __('Broadcast updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Broadcast Title', 'multisite-ultimate'), - 'title_description' => __('This title is used on the message itself, and in the case of a broadcast email, it will be used as the subject.', 'multisite-ultimate'), - 'save_button_label' => __('Save Broadcast', 'multisite-ultimate'), + 'edit_label' => __('Edit Broadcast', 'ultimate-multisite'), + 'add_new_label' => __('Add new Broadcast', 'ultimate-multisite'), + 'updated_message' => __('Broadcast updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Broadcast Title', 'ultimate-multisite'), + 'title_description' => __('This title is used on the message itself, and in the case of a broadcast email, it will be used as the subject.', 'ultimate-multisite'), + 'save_button_label' => __('Save Broadcast', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Broadcast', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Broadcast', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-broadcast-list-admin-page.php b/inc/admin-pages/class-broadcast-list-admin-page.php index 3fb2044b4..f522c4e3a 100644 --- a/inc/admin-pages/class-broadcast-list-admin-page.php +++ b/inc/admin-pages/class-broadcast-list-admin-page.php @@ -176,7 +176,7 @@ public function display_targets_modal(): void { } // translators: %s is the number of customers. - $description = sprintf(__('%s customer(s) targeted.', 'multisite-ultimate'), $customer_count); + $description = sprintf(__('%s customer(s) targeted.', 'ultimate-multisite'), $customer_count); $display_targets[ $key ] = [ 'link' => $link, @@ -267,8 +267,8 @@ public function render_add_new_broadcast_modal(): void { $fields = [ 'type' => [ 'type' => 'select-icon', - 'title' => __('Broadcast Type', 'multisite-ultimate'), - 'desc' => __('Select the type of message you want to send.', 'multisite-ultimate'), + 'title' => __('Broadcast Type', 'ultimate-multisite'), + 'desc' => __('Select the type of message you want to send.', 'ultimate-multisite'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -281,29 +281,29 @@ public function render_add_new_broadcast_modal(): void { ], 'options' => [ 'broadcast_notice' => [ - 'title' => __('Message', 'multisite-ultimate'), - 'tooltip' => __('Display a message on your customers\' dashboard.', 'multisite-ultimate'), + 'title' => __('Message', 'ultimate-multisite'), + 'tooltip' => __('Display a message on your customers\' dashboard.', 'ultimate-multisite'), 'icon' => 'dashicons-before dashicons-excerpt-view', ], 'broadcast_email' => [ - 'title' => __('Email', 'multisite-ultimate'), - 'tooltip' => __('Send an email to your customers.', 'multisite-ultimate'), + 'title' => __('Email', 'ultimate-multisite'), + 'tooltip' => __('Send an email to your customers.', 'ultimate-multisite'), 'icon' => 'dashicons-before dashicons-email', ], ], ], 'step_note' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('← Back to Type Selection', 'multisite-ultimate')), + 'desc' => sprintf('%s', __('← Back to Type Selection', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-show' => 'step === 2', ], ], 'target_customers' => [ 'type' => 'model', - 'title' => __('Target Customers', 'multisite-ultimate'), - 'desc' => __('This broadcast will be sent to the user or users that are selected here. You can select more than one.', 'multisite-ultimate'), - 'placeholder' => __('Search a customer...', 'multisite-ultimate'), + 'title' => __('Target Customers', 'ultimate-multisite'), + 'desc' => __('This broadcast will be sent to the user or users that are selected here. You can select more than one.', 'ultimate-multisite'), + 'placeholder' => __('Search a customer...', 'ultimate-multisite'), 'min' => 1, 'html_attr' => [ 'v-model' => 'target_customers', @@ -319,9 +319,9 @@ public function render_add_new_broadcast_modal(): void { ], 'target_products' => [ 'type' => 'model', - 'title' => __('Target Product', 'multisite-ultimate'), - 'desc' => __('This broadcast will be sent to the users that have this product. You can select more than one.', 'multisite-ultimate'), - 'placeholder' => __('Search for a product..', 'multisite-ultimate'), + 'title' => __('Target Product', 'ultimate-multisite'), + 'desc' => __('This broadcast will be sent to the users that have this product. You can select more than one.', 'ultimate-multisite'), + 'placeholder' => __('Search for a product..', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'target_products', 'data-model' => 'product', @@ -335,15 +335,15 @@ public function render_add_new_broadcast_modal(): void { ], ], 'notice_type' => [ - 'title' => __('Message Type', 'multisite-ultimate'), - 'desc' => __('The color of the notice is based on the type.', 'multisite-ultimate'), + 'title' => __('Message Type', 'ultimate-multisite'), + 'desc' => __('The color of the notice is based on the type.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'success', 'options' => [ - 'success' => __('Success (green)', 'multisite-ultimate'), - 'info' => __('Info (blue)', 'multisite-ultimate'), - 'warning' => __('Warning (orange)', 'multisite-ultimate'), - 'error' => __('Error (red)', 'multisite-ultimate'), + 'success' => __('Success (green)', 'ultimate-multisite'), + 'info' => __('Info (blue)', 'ultimate-multisite'), + 'warning' => __('Warning (orange)', 'ultimate-multisite'), + 'error' => __('Error (red)', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => "step === 2 && require('type', 'broadcast_notice')", @@ -352,16 +352,16 @@ public function render_add_new_broadcast_modal(): void { ], 'step_note_2' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('← Back to Target Selection', 'multisite-ultimate')), + 'desc' => sprintf('%s', __('← Back to Target Selection', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-show' => 'step === 3', ], ], 'subject' => [ 'type' => 'text', - 'title' => __('Message Subject', 'multisite-ultimate'), - 'desc' => __('The title will appear above the main content in the notice or used as subject of the email.', 'multisite-ultimate'), - 'placeholder' => __('Enter a title for your broadcast.', 'multisite-ultimate'), + 'title' => __('Message Subject', 'ultimate-multisite'), + 'desc' => __('The title will appear above the main content in the notice or used as subject of the email.', 'ultimate-multisite'), + 'placeholder' => __('Enter a title for your broadcast.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'subject', ], @@ -371,8 +371,8 @@ public function render_add_new_broadcast_modal(): void { ], 'content' => [ 'id' => 'content', - 'title' => __('Content', 'multisite-ultimate'), - 'desc' => __('The main content of your broadcast.', 'multisite-ultimate'), + 'title' => __('Content', 'ultimate-multisite'), + 'desc' => __('The main content of your broadcast.', 'ultimate-multisite'), 'type' => 'wp-editor', 'settings' => [ 'tinymce' => ['toolbar1' => 'bold,italic,strikethrough,link,unlink,undo,redo,pastetext'], @@ -386,7 +386,7 @@ public function render_add_new_broadcast_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Next Step →', 'multisite-ultimate'), + 'title' => __('Next Step →', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -400,7 +400,7 @@ public function render_add_new_broadcast_modal(): void { ], 'submit_button_2' => [ 'type' => 'submit', - 'title' => __('Next Step →', 'multisite-ultimate'), + 'title' => __('Next Step →', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -414,7 +414,7 @@ public function render_add_new_broadcast_modal(): void { ], 'submit_button_3' => [ 'type' => 'submit', - 'title' => __('Send →', 'multisite-ultimate'), + 'title' => __('Send →', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -484,8 +484,8 @@ public function register_widgets() {} public function get_labels() { return [ - 'deleted_message' => __('Broadcast removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Broadcast', 'multisite-ultimate'), + 'deleted_message' => __('Broadcast removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Broadcast', 'ultimate-multisite'), ]; } @@ -497,7 +497,7 @@ public function get_labels() { */ public function get_title() { - return __('Broadcast', 'multisite-ultimate'); + return __('Broadcast', 'ultimate-multisite'); } /** @@ -508,7 +508,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Broadcasts', 'multisite-ultimate'); + return __('Broadcasts', 'ultimate-multisite'); } /** @@ -519,7 +519,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Broadcasts', 'multisite-ultimate'); + return __('Broadcasts', 'ultimate-multisite'); } /** @@ -532,14 +532,14 @@ public function action_links() { return [ [ - 'label' => __('Add Broadcast', 'multisite-ultimate'), + 'label' => __('Add Broadcast', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_broadcast_message'), ], [ 'url' => wu_network_admin_url('wp-ultimo-emails'), - 'label' => __('System Emails', 'multisite-ultimate'), + 'label' => __('System Emails', 'ultimate-multisite'), 'icon' => 'wu-mail', ], ]; diff --git a/inc/admin-pages/class-checkout-form-edit-admin-page.php b/inc/admin-pages/class-checkout-form-edit-admin-page.php index de02a71c8..4d8a2776d 100644 --- a/inc/admin-pages/class-checkout-form-edit-admin-page.php +++ b/inc/admin-pages/class-checkout-form-edit-admin-page.php @@ -128,7 +128,7 @@ public function action_links() { ]; $actions[] = [ - 'label' => __('Generate Shortcode', 'multisite-ultimate'), + 'label' => __('Generate Shortcode', 'ultimate-multisite'), 'icon' => 'wu-copy', 'classes' => 'wubox', 'url' => wu_get_form_url('shortcode_checkout', $url_atts), @@ -218,7 +218,7 @@ public function content_checkout_form_by_settings(): void { ); if ($index < $count - 1) { - printf('
', esc_attr__('Step Separator', 'multisite-ultimate')); + printf('
', esc_attr__('Step Separator', 'ultimate-multisite')); } } @@ -376,9 +376,9 @@ public function get_create_field_fields($attributes = []) { 'v-model' => 'tab', ], 'options' => [ - 'content' => __('Field', 'multisite-ultimate'), - 'advanced' => __('Additional Settings', 'multisite-ultimate'), - 'style' => __('Style', 'multisite-ultimate'), + 'content' => __('Field', 'ultimate-multisite'), + 'advanced' => __('Additional Settings', 'ultimate-multisite'), + 'style' => __('Style', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'type', @@ -388,8 +388,8 @@ public function get_create_field_fields($attributes = []) { // Content Tab 'type' => [ 'type' => 'select-icon', - 'title' => __('Field Type', 'multisite-ultimate'), - 'desc' => __('Select the type of field you want to add to the checkout form.', 'multisite-ultimate'), + 'title' => __('Field Type', 'ultimate-multisite'), + 'desc' => __('Select the type of field you want to add to the checkout form.', 'ultimate-multisite'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -406,7 +406,7 @@ public function get_create_field_fields($attributes = []) { 'type_note' => [ 'type' => 'note', 'order' => 0, - 'desc' => sprintf('%s', __('← Back to Field Type Selection', 'multisite-ultimate')), + 'desc' => sprintf('%s', __('← Back to Field Type Selection', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-show' => 'type && (!saved && !name)', 'v-cloak' => '1', @@ -424,9 +424,9 @@ public function get_create_field_fields($attributes = []) { // Advanced Tab 'from_request' => [ 'type' => 'toggle', - 'title' => __('Pre-fill from Request', 'multisite-ultimate'), - 'tooltip' => __('The key is the field slug. If your field has the slug "my-color" for example, adding ?my-color=blue will pre-fill this field with the value "blue".', 'multisite-ultimate'), - 'desc' => __('Enable this to allow this field to be pre-filled based on the request parameters.', 'multisite-ultimate'), + 'title' => __('Pre-fill from Request', 'ultimate-multisite'), + 'tooltip' => __('The key is the field slug. If your field has the slug "my-color" for example, adding ?my-color=blue will pre-fill this field with the value "blue".', 'ultimate-multisite'), + 'desc' => __('Enable this to allow this field to be pre-filled based on the request parameters.', 'ultimate-multisite'), 'value' => 1, 'order' => 100, 'html_attr' => [ @@ -442,12 +442,12 @@ public function get_create_field_fields($attributes = []) { 'logged' => [ 'type' => 'select', 'value' => 'always', - 'title' => __('Field Visibility', 'multisite-ultimate'), - 'desc' => __('Select the visibility of this field.', 'multisite-ultimate'), + 'title' => __('Field Visibility', 'ultimate-multisite'), + 'desc' => __('Select the visibility of this field.', 'ultimate-multisite'), 'options' => [ - 'always' => __('Always show', 'multisite-ultimate'), - 'logged_only' => __('Only show for logged in users', 'multisite-ultimate'), - 'guests_only' => __('Only show for guests', 'multisite-ultimate'), + 'always' => __('Always show', 'ultimate-multisite'), + 'logged_only' => __('Only show for logged in users', 'ultimate-multisite'), + 'guests_only' => __('Only show for guests', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'logged', @@ -469,9 +469,9 @@ public function get_create_field_fields($attributes = []) { // Style Tab 'width' => [ 'type' => 'number', - 'title' => __('Wrapper Width', 'multisite-ultimate'), - 'placeholder' => __('100', 'multisite-ultimate'), - 'desc' => __('Set the width of this field wrapper (in %).', 'multisite-ultimate'), + 'title' => __('Wrapper Width', 'ultimate-multisite'), + 'placeholder' => __('100', 'ultimate-multisite'), + 'desc' => __('Set the width of this field wrapper (in %).', 'ultimate-multisite'), 'min' => 0, 'max' => 100, 'value' => 100, @@ -486,9 +486,9 @@ public function get_create_field_fields($attributes = []) { ], 'wrapper_element_classes' => [ 'type' => 'text', - 'title' => __('Wrapper CSS Classes', 'multisite-ultimate'), - 'placeholder' => __('e.g. custom-field example-class', 'multisite-ultimate'), - 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field wrapper element.', 'multisite-ultimate'), + 'title' => __('Wrapper CSS Classes', 'ultimate-multisite'), + 'placeholder' => __('e.g. custom-field example-class', 'ultimate-multisite'), + 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field wrapper element.', 'ultimate-multisite'), 'value' => '', 'order' => 54, 'html_attr' => [ @@ -501,9 +501,9 @@ public function get_create_field_fields($attributes = []) { ], 'element_classes' => [ 'type' => 'text', - 'title' => __('Field CSS Classes', 'multisite-ultimate'), - 'placeholder' => __('e.g. custom-field example-class', 'multisite-ultimate'), - 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field element itself, when possible.', 'multisite-ultimate'), + 'title' => __('Field CSS Classes', 'ultimate-multisite'), + 'placeholder' => __('e.g. custom-field example-class', 'ultimate-multisite'), + 'desc' => __('You can enter multiple CSS classes separated by spaces. These will be applied to the field element itself, when possible.', 'ultimate-multisite'), 'value' => '', 'order' => 56, 'html_attr' => [ @@ -563,7 +563,7 @@ public function get_create_field_fields($attributes = []) { [ 'submit_button' => [ 'type' => 'submit', - 'title' => empty($attributes) ? __('Add Field', 'multisite-ultimate') : __('Save Field', 'multisite-ultimate'), + 'title' => empty($attributes) ? __('Add Field', 'ultimate-multisite') : __('Save Field', 'ultimate-multisite'), 'value' => 'save', 'order' => 100, 'classes' => 'button button-primary wu-w-full', @@ -717,7 +717,7 @@ function ($value) { [ 'duration' => 1, 'duration_unit' => 'month', - 'label' => __('Monthly', 'multisite-ultimate'), + 'label' => __('Monthly', 'ultimate-multisite'), ], ]; } @@ -773,7 +773,7 @@ public function handle_add_new_form_field_modal(): void { wp_send_json_error( new \WP_Error( 'checkout-form-not-found', - __('The checkout form could not be found.', 'multisite-ultimate') + __('The checkout form could not be found.', 'ultimate-multisite') ) ); } @@ -851,18 +851,18 @@ public function render_add_new_form_step_modal(): void { 'v-model' => 'tab', ], 'options' => [ - 'content' => __('Content', 'multisite-ultimate'), - 'visibility' => __('Visibility', 'multisite-ultimate'), - 'style' => __('Style', 'multisite-ultimate'), + 'content' => __('Content', 'ultimate-multisite'), + 'visibility' => __('Visibility', 'ultimate-multisite'), + 'style' => __('Style', 'ultimate-multisite'), ], ], // Content Tab 'id' => [ 'type' => 'text', - 'title' => __('Step ID', 'multisite-ultimate'), - 'placeholder' => __('e.g. step-name', 'multisite-ultimate'), - 'desc' => __('This will be used on the URL. Only alpha-numeric and hyphens allowed.', 'multisite-ultimate'), + 'title' => __('Step ID', 'ultimate-multisite'), + 'placeholder' => __('e.g. step-name', 'ultimate-multisite'), + 'desc' => __('This will be used on the URL. Only alpha-numeric and hyphens allowed.', 'ultimate-multisite'), 'value' => '', 'html_attr' => [ 'v-on:input' => 'id = $event.target.value.toLowerCase().replace(/[^a-z0-9-_]+/g, "")', @@ -883,9 +883,9 @@ public function render_add_new_form_step_modal(): void { ], 'name' => [ 'type' => 'text', - 'title' => __('Step Title', 'multisite-ultimate'), - 'placeholder' => __('e.g. My Extra Step', 'multisite-ultimate'), - 'desc' => __('Mostly used internally, but made available for templates.', 'multisite-ultimate'), + 'title' => __('Step Title', 'ultimate-multisite'), + 'placeholder' => __('e.g. My Extra Step', 'ultimate-multisite'), + 'desc' => __('Mostly used internally, but made available for templates.', 'ultimate-multisite'), 'tooltip' => '', 'value' => '', 'html_attr' => [ @@ -899,9 +899,9 @@ public function render_add_new_form_step_modal(): void { ], 'desc' => [ 'type' => 'textarea', - 'title' => __('Step Description', 'multisite-ultimate'), - 'placeholder' => __('e.g. This is the last step!', 'multisite-ultimate'), - 'desc' => __('Mostly used internally, but made available for templates.', 'multisite-ultimate'), + 'title' => __('Step Description', 'ultimate-multisite'), + 'placeholder' => __('e.g. This is the last step!', 'ultimate-multisite'), + 'desc' => __('Mostly used internally, but made available for templates.', 'ultimate-multisite'), 'tooltip' => '', 'value' => '', 'html_attr' => [ @@ -918,12 +918,12 @@ public function render_add_new_form_step_modal(): void { 'logged' => [ 'type' => 'select', 'value' => 'always', - 'title' => __('Logged Status', 'multisite-ultimate'), - 'desc' => __('Select the visibility of this step.', 'multisite-ultimate'), + 'title' => __('Logged Status', 'ultimate-multisite'), + 'desc' => __('Select the visibility of this step.', 'ultimate-multisite'), 'options' => [ - 'always' => __('Always show', 'multisite-ultimate'), - 'logged_only' => __('Only show for logged in users', 'multisite-ultimate'), - 'guests_only' => __('Only show for guests', 'multisite-ultimate'), + 'always' => __('Always show', 'ultimate-multisite'), + 'logged_only' => __('Only show for logged in users', 'ultimate-multisite'), + 'guests_only' => __('Only show for guests', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'logged', @@ -937,9 +937,9 @@ public function render_add_new_form_step_modal(): void { // Style Tab 'element_id' => [ 'type' => 'text', - 'title' => __('Element ID', 'multisite-ultimate'), - 'placeholder' => __('myfield', 'multisite-ultimate'), - 'desc' => __('A custom ID to be added to the form element. Do not add the # symbol.', 'multisite-ultimate'), + 'title' => __('Element ID', 'ultimate-multisite'), + 'placeholder' => __('myfield', 'ultimate-multisite'), + 'desc' => __('A custom ID to be added to the form element. Do not add the # symbol.', 'ultimate-multisite'), 'value' => '', 'html_attr' => [ 'v-model' => 'element_id', @@ -952,9 +952,9 @@ public function render_add_new_form_step_modal(): void { 'classes' => [ 'type' => 'text', - 'title' => __('Extra CSS Classes', 'multisite-ultimate'), - 'placeholder' => __('custom-field example-class', 'multisite-ultimate'), - 'desc' => __('You can enter multiple CSS classes separated by spaces.', 'multisite-ultimate'), + 'title' => __('Extra CSS Classes', 'ultimate-multisite'), + 'placeholder' => __('custom-field example-class', 'ultimate-multisite'), + 'desc' => __('You can enter multiple CSS classes separated by spaces.', 'ultimate-multisite'), 'value' => '', 'html_attr' => [ 'v-model' => 'classes', @@ -968,7 +968,7 @@ public function render_add_new_form_step_modal(): void { // Submit Button 'submit_button' => [ 'type' => 'submit', - 'title' => empty($_step) ? __('Add Step', 'multisite-ultimate') : __('Save Step', 'multisite-ultimate'), + 'title' => empty($_step) ? __('Add Step', 'ultimate-multisite') : __('Save Step', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -1029,7 +1029,7 @@ public function handle_add_new_form_step_modal(): void { wp_send_json_error( new \WP_Error( 'checkout-form-not-found', - __('The checkout form could not be found.', 'multisite-ultimate') + __('The checkout form could not be found.', 'ultimate-multisite') ) ); } @@ -1144,10 +1144,10 @@ public function register_scripts(): void { 'register_page' => wu_get_registration_url(), 'steps' => $steps, 'headers' => [ - 'order' => __('Order', 'multisite-ultimate'), - 'name' => __('Label', 'multisite-ultimate'), - 'type' => __('Type', 'multisite-ultimate'), - 'slug' => __('Slug', 'multisite-ultimate'), + 'order' => __('Order', 'ultimate-multisite'), + 'name' => __('Label', 'ultimate-multisite'), + 'type' => __('Type', 'ultimate-multisite'), + 'slug' => __('Slug', 'ultimate-multisite'), 'move' => '', ], ] @@ -1200,9 +1200,9 @@ public function get_thank_you_page_fields() { $new_fields['conversion_snippets'] = [ 'type' => 'code-editor', - 'title' => __('Conversion Snippets', 'multisite-ultimate'), + 'title' => __('Conversion Snippets', 'ultimate-multisite'), // translators: %s is a list of placeholders. - 'desc' => sprintf(__('Add custom snippets in HTML (with javascript support) to add conversion tracking pixels and such. This code is only run on the successful Thank You step.
Available placeholders are: %s', 'multisite-ultimate'), $fields_placeholder), + 'desc' => sprintf(__('Add custom snippets in HTML (with javascript support) to add conversion tracking pixels and such. This code is only run on the successful Thank You step.
Available placeholders are: %s', 'ultimate-multisite'), $fields_placeholder), 'value' => $this->get_object()->get_conversion_snippets(), 'lang' => 'htmlmixed', ]; @@ -1238,15 +1238,15 @@ public function register_widgets(): void { $this->add_tabs_widget( 'advanced', [ - 'title' => __('Advanced Options', 'multisite-ultimate'), + 'title' => __('Advanced Options', 'ultimate-multisite'), 'position' => 'advanced', 'html_attr' => [ 'data-on-load' => 'wu_initialize_code_editors', ], 'sections' => [ 'thank-you' => [ - 'title' => __('Thank You', 'multisite-ultimate'), - 'desc' => __('Configure the Thank You page for this Checkout Form.', 'multisite-ultimate'), + 'title' => __('Thank You', 'ultimate-multisite'), + 'desc' => __('Configure the Thank You page for this Checkout Form.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-emoji-happy', 'state' => [ 'enable_thank_you_page' => $this->get_object()->has_thank_you_page(), @@ -1255,8 +1255,8 @@ public function register_widgets(): void { 'fields' => $this->get_thank_you_page_fields(), ], 'scripts' => [ - 'title' => __('Scripts', 'multisite-ultimate'), - 'desc' => __('Configure the Thank You page for this Checkout Form.', 'multisite-ultimate'), + 'title' => __('Scripts', 'ultimate-multisite'), + 'desc' => __('Configure the Thank You page for this Checkout Form.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-code', 'state' => [ 'enable_thank_you_page' => $this->get_object()->has_thank_you_page(), @@ -1265,16 +1265,16 @@ public function register_widgets(): void { 'fields' => [ 'custom_css' => [ 'type' => 'code-editor', - 'title' => __('Custom CSS', 'multisite-ultimate'), - 'desc' => __('Add custom CSS code to your checkout form. SCSS syntax is supported.', 'multisite-ultimate'), + 'title' => __('Custom CSS', 'ultimate-multisite'), + 'desc' => __('Add custom CSS code to your checkout form. SCSS syntax is supported.', 'ultimate-multisite'), 'value' => $this->get_object()->get_custom_css(), 'lang' => 'css', ], ], ], 'restrictions' => [ - 'title' => __('Restrictions', 'multisite-ultimate'), - 'desc' => __('Control the access to this checkout form.', 'multisite-ultimate'), + 'title' => __('Restrictions', 'ultimate-multisite'), + 'desc' => __('Control the access to this checkout form.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-block', 'state' => [ 'restrict_by_country' => $this->get_object()->has_country_lock(), @@ -1282,17 +1282,17 @@ public function register_widgets(): void { 'fields' => [ 'restrict_by_country' => [ 'type' => 'toggle', - 'title' => __('Restrict by Country', 'multisite-ultimate'), - 'desc' => __('Restrict this checkout form to specific countries.', 'multisite-ultimate'), + 'title' => __('Restrict by Country', 'ultimate-multisite'), + 'desc' => __('Restrict this checkout form to specific countries.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'restrict_by_country', ], ], 'allowed_countries' => [ 'type' => 'select', - 'title' => __('Allowed Countries', 'multisite-ultimate'), - 'desc' => __('Select the allowed countries.', 'multisite-ultimate'), - 'placeholder' => __('Type to search countries...', 'multisite-ultimate'), + 'title' => __('Allowed Countries', 'ultimate-multisite'), + 'desc' => __('Select the allowed countries.', 'ultimate-multisite'), + 'placeholder' => __('Type to search countries...', 'ultimate-multisite'), 'options' => 'wu_get_countries', 'value' => $this->get_object()->get_allowed_countries(), 'wrapper_html_attr' => [ @@ -1313,7 +1313,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], 'position' => 'advanced', @@ -1335,8 +1335,8 @@ public function register_widgets(): void { 'fields' => [ 'slug' => [ 'type' => 'text', - 'title' => __('Checkout Form Slug', 'multisite-ultimate'), - 'desc' => __('This is used to create shortcodes and more.', 'multisite-ultimate'), + 'title' => __('Checkout Form Slug', 'ultimate-multisite'), + 'desc' => __('This is used to create shortcodes and more.', 'ultimate-multisite'), 'value' => $this->get_object()->get_slug(), 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -1349,7 +1349,7 @@ public function register_widgets(): void { ], 'slug_change_note' => [ 'type' => 'note', - 'desc' => __('You are changing the form slug. If you save this change, all the shortcodes and blocks referencing this slug will stop working until you update them with the new slug.', 'multisite-ultimate'), + 'desc' => __('You are changing the form slug. If you save this change, all the shortcodes and blocks referencing this slug will stop working until you update them with the new slug.', 'ultimate-multisite'), 'classes' => 'wu-p-2 wu-bg-yellow-200 wu-text-yellow-700 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => '(original_slug != slug) && slug', @@ -1363,12 +1363,12 @@ public function register_widgets(): void { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this checkout form.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this checkout form.', 'ultimate-multisite'), 'value' => $this->get_object()->is_active(), ], ], @@ -1380,17 +1380,17 @@ public function register_widgets(): void { [ [ 'id' => 'checkout-form-editor', - 'title' => __('Welcome to the Checkout Form builder!', 'multisite-ultimate'), + 'title' => __('Welcome to the Checkout Form builder!', 'ultimate-multisite'), 'text' => [ - __('You should be able to create registration forms in any way, shape, and form you desire. This editor allows you to do just that 😃', 'multisite-ultimate'), - __('Want a registration form with multiple steps? Check! A single step? Check! Control the visibility of certain steps and fields based on the context of the customer? Check!', 'multisite-ultimate'), + __('You should be able to create registration forms in any way, shape, and form you desire. This editor allows you to do just that 😃', 'ultimate-multisite'), + __('Want a registration form with multiple steps? Check! A single step? Check! Control the visibility of certain steps and fields based on the context of the customer? Check!', 'ultimate-multisite'), ], ], [ 'id' => 'add-new-step', - 'title' => __('Adding new Steps', 'multisite-ultimate'), + 'title' => __('Adding new Steps', 'ultimate-multisite'), 'text' => [ - __('To add a new step to the registration form, use this button here.', 'multisite-ultimate'), + __('To add a new step to the registration form, use this button here.', 'ultimate-multisite'), ], 'attachTo' => [ 'element' => '#wp-ultimo-list-table-add-new-1 > div > div.wu-w-1\/2.wu-text-right > ul > li:nth-child(2) > a', @@ -1399,10 +1399,10 @@ public function register_widgets(): void { ], [ 'id' => 'add-new-field', - 'title' => __('Adding new Fields', 'multisite-ultimate'), + 'title' => __('Adding new Fields', 'ultimate-multisite'), 'text' => [ - __('To add a new field to a step, use this button here. You can add fields to capture additional data from your customers and use that data to populate site templates.', 'multisite-ultimate'), - sprintf('%s', wu_get_documentation_url('wp-ultimo-populate-site-template'), __('You can learn more about that here →', 'multisite-ultimate')), + __('To add a new field to a step, use this button here. You can add fields to capture additional data from your customers and use that data to populate site templates.', 'ultimate-multisite'), + sprintf('%s', wu_get_documentation_url('wp-ultimo-populate-site-template'), __('You can learn more about that here →', 'ultimate-multisite')), ], 'attachTo' => [ 'element' => '#wp-ultimo-list-table-checkout > div.inside > div.wu-bg-gray-100.wu-px-4.wu-py-3.wu--m-3.wu-mt-3.wu-border-t.wu-border-l-0.wu-border-r-0.wu-border-b-0.wu-border-gray-400.wu-border-solid.wu-text-right > ul > li:nth-child(3) > a', @@ -1421,7 +1421,7 @@ public function register_widgets(): void { */ public function get_title() { - return $this->edit ? __('Edit Checkout Form', 'multisite-ultimate') : __('Add new Checkout Form', 'multisite-ultimate'); + return $this->edit ? __('Edit Checkout Form', 'ultimate-multisite') : __('Add new Checkout Form', 'ultimate-multisite'); } /** @@ -1432,7 +1432,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Checkout_Form', 'multisite-ultimate'); + return __('Edit Checkout_Form', 'ultimate-multisite'); } /** @@ -1444,15 +1444,15 @@ public function get_menu_title() { public function get_labels() { return [ - 'edit_label' => __('Edit Checkout Form', 'multisite-ultimate'), - 'add_new_label' => __('Add new Checkout Form', 'multisite-ultimate'), - 'updated_message' => __('Checkout Form updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Checkout Form Name', 'multisite-ultimate'), - 'title_description' => __('This name is used for internal reference only.', 'multisite-ultimate'), - 'save_button_label' => __('Save Checkout Form', 'multisite-ultimate'), + 'edit_label' => __('Edit Checkout Form', 'ultimate-multisite'), + 'add_new_label' => __('Add new Checkout Form', 'ultimate-multisite'), + 'updated_message' => __('Checkout Form updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Checkout Form Name', 'ultimate-multisite'), + 'title_description' => __('This name is used for internal reference only.', 'ultimate-multisite'), + 'save_button_label' => __('Save Checkout Form', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Checkout Form', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Checkout Form', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-checkout-form-list-admin-page.php b/inc/admin-pages/class-checkout-form-list-admin-page.php index a2aa99546..e25b90bd8 100644 --- a/inc/admin-pages/class-checkout-form-list-admin-page.php +++ b/inc/admin-pages/class-checkout-form-list-admin-page.php @@ -69,17 +69,17 @@ public function register_widgets(): void { [ [ 'id' => 'checkout-form-list', - 'title' => __('Checkout Forms', 'multisite-ultimate'), + 'title' => __('Checkout Forms', 'ultimate-multisite'), 'text' => [ - __('Checkout Forms are an easy and flexible way to experiment with different approaches when trying to convert new customers.', 'multisite-ultimate'), + __('Checkout Forms are an easy and flexible way to experiment with different approaches when trying to convert new customers.', 'ultimate-multisite'), ], ], [ 'id' => 'default-form', - 'title' => __('Experiment!', 'multisite-ultimate'), + 'title' => __('Experiment!', 'ultimate-multisite'), 'text' => [ - __('You can create as many checkout forms as you want, with different fields, products on offer, etc.', 'multisite-ultimate'), - __('Planning on running some sort of promotion? Why not create a custom landing page with a tailor-maid checkout form to go with? The possibilities are endless.', 'multisite-ultimate'), + __('You can create as many checkout forms as you want, with different fields, products on offer, etc.', 'ultimate-multisite'), + __('Planning on running some sort of promotion? Why not create a custom landing page with a tailor-maid checkout form to go with? The possibilities are endless.', 'ultimate-multisite'), ], 'attachTo' => [ 'element' => '#wp-ultimo-wrap > h1 > a:first-child', @@ -121,8 +121,8 @@ public function render_add_new_checkout_form_modal(): void { $fields = [ 'template' => [ 'type' => 'select-icon', - 'title' => __('Checkout Form Template', 'multisite-ultimate'), - 'desc' => __('Select a starting point for a new Checkout Form.', 'multisite-ultimate'), + 'title' => __('Checkout Form Template', 'ultimate-multisite'), + 'desc' => __('Select a starting point for a new Checkout Form.', 'ultimate-multisite'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -132,22 +132,22 @@ public function render_add_new_checkout_form_modal(): void { ], 'options' => [ 'single-step' => [ - 'title' => __('Single Step', 'multisite-ultimate'), + 'title' => __('Single Step', 'ultimate-multisite'), 'icon' => 'dashicons-before dashicons-list-view', ], 'multi-step' => [ - 'title' => __('Multi-Step', 'multisite-ultimate'), + 'title' => __('Multi-Step', 'ultimate-multisite'), 'icon' => 'dashicons-before dashicons-excerpt-view', ], 'blank' => [ - 'title' => __('Blank', 'multisite-ultimate'), + 'title' => __('Blank', 'ultimate-multisite'), 'icon' => 'dashicons-before dashicons-admin-page', ], ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Go to the Editor →', 'multisite-ultimate'), + 'title' => __('Go to the Editor →', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -189,7 +189,7 @@ public function handle_add_new_checkout_form_modal(): void { $checkout_form->use_template($template); - $checkout_form->set_name(__('Draft Checkout Form', 'multisite-ultimate')); + $checkout_form->set_name(__('Draft Checkout Form', 'ultimate-multisite')); $checkout_form->set_slug(uniqid()); @@ -222,8 +222,8 @@ public function handle_add_new_checkout_form_modal(): void { public function get_labels() { return [ - 'deleted_message' => __('Checkout Form removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Checkout Form', 'multisite-ultimate'), + 'deleted_message' => __('Checkout Form removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Checkout Form', 'ultimate-multisite'), ]; } @@ -235,7 +235,7 @@ public function get_labels() { */ public function get_title() { - return __('Checkout Forms', 'multisite-ultimate'); + return __('Checkout Forms', 'ultimate-multisite'); } /** @@ -246,7 +246,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Checkout Forms', 'multisite-ultimate'); + return __('Checkout Forms', 'ultimate-multisite'); } /** @@ -257,7 +257,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Checkout Forms', 'multisite-ultimate'); + return __('Checkout Forms', 'ultimate-multisite'); } /** @@ -270,7 +270,7 @@ public function action_links() { return [ [ - 'label' => __('Add Checkout Form', 'multisite-ultimate'), + 'label' => __('Add Checkout Form', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_checkout_form'), diff --git a/inc/admin-pages/class-customer-edit-admin-page.php b/inc/admin-pages/class-customer-edit-admin-page.php index 1629dbbc5..31f4c250a 100644 --- a/inc/admin-pages/class-customer-edit-admin-page.php +++ b/inc/admin-pages/class-customer-edit-admin-page.php @@ -112,7 +112,7 @@ public function page_loaded() { // Verify nonce for security if ( ! wp_verify_nonce($nonce, 'delete_customer_meta_' . $meta_key)) { - wp_die(__('Security check failed. Please try again.', 'multisite-ultimate')); + wp_die(__('Security check failed. Please try again.', 'ultimate-multisite')); } $customer = $this->get_object(); @@ -200,16 +200,16 @@ public function render_transfer_customer_modal(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Transfer', 'multisite-ultimate'), - 'desc' => __('This will start the transfer of assets from one user to another.', 'multisite-ultimate'), + 'title' => __('Confirm Transfer', 'ultimate-multisite'), + 'desc' => __('This will start the transfer of assets from one user to another.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Start Transfer', 'multisite-ultimate'), - 'placeholder' => __('Start Transfer', 'multisite-ultimate'), + 'title' => __('Start Transfer', 'ultimate-multisite'), + 'placeholder' => __('Start Transfer', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -262,11 +262,11 @@ public function handle_transfer_customer_modal(): void { $target_user = get_user_by('id', wu_request('target_user_id')); if ( ! $customer) { - wp_send_json_error(new \WP_Error('not-found', __('Customer not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Customer not found.', 'ultimate-multisite'))); } if ( ! $target_user) { - wp_send_json_error(new \WP_Error('not-found', __('User not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('User not found.', 'ultimate-multisite'))); } $customer->set_user_id($target_user->ID); @@ -302,8 +302,8 @@ public function customer_extra_delete_fields($fields, $customer): array { $custom_fields = [ 'delete_all' => [ 'type' => 'toggle', - 'title' => __('Delete everything', 'multisite-ultimate'), - 'desc' => __('Sites, payments and memberships.', 'multisite-ultimate'), + 'title' => __('Delete everything', 'ultimate-multisite'), + 'desc' => __('Sites, payments and memberships.', 'ultimate-multisite'), 'html_attr' => [ 'v-bind:value' => 'delete_all_confirmed', 'v-model' => 'delete_all_confirmed', @@ -311,8 +311,8 @@ public function customer_extra_delete_fields($fields, $customer): array { ], 're_assignment_customer_id' => [ 'type' => 'model', - 'title' => __('Re-assignment to customer', 'multisite-ultimate'), - 'placeholder' => __('Select Customer...', 'multisite-ultimate'), + 'title' => __('Re-assignment to customer', 'ultimate-multisite'), + 'placeholder' => __('Select Customer...', 'ultimate-multisite'), 'html_attr' => [ 'data-model' => 'customer', 'data-value-field' => 'id', @@ -450,7 +450,7 @@ public function generate_customer_meta_fields() { foreach ($custom_meta_keys as $key => $value) { $field_location_breadcrumbs = [ - __('Custom field', 'multisite-ultimate'), + __('Custom field', 'ultimate-multisite'), ]; $form = wu_get_isset($value, 'form'); @@ -465,7 +465,7 @@ public function generate_customer_meta_fields() { $location = sprintf( '%s %s', - __('Location:', 'multisite-ultimate'), + __('Location:', 'ultimate-multisite'), implode(' → ', array_filter($field_location_breadcrumbs)) ); @@ -491,7 +491,7 @@ public function generate_customer_meta_fields() { $delete_link = sprintf( '%s', esc_url($delete_url), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ); } @@ -528,7 +528,7 @@ public function generate_customer_meta_fields() { if ($meta_fields_unset) { $collapsible_header['display_unset_fields'] = [ - 'title' => __('Display unset fields', 'multisite-ultimate'), + 'title' => __('Display unset fields', 'ultimate-multisite'), 'desc' => __( 'If fields were added after the customer creation or onto a different form, they will not have a set value for this customer. You can manually set those here.', 'multisite-ultimate' @@ -546,14 +546,14 @@ public function generate_customer_meta_fields() { if (empty($final_fields)) { $final_fields['empty'] = [ 'type' => 'note', - 'desc' => __('No custom meta data collected and no custom fields found.', 'multisite-ultimate'), + 'desc' => __('No custom meta data collected and no custom fields found.', 'ultimate-multisite'), 'classes' => 'wu-text-center', ]; } $final_fields['display_new_meta_repeater'] = [ - 'title' => __('Manually add custom meta fields', 'multisite-ultimate'), - 'desc' => __('Add new custom meta fields to this customer.', 'multisite-ultimate'), + 'title' => __('Manually add custom meta fields', 'ultimate-multisite'), + 'desc' => __('Add new custom meta fields to this customer.', 'ultimate-multisite'), 'type' => 'toggle', 'wrapper_classes' => 'wu-bg-gray-100', 'html_attr' => [ @@ -562,7 +562,7 @@ public function generate_customer_meta_fields() { ]; $default_meta_value = fn(string $type, $value = '', bool $is_default = false) => [ - 'title' => __('Value', 'multisite-ultimate'), + 'title' => __('Value', 'ultimate-multisite'), 'type' => $type, 'value' => $value, 'wrapper_classes' => 'wu-w-1/4 wu-ml-2', @@ -587,12 +587,12 @@ public function generate_customer_meta_fields() { 'type' => 'note', 'desc' => sprintf( '', - __('Remove', 'multisite-ultimate') + __('Remove', 'ultimate-multisite') ), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'new_meta_slug' => [ - 'title' => __('Slug', 'multisite-ultimate'), + 'title' => __('Slug', 'ultimate-multisite'), 'type' => 'text', 'value' => '', 'wrapper_classes' => 'wu-w-1/4', @@ -603,7 +603,7 @@ public function generate_customer_meta_fields() { ], ], 'new_meta_title' => [ - 'title' => __('Title', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), 'type' => 'text', 'value' => '', 'wrapper_classes' => 'wu-w-1/4 wu-ml-2', @@ -612,14 +612,14 @@ public function generate_customer_meta_fields() { ], ], 'new_meta_type' => [ - 'title' => __('Type', 'multisite-ultimate'), + 'title' => __('Type', 'ultimate-multisite'), 'type' => 'select', 'options' => [ - 'text' => __('Text', 'multisite-ultimate'), - 'textarea' => __('Textarea', 'multisite-ultimate'), - 'checkbox' => __('Checkbox', 'multisite-ultimate'), - 'color' => __('Color', 'multisite-ultimate'), - 'image' => __('Image', 'multisite-ultimate'), + 'text' => __('Text', 'ultimate-multisite'), + 'textarea' => __('Textarea', 'ultimate-multisite'), + 'checkbox' => __('Checkbox', 'ultimate-multisite'), + 'color' => __('Color', 'ultimate-multisite'), + 'image' => __('Image', 'ultimate-multisite'), ], 'wrapper_classes' => 'wu-w-1/4 wu-ml-2', 'html_attr' => [ @@ -642,7 +642,7 @@ public function generate_customer_meta_fields() { ], 'repeat_option' => [ 'type' => 'submit', - 'title' => __('+ Add meta field', 'multisite-ultimate'), + 'title' => __('+ Add meta field', 'ultimate-multisite'), 'classes' => 'button wu-self-end', 'wrapper_classes' => 'wu-bg-whiten wu-items-end', 'html_attr' => [ @@ -681,7 +681,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'multisite-ultimate'), + 'title' => __('At a Glance', 'ultimate-multisite'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-m-0 wu--mt-1 wu--mx-3 wu--mb-3', 'field_wrapper_classes' => 'wu-w-1/3 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', @@ -692,13 +692,13 @@ public function register_widgets(): void { 'id' => [ 'type' => 'text-display', 'copy' => true, - 'title' => __('Customer ID', 'multisite-ultimate'), + 'title' => __('Customer ID', 'ultimate-multisite'), 'display_value' => $this->get_object()->get_id(), 'tooltip' => '', ], 'last_login' => [ 'edit' => false, - 'title' => __('Last Login', 'multisite-ultimate'), + 'title' => __('Last Login', 'ultimate-multisite'), 'type' => 'text-edit', 'value' => $this->edit ? $this->get_object()->get_last_login(false) : __( 'No date', @@ -708,7 +708,7 @@ public function register_widgets(): void { ], 'total_grossed' => [ 'type' => 'text-display', - 'title' => __('Total Grossed', 'multisite-ultimate'), + 'title' => __('Total Grossed', 'ultimate-multisite'), 'display_value' => wu_format_currency($this->get_object()->get_total_grossed()), 'tooltip' => '', ], @@ -719,7 +719,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'memberships', [ - 'title' => __('Memberships', 'multisite-ultimate'), + 'title' => __('Memberships', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Customers_Membership_List_Table(), 'query_filter' => [$this, 'memberships_query_filter'], ] @@ -728,34 +728,34 @@ public function register_widgets(): void { $this->add_tabs_widget( 'options', [ - 'title' => __('Customer Options', 'multisite-ultimate'), + 'title' => __('Customer Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => apply_filters( 'wu_customer_options_sections', [ 'general' => [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General options for the customer.', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General options for the customer.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-globe', 'fields' => [ 'vip' => [ 'type' => 'toggle', - 'title' => __('VIP', 'multisite-ultimate'), - 'desc' => __('Set this customer as a VIP.', 'multisite-ultimate'), + 'title' => __('VIP', 'ultimate-multisite'), + 'desc' => __('Set this customer as a VIP.', 'ultimate-multisite'), 'tooltip' => '', 'value' => $this->get_object()->is_vip(), ], ], ], 'billing_info' => [ - 'title' => __('Billing Info', 'multisite-ultimate'), - 'desc' => __('Billing information for this particular customer', 'multisite-ultimate'), + 'title' => __('Billing Info', 'ultimate-multisite'), + 'desc' => __('Billing information for this particular customer', 'ultimate-multisite'), 'icon' => 'dashicons-wu-address', 'fields' => $this->get_object()->get_billing_address()->get_fields(), ], 'custom_meta' => [ - 'title' => __('Custom Meta', 'multisite-ultimate'), - 'desc' => __('Custom data collected via Multisite Ultimate forms.', 'multisite-ultimate'), + 'title' => __('Custom Meta', 'ultimate-multisite'), + 'desc' => __('Custom data collected via Multisite Ultimate forms.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-database wu-pt-px', 'fields' => $this->generate_customer_meta_fields(), 'state' => [ @@ -772,8 +772,8 @@ public function register_widgets(): void { // @todo: bring these back // phpcs:disable // 'payment_methods' => array( - // 'title' => __('Payment Methods', 'multisite-ultimate'), - // 'desc' => __('Add extra information to this customer.', 'multisite-ultimate'), + // 'title' => __('Payment Methods', 'ultimate-multisite'), + // 'desc' => __('Add extra information to this customer.', 'ultimate-multisite'), // 'icon' => 'dashicons-wu-credit-card', // 'fields' => apply_filters('wu_customer_payment_methods', array(), $this->get_object(), $this), // ), @@ -787,7 +787,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'payments', [ - 'title' => __('Payments', 'multisite-ultimate'), + 'title' => __('Payments', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Customers_Payment_List_Table(), 'query_filter' => [$this, 'memberships_query_filter'], ] @@ -796,7 +796,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'sites', [ - 'title' => __('Sites', 'multisite-ultimate'), + 'title' => __('Sites', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Customers_Site_List_Table(), 'query_filter' => [$this, 'sites_query_filter'], ] @@ -805,7 +805,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -835,9 +835,9 @@ public function register_widgets(): void { 'fields' => [ 'user_id' => [ 'type' => 'model', - 'title' => __('User', 'multisite-ultimate'), - 'placeholder' => __('Search WordPress user...', 'multisite-ultimate'), - 'desc' => __('The WordPress user associated to this customer.', 'multisite-ultimate'), + 'title' => __('User', 'ultimate-multisite'), + 'placeholder' => __('Search WordPress user...', 'ultimate-multisite'), + 'desc' => __('The WordPress user associated to this customer.', 'ultimate-multisite'), 'value' => $this->get_object()->get_user_id(), 'tooltip' => '', 'min' => 1, @@ -868,16 +868,16 @@ public function register_widgets(): void { ], 'email_verification' => [ 'type' => 'select', - 'title' => __('Email Verification', 'multisite-ultimate'), - 'placeholder' => __('Select Status', 'multisite-ultimate'), + 'title' => __('Email Verification', 'ultimate-multisite'), + 'placeholder' => __('Select Status', 'ultimate-multisite'), 'desc' => __( 'The email verification status. This gets automatically switched to Verified when the customer verifies their email address.', 'multisite-ultimate' ), 'options' => [ - 'none' => __('None', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'verified' => __('Verified', 'multisite-ultimate'), + 'none' => __('None', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'verified' => __('Verified', 'ultimate-multisite'), ], 'value' => $this->get_object()->get_email_verification(), 'tooltip' => '', @@ -890,7 +890,7 @@ public function register_widgets(): void { ], 'confirm_membership' => [ 'type' => 'toggle', - 'title' => __('Activate Memberships', 'multisite-ultimate'), + 'title' => __('Activate Memberships', 'ultimate-multisite'), 'desc' => __( 'If you toggle this option, this change in status will also activate the related pending memberships. If any sites are pending, they are also going to be published automatically.', 'multisite-ultimate' @@ -903,7 +903,7 @@ public function register_widgets(): void { ], 'send_verification' => [ 'type' => 'submit', - 'title' => __('Re-send Verification Email →', 'multisite-ultimate'), + 'title' => __('Re-send Verification Email →', 'ultimate-multisite'), 'value' => 'send_verification', 'classes' => 'button wu-w-full', 'wrapper_html_attr' => [ @@ -924,7 +924,7 @@ public function register_widgets(): void { ], 'transfer' => [ 'type' => 'link', - 'display_value' => __('Transfer Customer', 'multisite-ultimate'), + 'display_value' => __('Transfer Customer', 'ultimate-multisite'), 'wrapper_classes' => 'wu-bg-gray-200', 'classes' => 'button wubox wu-w-full wu-text-center', 'wrapper_html_attr' => [ @@ -939,7 +939,7 @@ public function register_widgets(): void { 'target_user_id' => '', ] ) . "=' + user_id", - 'title' => __('Transfer Customer', 'multisite-ultimate'), + 'title' => __('Transfer Customer', 'ultimate-multisite'), ], ], ], @@ -949,11 +949,11 @@ public function register_widgets(): void { $this->add_fields_widget( 'last-login', [ - 'title' => __('Last Login & IPs', 'multisite-ultimate'), + 'title' => __('Last Login & IPs', 'ultimate-multisite'), 'fields' => [ 'last_login' => [ 'edit' => true, - 'title' => __('Last Login', 'multisite-ultimate'), + 'title' => __('Last Login', 'ultimate-multisite'), 'type' => 'text-edit', 'date' => true, 'value' => $this->edit ? $this->get_object()->get_last_login(false) : __( @@ -969,12 +969,12 @@ public function register_widgets(): void { ], ], 'ips' => [ - 'title' => __('IP Address', 'multisite-ultimate'), + 'title' => __('IP Address', 'ultimate-multisite'), 'type' => 'text-edit', 'display_value' => $this->get_object()->get_last_ip(), ], 'country' => [ - 'title' => __('IP Address Country', 'multisite-ultimate'), + 'title' => __('IP Address Country', 'ultimate-multisite'), 'type' => 'text-edit', 'display_value' => [$this, 'render_country'], ], @@ -1017,7 +1017,7 @@ public function render_country() { */ public function get_title() { - return $this->edit ? __('Edit Customer', 'multisite-ultimate') : __('Add new Customer', 'multisite-ultimate'); + return $this->edit ? __('Edit Customer', 'ultimate-multisite') : __('Add new Customer', 'ultimate-multisite'); } /** @@ -1028,7 +1028,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Customer', 'multisite-ultimate'); + return __('Edit Customer', 'ultimate-multisite'); } /** @@ -1051,15 +1051,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Customer', 'multisite-ultimate'), - 'add_new_label' => __('Add new Customer', 'multisite-ultimate'), - 'updated_message' => __('Customer updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Customer', 'multisite-ultimate'), + 'edit_label' => __('Edit Customer', 'ultimate-multisite'), + 'add_new_label' => __('Add new Customer', 'ultimate-multisite'), + 'updated_message' => __('Customer updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Customer', 'ultimate-multisite'), 'title_description' => '', - 'save_button_label' => __('Save Customer', 'multisite-ultimate'), + 'save_button_label' => __('Save Customer', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Customer', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Customer', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } @@ -1278,7 +1278,7 @@ public function handle_send_verification_notice(): void { if (isset($_GET['notice_verification_sent'])) : // phpcs:ignore WordPress.Security.NonceVerification ?>
-

+

'type', ], 'options' => [ - 'existing' => __('Existing User', 'multisite-ultimate'), - 'new' => __('Invite New', 'multisite-ultimate'), + 'existing' => __('Existing User', 'ultimate-multisite'), + 'new' => __('Invite New', 'ultimate-multisite'), ], ], 'user_id' => [ 'type' => 'model', - 'title' => __('Existing User', 'multisite-ultimate'), - 'placeholder' => __('Search WordPress user...', 'multisite-ultimate'), + 'title' => __('Existing User', 'ultimate-multisite'), + 'placeholder' => __('Search WordPress user...', 'ultimate-multisite'), 'tooltip' => '', 'min' => 1, 'wrapper_html_attr' => [ @@ -206,24 +206,24 @@ public function render_add_new_customer_modal(): void { ], 'username' => [ 'type' => 'text', - 'title' => __('Username', 'multisite-ultimate'), - 'placeholder' => __('E.g. johnsmith', 'multisite-ultimate'), + 'title' => __('Username', 'ultimate-multisite'), + 'placeholder' => __('E.g. johnsmith', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new')", ], ], 'email_address' => [ 'type' => 'email', - 'title' => __('Email Address', 'multisite-ultimate'), - 'placeholder' => __('E.g. customer@wpultimo.dev', 'multisite-ultimate'), + 'title' => __('Email Address', 'ultimate-multisite'), + 'placeholder' => __('E.g. customer@wpultimo.dev', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new')", ], ], 'set_password' => [ 'type' => 'toggle', - 'title' => __('Set Password', 'multisite-ultimate'), - 'desc' => __('If not set, the user will be asked to set a password after accepting the invite.', 'multisite-ultimate'), + 'title' => __('Set Password', 'ultimate-multisite'), + 'desc' => __('If not set, the user will be asked to set a password after accepting the invite.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new')", ], @@ -233,15 +233,15 @@ public function render_add_new_customer_modal(): void { ], 'password' => [ 'type' => 'password', - 'title' => __('Password', 'multisite-ultimate'), - 'placeholder' => __('E.g. p@$$w0rd', 'multisite-ultimate'), + 'title' => __('Password', 'ultimate-multisite'), + 'placeholder' => __('E.g. p@$$w0rd', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'new') && require('set_password', true)", ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Create Customer', 'multisite-ultimate'), + 'title' => __('Create Customer', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -332,8 +332,8 @@ public function register_widgets() {} public function get_labels() { return [ - 'deleted_message' => __('Customer removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Customer', 'multisite-ultimate'), + 'deleted_message' => __('Customer removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Customer', 'ultimate-multisite'), ]; } @@ -345,7 +345,7 @@ public function get_labels() { */ public function get_title() { - return __('Customers', 'multisite-ultimate'); + return __('Customers', 'ultimate-multisite'); } /** @@ -356,7 +356,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Customers', 'multisite-ultimate'); + return __('Customers', 'ultimate-multisite'); } /** @@ -367,7 +367,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Customers', 'multisite-ultimate'); + return __('Customers', 'ultimate-multisite'); } /** @@ -380,13 +380,13 @@ public function action_links() { return [ [ - 'label' => __('Add Customer', 'multisite-ultimate'), + 'label' => __('Add Customer', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_customer'), ], [ - 'label' => __('Export as CSV', 'multisite-ultimate'), + 'label' => __('Export as CSV', 'ultimate-multisite'), 'icon' => 'wu-export', 'url' => add_query_arg( [ diff --git a/inc/admin-pages/class-dashboard-admin-page.php b/inc/admin-pages/class-dashboard-admin-page.php index c13a6df05..97a55e9c3 100644 --- a/inc/admin-pages/class-dashboard-admin-page.php +++ b/inc/admin-pages/class-dashboard-admin-page.php @@ -137,17 +137,17 @@ public function render_filter($page): void { if ('wp-ultimo' === $page->id) { $preset_options = [ 'last_7_days' => [ - 'label' => __('Last 7 days', 'multisite-ultimate'), + 'label' => __('Last 7 days', 'ultimate-multisite'), 'start_date' => date_i18n('Y-m-d', strtotime('-7 days')), 'end_date' => date_i18n('Y-m-d'), ], 'last_30_days' => [ - 'label' => __('Last 30 days', 'multisite-ultimate'), + 'label' => __('Last 30 days', 'ultimate-multisite'), 'start_date' => date_i18n('Y-m-d', strtotime('-30 days')), 'end_date' => date_i18n('Y-m-d'), ], 'year_to_date' => [ - 'label' => __('Year to date', 'multisite-ultimate'), + 'label' => __('Year to date', 'ultimate-multisite'), 'start_date' => date_i18n('Y-m-d', strtotime('first day of january this year')), 'end_date' => date_i18n('Y-m-d'), ], @@ -180,7 +180,7 @@ public function get_views() { 'general' => [ 'field' => 'type', 'url' => add_query_arg('tab', 'general'), - 'label' => __('General', 'multisite-ultimate'), + 'label' => __('General', 'ultimate-multisite'), 'count' => 0, ], ]; @@ -230,16 +230,16 @@ public function register_widgets(): void { [ [ 'id' => 'your-dashboard', - 'title' => __('Our dashboard', 'multisite-ultimate'), + 'title' => __('Our dashboard', 'ultimate-multisite'), 'text' => [ - __('This is the Multisite Ultimate Dashboard, where you will find most of the important information you will need regarding your business\' performance.', 'multisite-ultimate'), + __('This is the Multisite Ultimate Dashboard, where you will find most of the important information you will need regarding your business\' performance.', 'ultimate-multisite'), ], ], [ 'id' => 'documentation', - 'title' => __('Learning more', 'multisite-ultimate'), + 'title' => __('Learning more', 'ultimate-multisite'), 'text' => [ - __('Most of the Multisite Ultimate admin pages will contain a link like this one at the top. These will link directly to the relevant knowledge base page on the Multisite Ultimate site.', 'multisite-ultimate'), + __('Most of the Multisite Ultimate admin pages will contain a link like this one at the top. These will link directly to the relevant knowledge base page on the Multisite Ultimate site.', 'ultimate-multisite'), ], 'attachTo' => [ 'element' => '#wp-ultimo-wrap > h1 > a:last-child', @@ -248,9 +248,9 @@ public function register_widgets(): void { ], [ 'id' => 'mrr-growth', - 'title' => __('It\'s all about growth!', 'multisite-ultimate'), + 'title' => __('It\'s all about growth!', 'ultimate-multisite'), 'text' => [ - __('This graph allows you to follow how your monthly recurring revenue is growing this year.', 'multisite-ultimate'), + __('This graph allows you to follow how your monthly recurring revenue is growing this year.', 'ultimate-multisite'), ], 'attachTo' => [ 'element' => '#wp-ultimo-mrr-growth', @@ -259,10 +259,10 @@ public function register_widgets(): void { ], [ 'id' => 'tailor-made', - 'title' => __('Date-range support', 'multisite-ultimate'), + 'title' => __('Date-range support', 'ultimate-multisite'), 'text' => [ - __('Checking statistics and comparing data for different periods is key in maintaining a good grasp on your business.', 'multisite-ultimate'), - __('You can use the date-range selectors to have access to just the data you need and nothing more.', 'multisite-ultimate'), + __('Checking statistics and comparing data for different periods is key in maintaining a good grasp on your business.', 'ultimate-multisite'), + __('You can use the date-range selectors to have access to just the data you need and nothing more.', 'ultimate-multisite'), ], 'attachTo' => [ 'element' => '#dashboard-filters', @@ -286,18 +286,18 @@ public function register_widgets(): void { public function register_general_tab_widgets($tab, $screen): void { if (current_user_can('wu_read_financial')) { - add_meta_box('wp-ultimo-mrr-growth', __('Monthly Recurring Revenue Growth', 'multisite-ultimate'), [$this, 'output_widget_mrr_growth'], $screen->id, 'full', 'high'); + add_meta_box('wp-ultimo-mrr-growth', __('Monthly Recurring Revenue Growth', 'ultimate-multisite'), [$this, 'output_widget_mrr_growth'], $screen->id, 'full', 'high'); - add_meta_box('wp-ultimo-revenue', __('Revenue', 'multisite-ultimate'), [$this, 'output_widget_revenues'], $screen->id, 'normal', 'high'); + add_meta_box('wp-ultimo-revenue', __('Revenue', 'ultimate-multisite'), [$this, 'output_widget_revenues'], $screen->id, 'normal', 'high'); } - add_meta_box('wp-ultimo-countries', __('Signups by Countries', 'multisite-ultimate'), [$this, 'output_widget_countries'], $screen->id, 'side', 'high'); + add_meta_box('wp-ultimo-countries', __('Signups by Countries', 'ultimate-multisite'), [$this, 'output_widget_countries'], $screen->id, 'side', 'high'); - add_meta_box('wp-ultimo-signups', __('Signups by Form', 'multisite-ultimate'), [$this, 'output_widget_forms'], $screen->id, 'side', 'high'); + add_meta_box('wp-ultimo-signups', __('Signups by Form', 'ultimate-multisite'), [$this, 'output_widget_forms'], $screen->id, 'side', 'high'); - add_meta_box('wp-ultimo-most-visited-sites', __('Most Visited Sites', 'multisite-ultimate'), [$this, 'output_widget_most_visited_sites'], $screen->id, 'side', 'low'); + add_meta_box('wp-ultimo-most-visited-sites', __('Most Visited Sites', 'ultimate-multisite'), [$this, 'output_widget_most_visited_sites'], $screen->id, 'side', 'low'); - add_meta_box('wp-ultimo-new-accounts', __('New Memberships', 'multisite-ultimate'), [$this, 'output_widget_new_accounts'], $screen->id, 'normal', 'low'); + add_meta_box('wp-ultimo-new-accounts', __('New Memberships', 'ultimate-multisite'), [$this, 'output_widget_new_accounts'], $screen->id, 'normal', 'low'); } /** @@ -449,7 +449,7 @@ function ($item) { * Add edge case for no plan. */ $products['none'] = (object) [ - 'name' => __('No Product', 'multisite-ultimate'), + 'name' => __('No Product', 'ultimate-multisite'), 'count' => 0, ]; @@ -514,8 +514,8 @@ public function register_scripts(): void { 'today' => date_i18n('Y-m-d', strtotime('tomorrow')), 'month_list' => $month_list, 'i18n' => [ - 'new_mrr' => __('New MRR', 'multisite-ultimate'), - 'cancellations' => __('Cancellations', 'multisite-ultimate'), + 'new_mrr' => __('New MRR', 'ultimate-multisite'), + 'cancellations' => __('Cancellations', 'ultimate-multisite'), ], ] ); @@ -537,7 +537,7 @@ public function register_scripts(): void { */ public function get_title() { - return __('Dashboard', 'multisite-ultimate'); + return __('Dashboard', 'ultimate-multisite'); } /** @@ -548,7 +548,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Multisite WaaS', 'multisite-ultimate'); + return __('Multisite WaaS', 'ultimate-multisite'); } /** @@ -559,7 +559,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Dashboard', 'multisite-ultimate'); + return __('Dashboard', 'ultimate-multisite'); } /** @@ -617,7 +617,7 @@ public function render_csv_button($args): void { ', - esc_html__('CSV', 'multisite-ultimate'), + esc_html__('CSV', 'ultimate-multisite'), esc_attr($slug), esc_attr($header_strings), esc_attr($data_strings), diff --git a/inc/admin-pages/class-discount-code-edit-admin-page.php b/inc/admin-pages/class-discount-code-edit-admin-page.php index 25660b4f7..ea2152b31 100644 --- a/inc/admin-pages/class-discount-code-edit-admin-page.php +++ b/inc/admin-pages/class-discount-code-edit-admin-page.php @@ -94,13 +94,13 @@ public function register_widgets(): void { $this->add_fields_widget( 'description', [ - 'title' => __('Description', 'multisite-ultimate'), + 'title' => __('Description', 'ultimate-multisite'), 'position' => 'normal', 'fields' => [ 'description' => [ 'type' => 'textarea', - 'title' => __('Description', 'multisite-ultimate'), - 'placeholder' => __('Tell your customers what this product is about.', 'multisite-ultimate'), + 'title' => __('Description', 'ultimate-multisite'), + 'placeholder' => __('Tell your customers what this product is about.', 'ultimate-multisite'), 'value' => $this->get_object()->get_description(), 'html_attr' => [ 'rows' => 3, @@ -114,30 +114,30 @@ public function register_widgets(): void { $options = [ 'general' => [ - 'title' => __('Limit Uses', 'multisite-ultimate'), + 'title' => __('Limit Uses', 'ultimate-multisite'), 'icon' => 'dashicons-wu-lock', - 'desc' => __('Rules and limitations to the applicability of this discount code.', 'multisite-ultimate'), + 'desc' => __('Rules and limitations to the applicability of this discount code.', 'ultimate-multisite'), 'fields' => [ 'uses' => [ - 'title' => __('Uses', 'multisite-ultimate'), + 'title' => __('Uses', 'ultimate-multisite'), 'type' => 'text-display', // translators: %d is the number of times the coupon was used. - 'display_value' => sprintf(__('This discount code was used %d times.', 'multisite-ultimate'), $this->get_object()->get_uses()), - 'tooltip' => __('The number of times that this discount code was used so far.', 'multisite-ultimate'), + 'display_value' => sprintf(__('This discount code was used %d times.', 'ultimate-multisite'), $this->get_object()->get_uses()), + 'tooltip' => __('The number of times that this discount code was used so far.', 'ultimate-multisite'), ], 'max_uses' => [ - 'title' => __('Max Uses', 'multisite-ultimate'), - 'desc' => __('Use this option to set a limit on how many times this discount code can be used. Leave blank or 0 for unlimited uses.', 'multisite-ultimate'), + 'title' => __('Max Uses', 'ultimate-multisite'), + 'desc' => __('Use this option to set a limit on how many times this discount code can be used. Leave blank or 0 for unlimited uses.', 'ultimate-multisite'), 'type' => 'number', 'min' => 0, 'placeholder' => 0, - 'value' => $this->get_object()->has_max_uses() ? $this->get_object()->get_max_uses() : __('Unlimited', 'multisite-ultimate'), + 'value' => $this->get_object()->has_max_uses() ? $this->get_object()->get_max_uses() : __('Unlimited', 'ultimate-multisite'), ], ], ], 'time' => [ - 'title' => __('Start & Expiration Dates', 'multisite-ultimate'), - 'desc' => __('Define a start and end date for this discount code. Useful when running campaigns for a pre-determined period.', 'multisite-ultimate'), + 'title' => __('Start & Expiration Dates', 'ultimate-multisite'), + 'desc' => __('Define a start and end date for this discount code. Useful when running campaigns for a pre-determined period.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-calendar', 'state' => [ 'enable_date_start' => $this->get_object()->get_date_start(), @@ -146,19 +146,19 @@ public function register_widgets(): void { 'fields' => [ 'enable_date_start' => [ 'type' => 'toggle', - 'title' => __('Enable Start Date', 'multisite-ultimate'), - 'desc' => __('Allows you to set a start date for this coupon code.', 'multisite-ultimate'), + 'title' => __('Enable Start Date', 'ultimate-multisite'), + 'desc' => __('Allows you to set a start date for this coupon code.', 'ultimate-multisite'), 'value' => 1, 'html_attr' => [ 'v-model' => 'enable_date_start', ], ], 'date_start' => [ - 'title' => __('Start Date', 'multisite-ultimate'), - 'desc' => __('The discount code will only be good to be used after this date.', 'multisite-ultimate') . ' ' . $tz_note, + 'title' => __('Start Date', 'ultimate-multisite'), + 'desc' => __('The discount code will only be good to be used after this date.', 'ultimate-multisite') . ' ' . $tz_note, 'type' => 'text', 'date' => true, - 'value' => $this->edit ? $this->get_object()->get_date_start() : __('No date', 'multisite-ultimate'), + 'value' => $this->edit ? $this->get_object()->get_date_start() : __('No date', 'ultimate-multisite'), 'placeholder' => 'E.g. 2020-04-04 12:00:00', 'wrapper_html_attr' => [ 'v-cloak' => 1, @@ -173,19 +173,19 @@ public function register_widgets(): void { ], 'enable_date_expiration' => [ 'type' => 'toggle', - 'title' => __('Enable Expiration Date', 'multisite-ultimate'), - 'desc' => __('Allows you to set an expiration date for this coupon code.', 'multisite-ultimate'), + 'title' => __('Enable Expiration Date', 'ultimate-multisite'), + 'desc' => __('Allows you to set an expiration date for this coupon code.', 'ultimate-multisite'), 'value' => 1, 'html_attr' => [ 'v-model' => 'enable_date_expiration', ], ], 'date_expiration' => [ - 'title' => __('Expiration Date', 'multisite-ultimate'), - 'desc' => __('The discount code will expire after this date.', 'multisite-ultimate') . ' ' . $tz_note, + 'title' => __('Expiration Date', 'ultimate-multisite'), + 'desc' => __('The discount code will expire after this date.', 'ultimate-multisite') . ' ' . $tz_note, 'type' => 'text', 'date' => true, - 'value' => $this->edit ? $this->get_object()->get_date_expiration() : __('Never Expires', 'multisite-ultimate'), + 'value' => $this->edit ? $this->get_object()->get_date_expiration() : __('Never Expires', 'ultimate-multisite'), 'placeholder' => 'E.g. 2020-04-04 12:00:00', 'wrapper_html_attr' => [ 'v-cloak' => 1, @@ -201,8 +201,8 @@ public function register_widgets(): void { ], ], 'products' => [ - 'title' => __('Limit Products', 'multisite-ultimate'), - 'desc' => __('Determine if you want this discount code to apply to all discountable products or not.', 'multisite-ultimate'), + 'title' => __('Limit Products', 'ultimate-multisite'), + 'desc' => __('Determine if you want this discount code to apply to all discountable products or not.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-price-tag', 'state' => [ 'limit_products' => $this->get_object()->get_limit_products(), @@ -211,8 +211,8 @@ public function register_widgets(): void { [ 'limit_products' => [ 'type' => 'toggle', - 'title' => __('Select Products', 'multisite-ultimate'), - 'desc' => __('Manually select to which products this discount code should be applicable.', 'multisite-ultimate'), + 'title' => __('Select Products', 'ultimate-multisite'), + 'desc' => __('Manually select to which products this discount code should be applicable.', 'ultimate-multisite'), 'value' => 1, 'html_attr' => [ 'v-model' => 'limit_products', @@ -227,7 +227,7 @@ public function register_widgets(): void { $this->add_tabs_widget( 'options', [ - 'title' => __('Advanced Options', 'multisite-ultimate'), + 'title' => __('Advanced Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => apply_filters('wu_discount_code_options_sections', $options, $this->get_object()), ] @@ -241,7 +241,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -265,10 +265,10 @@ public function register_widgets(): void { ], 'fields' => [ 'code' => [ - 'title' => __('Coupon Code', 'multisite-ultimate'), + 'title' => __('Coupon Code', 'ultimate-multisite'), 'type' => 'text', - 'placeholder' => __('E.g. XMAS10OFF', 'multisite-ultimate'), - 'desc' => __('The actual code your customers will enter during checkout.', 'multisite-ultimate'), + 'placeholder' => __('E.g. XMAS10OFF', 'ultimate-multisite'), + 'desc' => __('The actual code your customers will enter during checkout.', 'ultimate-multisite'), 'value' => $this->get_object()->get_code(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -281,7 +281,7 @@ public function register_widgets(): void { ], 'value_group' => [ 'type' => 'group', - 'title' => __('Discount', 'multisite-ultimate'), + 'title' => __('Discount', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-cloak' => '1', ], @@ -292,9 +292,9 @@ public function register_widgets(): void { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'percentage' => __('Percentage (%)', 'multisite-ultimate'), + 'percentage' => __('Percentage (%)', 'ultimate-multisite'), // translators: %s is the currency symbol. e.g. $ - 'absolute' => sprintf(__('Absolute (%s)', 'multisite-ultimate'), wu_get_currency_symbol()), + 'absolute' => sprintf(__('Absolute (%s)', 'ultimate-multisite'), wu_get_currency_symbol()), ], 'html_attr' => [ 'v-model' => 'type', @@ -315,8 +315,8 @@ public function register_widgets(): void { ], 'apply_to_renewals' => [ 'type' => 'toggle', - 'title' => __('Apply to Renewals', 'multisite-ultimate'), - 'desc' => __('By default, discounts are only applied to the first payment.', 'multisite-ultimate'), + 'title' => __('Apply to Renewals', 'ultimate-multisite'), + 'desc' => __('By default, discounts are only applied to the first payment.', 'ultimate-multisite'), 'value' => $this->get_object()->should_apply_to_renewals(), 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -324,8 +324,8 @@ public function register_widgets(): void { ], 'apply_to_setup_fee' => [ 'type' => 'toggle', - 'title' => __('Setup Fee Discount', 'multisite-ultimate'), - 'desc' => __('Also set a discount for setup fee?', 'multisite-ultimate'), + 'title' => __('Setup Fee Discount', 'ultimate-multisite'), + 'desc' => __('Also set a discount for setup fee?', 'ultimate-multisite'), 'value' => $this->get_object()->get_setup_fee_value() > 0, 'html_attr' => [ 'v-model' => 'apply_to_setup_fee', @@ -336,7 +336,7 @@ public function register_widgets(): void { ], 'setup_fee_value_group' => [ 'type' => 'group', - 'title' => __('Setup Fee Discount', 'multisite-ultimate'), + 'title' => __('Setup Fee Discount', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'apply_to_setup_fee', 'v-cloak' => '1', @@ -348,9 +348,9 @@ public function register_widgets(): void { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'percentage' => __('Percentage (%)', 'multisite-ultimate'), + 'percentage' => __('Percentage (%)', 'ultimate-multisite'), // translators: %s is the currency symbol. e.g. $ - 'absolute' => sprintf(__('Absolute (%s)', 'multisite-ultimate'), wu_get_currency_symbol()), + 'absolute' => sprintf(__('Absolute (%s)', 'ultimate-multisite'), wu_get_currency_symbol()), ], 'html_attr' => [ 'v-model' => 'setup_fee_type', @@ -375,12 +375,12 @@ public function register_widgets(): void { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this discount code for new sign-ups.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this discount code for new sign-ups.', 'ultimate-multisite'), 'value' => $this->get_object()->is_active(), ], ], @@ -404,7 +404,7 @@ protected function get_product_field_list() { $fields[ "allowed_products_{$product_id}" ] = [ 'type' => 'toggle', 'title' => $product->get_name(), - 'desc' => __('Make applicable to this product.', 'multisite-ultimate'), + 'desc' => __('Make applicable to this product.', 'ultimate-multisite'), 'tooltip' => '', 'wrapper_classes' => '', 'html_attr' => [ @@ -432,7 +432,7 @@ protected function get_product_field_list() { $fields['allowed_products_no_products'] = [ 'type' => 'note', 'title' => '', - 'desc' => __('You do not have any products at this moment.', 'multisite-ultimate'), + 'desc' => __('You do not have any products at this moment.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-cloak' => 1, 'v-show' => 'limit_products', @@ -453,7 +453,7 @@ public function handle_legacy_options(): void { global $wp_filter; - $tabs = [__('Legacy Add-ons', 'multisite-ultimate')]; + $tabs = [__('Legacy Add-ons', 'ultimate-multisite')]; if ( ! isset($wp_filter['wp_ultimo_coupon_advanced_options'])) { return; @@ -466,9 +466,9 @@ public function handle_legacy_options(): void { $fields = [ 'heading' => [ 'type' => 'header', - 'title' => __('Legacy Options', 'multisite-ultimate'), + 'title' => __('Legacy Options', 'ultimate-multisite'), // translators: %s is the comma-separated list of legacy add-ons. - 'desc' => sprintf(__('Options for %s, and others.', 'multisite-ultimate'), implode(', ', $tabs)), + 'desc' => sprintf(__('Options for %s, and others.', 'ultimate-multisite'), implode(', ', $tabs)), ], ]; @@ -488,7 +488,7 @@ public function handle_legacy_options(): void { $this->add_fields_widget( 'legacy-options', [ - 'title' => __('Legacy Options', 'multisite-ultimate'), + 'title' => __('Legacy Options', 'ultimate-multisite'), 'position' => 'normal', 'fields' => $fields, 'classes' => 'wu-legacy-options-panel', @@ -545,7 +545,7 @@ public function query_filter($args) { */ public function get_title() { - return $this->edit ? __('Edit Discount Code', 'multisite-ultimate') : __('Add new Discount Code', 'multisite-ultimate'); + return $this->edit ? __('Edit Discount Code', 'ultimate-multisite') : __('Add new Discount Code', 'ultimate-multisite'); } /** @@ -556,7 +556,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Discount Code', 'multisite-ultimate'); + return __('Edit Discount Code', 'ultimate-multisite'); } /** @@ -579,15 +579,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Discount Code', 'multisite-ultimate'), - 'add_new_label' => __('Add new Discount Code', 'multisite-ultimate'), - 'updated_message' => __('Discount Code updated successfully!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Discount Code', 'multisite-ultimate'), + 'edit_label' => __('Edit Discount Code', 'ultimate-multisite'), + 'add_new_label' => __('Add new Discount Code', 'ultimate-multisite'), + 'updated_message' => __('Discount Code updated successfully!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Discount Code', 'ultimate-multisite'), 'title_description' => '', - 'save_button_label' => __('Save Discount Code', 'multisite-ultimate'), + 'save_button_label' => __('Save Discount Code', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Discount Code', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Discount Code', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-discount-code-list-admin-page.php b/inc/admin-pages/class-discount-code-list-admin-page.php index 98391e239..1560c3736 100644 --- a/inc/admin-pages/class-discount-code-list-admin-page.php +++ b/inc/admin-pages/class-discount-code-list-admin-page.php @@ -71,8 +71,8 @@ public function register_widgets() {} public function get_labels() { return [ - 'deleted_message' => __('Discount Code removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Discount Code', 'multisite-ultimate'), + 'deleted_message' => __('Discount Code removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Discount Code', 'ultimate-multisite'), ]; } @@ -84,7 +84,7 @@ public function get_labels() { */ public function get_title() { - return __('Discount Codes', 'multisite-ultimate'); + return __('Discount Codes', 'ultimate-multisite'); } /** @@ -95,7 +95,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Discount Codes', 'multisite-ultimate'); + return __('Discount Codes', 'ultimate-multisite'); } /** @@ -106,7 +106,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Discount Codes', 'multisite-ultimate'); + return __('Discount Codes', 'ultimate-multisite'); } /** @@ -120,7 +120,7 @@ public function action_links() { return [ [ 'url' => wu_network_admin_url('wp-ultimo-edit-discount-code'), - 'label' => __('Add Discount Code', 'multisite-ultimate'), + 'label' => __('Add Discount Code', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', ], ]; diff --git a/inc/admin-pages/class-domain-edit-admin-page.php b/inc/admin-pages/class-domain-edit-admin-page.php index cee84a036..bbe3ef22a 100644 --- a/inc/admin-pages/class-domain-edit-admin-page.php +++ b/inc/admin-pages/class-domain-edit-admin-page.php @@ -164,7 +164,7 @@ public function domain_extra_delete_fields($fields, $domain) { $custom_fields = [ 'set_domain_as_primary' => [ 'type' => 'model', - 'title' => __('Set another domain as primary', 'multisite-ultimate'), + 'title' => __('Set another domain as primary', 'ultimate-multisite'), 'html_attr' => [ 'data-model' => 'domain', 'data-value-field' => 'id', @@ -180,16 +180,16 @@ public function domain_extra_delete_fields($fields, $domain) { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Deletion', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'multisite-ultimate'), - 'placeholder' => __('Delete', 'multisite-ultimate'), + 'title' => __('Delete', 'ultimate-multisite'), + 'placeholder' => __('Delete', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -241,14 +241,14 @@ public function register_widgets(): void { $this->add_fields_widget( 'domain-url', [ - 'title' => __('Domain URL', 'multisite-ultimate'), + 'title' => __('Domain URL', 'ultimate-multisite'), 'position' => 'normal', 'after' => [$this, 'render_dns_widget'], 'fields' => [ 'domain' => [ 'type' => 'text-display', - 'title' => __('Domain', 'multisite-ultimate'), - 'tooltip' => __('Editing an existing domain is not possible. If you want to make changes to this domain, first delete it, and then re-add the right domain.', 'multisite-ultimate'), + 'title' => __('Domain', 'ultimate-multisite'), + 'tooltip' => __('Editing an existing domain is not possible. If you want to make changes to this domain, first delete it, and then re-add the right domain.', 'ultimate-multisite'), 'display_value' => '' . $this->get_object()->get_domain() . ' ', ], ], @@ -258,12 +258,12 @@ public function register_widgets(): void { $this->add_tabs_widget( 'options', [ - 'title' => __('Domain Options', 'multisite-ultimate'), + 'title' => __('Domain Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => [ 'general' => [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General options for the domain.', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General options for the domain.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-globe', 'state' => [ 'primary_domain' => $this->get_object()->is_primary_domain(), @@ -271,9 +271,9 @@ public function register_widgets(): void { 'fields' => [ 'primary_domain' => [ 'type' => 'toggle', - 'title' => __('Is Primary Domain?', 'multisite-ultimate'), - 'desc' => __('Set as the primary domain.', 'multisite-ultimate'), - 'tooltip' => __('Setting this as the primary domain will remove any other domain mapping marked as the primary domain for this site.', 'multisite-ultimate'), + 'title' => __('Is Primary Domain?', 'ultimate-multisite'), + 'desc' => __('Set as the primary domain.', 'ultimate-multisite'), + 'tooltip' => __('Setting this as the primary domain will remove any other domain mapping marked as the primary domain for this site.', 'ultimate-multisite'), 'value' => $this->get_object()->is_primary_domain(), 'html_attr' => [ 'v-model' => 'primary_domain', @@ -281,15 +281,15 @@ public function register_widgets(): void { ], 'primary_note' => [ 'type' => 'note', - 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'multisite-ultimate'), + 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-if' => "require('primary_domain', true)", ], ], 'secure' => [ 'type' => 'toggle', - 'title' => __('Is Secure?', 'multisite-ultimate'), - 'desc' => __('Force the load using HTTPS.', 'multisite-ultimate'), + 'title' => __('Is Secure?', 'ultimate-multisite'), + 'desc' => __('Force the load using HTTPS.', 'ultimate-multisite'), 'value' => $this->get_object()->is_secure(), ], ], @@ -301,18 +301,18 @@ public function register_widgets(): void { $this->add_list_table_widget( 'sites', [ - 'title' => __('Linked Site', 'multisite-ultimate'), + 'title' => __('Linked Site', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Memberships_Site_List_Table(), 'query_filter' => [$this, 'sites_query_filter'], ] ); - add_meta_box('wp-ultimo-domain-log', __('Domain Test Log', 'multisite-ultimate'), [$this, 'render_log_widget'], get_current_screen()->id, 'normal', null); + add_meta_box('wp-ultimo-domain-log', __('Domain Test Log', 'ultimate-multisite'), [$this, 'render_log_widget'], get_current_screen()->id, 'normal', null); $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -332,9 +332,9 @@ public function register_widgets(): void { 'fields' => [ 'stage' => [ 'type' => 'select', - 'title' => __('Stage', 'multisite-ultimate'), - 'placeholder' => __('Select Stage', 'multisite-ultimate'), - 'desc' => __('The stage in the checking lifecycle of this domain.', 'multisite-ultimate'), + 'title' => __('Stage', 'ultimate-multisite'), + 'placeholder' => __('Select Stage', 'ultimate-multisite'), + 'desc' => __('The stage in the checking lifecycle of this domain.', 'ultimate-multisite'), 'options' => Domain_Stage::to_array(), 'value' => $this->get_object()->get_stage(), 'wrapper_html_attr' => [ @@ -347,9 +347,9 @@ public function register_widgets(): void { ], 'blog_id' => [ 'type' => 'model', - 'title' => __('Site', 'multisite-ultimate'), - 'placeholder' => __('Search Site...', 'multisite-ultimate'), - 'desc' => __('The target site of this domain.', 'multisite-ultimate'), + 'title' => __('Site', 'ultimate-multisite'), + 'placeholder' => __('Search Site...', 'ultimate-multisite'), + 'desc' => __('The target site of this domain.', 'ultimate-multisite'), 'value' => $this->get_object()->get_blog_id(), 'tooltip' => '', 'html_attr' => [ @@ -373,7 +373,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'basic', [ - 'title' => __('Active', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), 'html_attr' => [ 'data-wu-app' => 'basic', 'data-state' => wu_convert_to_state( @@ -385,8 +385,8 @@ public function register_widgets(): void { 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this domain.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this domain.', 'ultimate-multisite'), 'value' => $this->get_object()->is_active(), 'html_attr' => [ 'v-cloak' => '1', @@ -399,7 +399,7 @@ public function register_widgets(): void { ], 'note' => [ 'type' => 'note', - 'desc' => __('This domain has a domain stage that forces it to be inactive. Change the status to Ready or Ready (without SSL) to be able to control the active status directly.', 'multisite-ultimate'), + 'desc' => __('This domain has a domain stage that forces it to be inactive. Change the status to Ready or Ready (without SSL) to be able to control the active status directly.', 'ultimate-multisite'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => $check_for_active_string, @@ -452,7 +452,7 @@ public function render_log_widget(): void { */ public function get_title() { - return $this->edit ? __('Edit Domain', 'multisite-ultimate') : __('Add new Domain', 'multisite-ultimate'); + return $this->edit ? __('Edit Domain', 'ultimate-multisite') : __('Add new Domain', 'ultimate-multisite'); } /** @@ -463,7 +463,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Domain', 'multisite-ultimate'); + return __('Edit Domain', 'ultimate-multisite'); } /** @@ -486,15 +486,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Domain', 'multisite-ultimate'), - 'add_new_label' => __('Add new Domain', 'multisite-ultimate'), - 'updated_message' => __('Domain updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Domain', 'multisite-ultimate'), + 'edit_label' => __('Edit Domain', 'ultimate-multisite'), + 'add_new_label' => __('Add new Domain', 'ultimate-multisite'), + 'updated_message' => __('Domain updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Domain', 'ultimate-multisite'), 'title_description' => '', - 'save_button_label' => __('Save Domain', 'multisite-ultimate'), + 'save_button_label' => __('Save Domain', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Domain', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Domain', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-domain-list-admin-page.php b/inc/admin-pages/class-domain-list-admin-page.php index 3c12cd4b2..64700fbc4 100644 --- a/inc/admin-pages/class-domain-list-admin-page.php +++ b/inc/admin-pages/class-domain-list-admin-page.php @@ -93,14 +93,14 @@ public function render_add_new_domain_modal(): void { ); // translators: %s is the URL to the add-on. - $note_desc = sprintf(__('To activate this feature you need to install the Multisite Ultimate: Domain Seller add-on.', 'multisite-ultimate'), $addon_url); + $note_desc = sprintf(__('To activate this feature you need to install the Multisite Ultimate: Domain Seller add-on.', 'ultimate-multisite'), $addon_url); $fields = [ 'type' => [ 'type' => 'tab-select', 'options' => [ - 'add' => __('Add Existing Domain', 'multisite-ultimate'), - 'register' => __('Register New', 'multisite-ultimate'), + 'add' => __('Add Existing Domain', 'ultimate-multisite'), + 'register' => __('Register New', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'type', @@ -108,18 +108,18 @@ public function render_add_new_domain_modal(): void { ], 'domain' => [ 'type' => 'text', - 'title' => __('Domain', 'multisite-ultimate'), - 'placeholder' => __('E.g. mydomain.com', 'multisite-ultimate'), - 'desc' => __('Be sure the domain has the right DNS setup in place before adding it.', 'multisite-ultimate'), + 'title' => __('Domain', 'ultimate-multisite'), + 'placeholder' => __('E.g. mydomain.com', 'ultimate-multisite'), + 'desc' => __('Be sure the domain has the right DNS setup in place before adding it.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => "require('type', 'add')", ], ], 'blog_id' => [ 'type' => 'model', - 'title' => __('Apply to Site', 'multisite-ultimate'), - 'placeholder' => __('Search Sites...', 'multisite-ultimate'), - 'desc' => __('The target site of the domain being added.', 'multisite-ultimate'), + 'title' => __('Apply to Site', 'ultimate-multisite'), + 'placeholder' => __('Search Sites...', 'ultimate-multisite'), + 'desc' => __('The target site of the domain being added.', 'ultimate-multisite'), 'html_attr' => [ 'data-model' => 'site', 'data-value-field' => 'blog_id', @@ -133,30 +133,30 @@ public function render_add_new_domain_modal(): void { ], 'stage' => [ 'type' => 'select', - 'title' => __('Stage', 'multisite-ultimate'), - 'placeholder' => __('Select Stage', 'multisite-ultimate'), - 'desc' => __('The stage in the domain check lifecycle. Leave "Checking DNS" to have the domain go through Multisite Ultimate\'s automated tests.', 'multisite-ultimate'), + 'title' => __('Stage', 'ultimate-multisite'), + 'placeholder' => __('Select Stage', 'ultimate-multisite'), + 'desc' => __('The stage in the domain check lifecycle. Leave "Checking DNS" to have the domain go through Multisite Ultimate\'s automated tests.', 'ultimate-multisite'), 'options' => Domain_Stage::to_array(), 'value' => Domain_Stage::CHECKING_DNS, ], 'primary_domain' => [ 'type' => 'toggle', - 'title' => __('Primary Domain', 'multisite-ultimate'), - 'desc' => __('Check to set this domain as the primary', 'multisite-ultimate'), + 'title' => __('Primary Domain', 'ultimate-multisite'), + 'desc' => __('Check to set this domain as the primary', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'primary_domain', ], ], 'primary_note' => [ 'type' => 'note', - 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'multisite-ultimate'), + 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => "require('primary_domain', true)", ], ], 'submit_button_new' => [ 'type' => 'submit', - 'title' => __('Add Existing Domain', 'multisite-ultimate'), + 'title' => __('Add Existing Domain', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -174,7 +174,7 @@ public function render_add_new_domain_modal(): void { ], 'submit_button_register' => [ 'type' => 'submit', - 'title' => __('Register and Add Domain (soon)', 'multisite-ultimate'), + 'title' => __('Register and Add Domain (soon)', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -281,8 +281,8 @@ public function handle_add_new_domain_modal(): void { public function get_labels() { return [ - 'deleted_message' => __('Domains removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Domains', 'multisite-ultimate'), + 'deleted_message' => __('Domains removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Domains', 'ultimate-multisite'), ]; } @@ -294,7 +294,7 @@ public function get_labels() { */ public function get_title() { - return __('Domains', 'multisite-ultimate'); + return __('Domains', 'ultimate-multisite'); } /** @@ -305,7 +305,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Domains', 'multisite-ultimate'); + return __('Domains', 'ultimate-multisite'); } /** @@ -316,7 +316,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Domains', 'multisite-ultimate'); + return __('Domains', 'ultimate-multisite'); } /** @@ -329,7 +329,7 @@ public function action_links() { return [ [ - 'label' => __('Add Domain', 'multisite-ultimate'), + 'label' => __('Add Domain', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_domain'), diff --git a/inc/admin-pages/class-edit-admin-page.php b/inc/admin-pages/class-edit-admin-page.php index 564ab50b3..e8b86f32e 100644 --- a/inc/admin-pages/class-edit-admin-page.php +++ b/inc/admin-pages/class-edit-admin-page.php @@ -143,11 +143,11 @@ protected function add_lock_notices() { if ($locked && $this->edit) { // translators: %1$s is the date, using the site format options, %2$s is a
tag. - $message = sprintf(esc_html__('This item is locked from editions. %2$s This is probably due to a background action being performed (like a transfer between different accounts, for example). You can manually unlock it, but be careful. The lock should be released automatically in %1$s seconds.', 'multisite-ultimate'), wu_get_next_queue_run() + 10, '
'); + $message = sprintf(esc_html__('This item is locked from editions. %2$s This is probably due to a background action being performed (like a transfer between different accounts, for example). You can manually unlock it, but be careful. The lock should be released automatically in %1$s seconds.', 'ultimate-multisite'), wu_get_next_queue_run() + 10, '
'); $actions = [ 'preview' => [ - 'title' => esc_html__('Unlock', 'multisite-ultimate'), + 'title' => esc_html__('Unlock', 'ultimate-multisite'), 'url' => add_query_arg( [ 'remove-lock' => 1, @@ -266,15 +266,15 @@ final public function process_delete(): void { public function get_labels() { $default_labels = [ - 'edit_label' => __('Edit Object', 'multisite-ultimate'), - 'add_new_label' => __('Add New Object', 'multisite-ultimate'), - 'updated_message' => __('Object updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Object Name', 'multisite-ultimate'), + 'edit_label' => __('Edit Object', 'ultimate-multisite'), + 'add_new_label' => __('Add New Object', 'ultimate-multisite'), + 'updated_message' => __('Object updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Object Name', 'ultimate-multisite'), 'title_description' => '', - 'save_button_label' => __('Save', 'multisite-ultimate'), + 'save_button_label' => __('Save', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; return apply_filters('wu_edit_admin_page_labels', $default_labels); @@ -322,7 +322,7 @@ public function register_widgets() { $this->add_info_widget( 'info', [ - 'title' => __('Timestamps', 'multisite-ultimate'), + 'title' => __('Timestamps', 'ultimate-multisite'), 'position' => 'side-bottom', ] ); @@ -352,7 +352,7 @@ protected function add_info_widget($id, $atts = []) { $created_value = call_user_func([$this->get_object(), "get_$created_key"]); $atts['fields'][ $created_key ] = [ - 'title' => __('Created at', 'multisite-ultimate'), + 'title' => __('Created at', 'ultimate-multisite'), 'type' => 'text-display', 'date' => true, 'display_value' => $this->edit ? $created_value : false, @@ -369,10 +369,10 @@ protected function add_info_widget($id, $atts = []) { if ($this->edit && true === $show_modified) { $atts['fields']['date_modified'] = [ - 'title' => __('Last Modified at', 'multisite-ultimate'), + 'title' => __('Last Modified at', 'ultimate-multisite'), 'type' => 'text-display', 'date' => true, - 'display_value' => $this->edit ? $this->get_object()->get_date_modified() : __('No date', 'multisite-ultimate'), + 'display_value' => $this->edit ? $this->get_object()->get_date_modified() : __('No date', 'ultimate-multisite'), 'value' => $this->get_object()->get_date_modified(), 'placeholder' => '2020-04-04 12:00:00', 'html_attr' => [ @@ -403,7 +403,7 @@ protected function add_list_table_widget($id, $atts = []) { 'widget_id' => $id, 'before' => fn() => null, 'after' => fn() => null, - 'title' => __('List Table', 'multisite-ultimate'), + 'title' => __('List Table', 'ultimate-multisite'), 'position' => 'advanced', 'screen' => get_current_screen(), 'page' => $this, @@ -468,7 +468,7 @@ protected function add_fields_widget($id, $atts = []) { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Fields', 'multisite-ultimate'), + 'title' => __('Fields', 'ultimate-multisite'), 'position' => 'side', 'screen' => get_current_screen(), 'fields' => [], @@ -486,7 +486,7 @@ function () use ($atts) { if (wu_get_isset($atts['html_attr'], 'data-wu-app')) { $atts['fields']['loading'] = [ 'type' => 'note', - 'desc' => sprintf('
%s
', __('Loading...', 'multisite-ultimate')), + 'desc' => sprintf('
%s
', __('Loading...', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-if' => 0, ], @@ -537,7 +537,7 @@ protected function add_tabs_widget($id, $atts = []) { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Tabs', 'multisite-ultimate'), + 'title' => __('Tabs', 'ultimate-multisite'), 'position' => 'advanced', 'screen' => get_current_screen(), 'sections' => [], @@ -653,7 +653,7 @@ protected function add_widget($id, $atts = []) { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Fields', 'multisite-ultimate'), + 'title' => __('Fields', 'ultimate-multisite'), 'screen' => get_current_screen(), 'position' => 'side', 'display' => '__return_empty_string', @@ -676,7 +676,7 @@ protected function add_save_widget($id, $atts = []) { $labels = $this->get_labels(); - $atts['title'] = __('Save', 'multisite-ultimate'); + $atts['title'] = __('Save', 'ultimate-multisite'); /** * Adds Submit Button @@ -696,7 +696,7 @@ protected function add_save_widget($id, $atts = []) { } if ($this->get_object() && $this->edit && $this->get_object()->is_locked()) { - $atts['fields']['submit_save']['title'] = __('Locked', 'multisite-ultimate'); + $atts['fields']['submit_save']['title'] = __('Locked', 'ultimate-multisite'); $atts['fields']['submit_save']['value'] = 'none'; $atts['fields']['submit_save']['html_attr']['disabled'] = 'disabled'; } @@ -718,7 +718,7 @@ protected function add_delete_widget($id, $atts = []) { $labels = $this->get_labels(); $atts_default = [ - 'title' => __('Delete', 'multisite-ultimate'), + 'title' => __('Delete', 'ultimate-multisite'), 'position' => 'side-bottom', ]; $atts = array_merge($atts_default, $atts); diff --git a/inc/admin-pages/class-email-edit-admin-page.php b/inc/admin-pages/class-email-edit-admin-page.php index 6f26afecd..37422dbda 100644 --- a/inc/admin-pages/class-email-edit-admin-page.php +++ b/inc/admin-pages/class-email-edit-admin-page.php @@ -124,10 +124,10 @@ public function register_widgets(): void { $object = $this->get_object(); // translators: %s is replaced with the number of days. - $days_text = sprintf(__('Send %s day(s) after the event.', 'multisite-ultimate'), '{{ days }}'); + $days_text = sprintf(__('Send %s day(s) after the event.', 'ultimate-multisite'), '{{ days }}'); // translators: %1$s is replaced with the number of hours, %2$s is replaced with the number of minutes. - $hour_text = sprintf(__('Send %1$s hour(s) and %2$s minute(s) after the event.', 'multisite-ultimate'), '{{ hours.split(":").shift() }}', '{{ hours.split(":").pop() }}'); + $hour_text = sprintf(__('Send %1$s hour(s) and %2$s minute(s) after the event.', 'ultimate-multisite'), '{{ hours.split(":").shift() }}', '{{ hours.split(":").pop() }}'); $desc = sprintf( '%s @@ -155,8 +155,8 @@ public function register_widgets(): void { 'fields' => [ 'slug' => [ 'type' => 'text', - 'title' => __('Slug', 'multisite-ultimate'), - 'desc' => __('An unique identifier for this system email.', 'multisite-ultimate'), + 'title' => __('Slug', 'ultimate-multisite'), + 'desc' => __('An unique identifier for this system email.', 'ultimate-multisite'), 'value' => $this->edit ? $object->get_slug() : '', 'html_attr' => [ 'required' => 'required', @@ -166,9 +166,9 @@ public function register_widgets(): void { ], 'event' => [ 'type' => 'select', - 'title' => __('Event', 'multisite-ultimate'), - 'desc' => __('The event that will trigger the sending of this email.', 'multisite-ultimate'), - 'placeholder' => __('Event', 'multisite-ultimate'), + 'title' => __('Event', 'ultimate-multisite'), + 'desc' => __('The event that will trigger the sending of this email.', 'ultimate-multisite'), + 'placeholder' => __('Event', 'ultimate-multisite'), 'options' => 'wu_get_event_types_as_options', 'value' => $this->edit ? $object->get_event() : 0, 'html_attr' => [ @@ -177,13 +177,13 @@ public function register_widgets(): void { ], 'target' => [ 'type' => 'select', - 'title' => __('Target', 'multisite-ultimate'), - 'desc' => __('To whom this email should be sent.', 'multisite-ultimate'), - 'placeholder' => __('Network Administrators', 'multisite-ultimate'), + 'title' => __('Target', 'ultimate-multisite'), + 'desc' => __('To whom this email should be sent.', 'ultimate-multisite'), + 'placeholder' => __('Network Administrators', 'ultimate-multisite'), 'value' => $this->edit ? $object->get_target() : 'admin', 'options' => [ - 'admin' => __('Network Administrators', 'multisite-ultimate'), - 'customer' => __('Customer', 'multisite-ultimate'), + 'admin' => __('Network Administrators', 'ultimate-multisite'), + 'customer' => __('Customer', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'target', @@ -191,8 +191,8 @@ public function register_widgets(): void { ], 'send_copy_to_admin' => [ 'type' => 'toggle', - 'title' => __('Send Copy to Admins?', 'multisite-ultimate'), - 'desc' => __('Checking this options will add the network admins as bcc every time this email is sent to a customer.', 'multisite-ultimate'), + 'title' => __('Send Copy to Admins?', 'ultimate-multisite'), + 'desc' => __('Checking this options will add the network admins as bcc every time this email is sent to a customer.', 'ultimate-multisite'), 'value' => $this->edit ? $object->get_send_copy_to_admin() : false, 'wrapper_html_attr' => [ 'v-show' => 'target == "customer"', @@ -201,8 +201,8 @@ public function register_widgets(): void { ], 'schedule' => [ 'type' => 'toggle', - 'title' => __('Schedule?', 'multisite-ultimate'), - 'desc' => __('You can define when the email is sent after the event triggers.', 'multisite-ultimate'), + 'title' => __('Schedule?', 'ultimate-multisite'), + 'desc' => __('You can define when the email is sent after the event triggers.', 'ultimate-multisite'), 'value' => $this->edit ? $this->get_object()->has_schedule() : 0, 'html_attr' => [ 'v-model' => 'schedule', @@ -210,8 +210,8 @@ public function register_widgets(): void { ], 'send_date' => [ 'type' => 'group', - 'title' => __('Scheduling Options', 'multisite-ultimate'), - 'tooltip' => __('When this email will be sent after the event?', 'multisite-ultimate'), + 'title' => __('Scheduling Options', 'ultimate-multisite'), + 'tooltip' => __('When this email will be sent after the event?', 'ultimate-multisite'), 'desc' => $desc, 'desc_id' => 'send_date_desc', 'wrapper_html_attr' => [ @@ -225,8 +225,8 @@ public function register_widgets(): void { 'wrapper_classes' => 'wu-w-2/3', 'value' => $this->edit ? $object->get_schedule_type() : 'days', 'options' => [ - 'hours' => __('Delay for hours', 'multisite-ultimate'), - 'days' => __('Delay for days', 'multisite-ultimate'), + 'hours' => __('Delay for hours', 'ultimate-multisite'), + 'days' => __('Delay for days', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'schedule_type', @@ -271,17 +271,17 @@ public function register_widgets(): void { ] ); - add_meta_box('wp-ultimo-placeholders', __('Placeholders', 'multisite-ultimate'), [$this, 'output_default_widget_placeholders'], get_current_screen()->id, 'normal', null, []); + add_meta_box('wp-ultimo-placeholders', __('Placeholders', 'ultimate-multisite'), [$this, 'output_default_widget_placeholders'], get_current_screen()->id, 'normal', null, []); $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this email.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this email.', 'ultimate-multisite'), 'value' => $this->get_object()->is_active(), ], ], @@ -291,40 +291,40 @@ public function register_widgets(): void { $this->add_tabs_widget( 'email_edit_options', [ - 'title' => __('Advanced Options', 'multisite-ultimate'), + 'title' => __('Advanced Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => [ 'general' => [ - 'title' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), 'icon' => 'dashicons-wu-lock', - 'desc' => __('Rules and limitations to the applicability of this discount code.', 'multisite-ultimate'), + 'desc' => __('Rules and limitations to the applicability of this discount code.', 'ultimate-multisite'), 'state' => [ 'sender' => $this->edit ? $object->get_custom_sender() : 0, ], 'fields' => [ 'style' => [ 'type' => 'select', - 'title' => __('Email Style', 'multisite-ultimate'), - 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'multisite-ultimate'), - 'placeholder' => __('Style', 'multisite-ultimate'), + 'title' => __('Email Style', 'ultimate-multisite'), + 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'ultimate-multisite'), + 'placeholder' => __('Style', 'ultimate-multisite'), 'options' => [ - 'default' => __('Use Default', 'multisite-ultimate'), - 'html' => __('HTML Emails', 'multisite-ultimate'), - 'plain' => __('Plain Emails', 'multisite-ultimate'), + 'default' => __('Use Default', 'ultimate-multisite'), + 'html' => __('HTML Emails', 'ultimate-multisite'), + 'plain' => __('Plain Emails', 'ultimate-multisite'), ], 'value' => $this->edit ? $object->get_style() : 'html', ], ], ], 'sender' => [ - 'title' => __('Custom Sender', 'multisite-ultimate'), + 'title' => __('Custom Sender', 'ultimate-multisite'), 'icon' => 'dashicons-wu-mail', - 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'multisite-ultimate'), + 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'ultimate-multisite'), 'fields' => [ 'custom_sender' => [ 'type' => 'toggle', - 'title' => __('Use a custom sender?', 'multisite-ultimate'), - 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'multisite-ultimate'), + 'title' => __('Use a custom sender?', 'ultimate-multisite'), + 'desc' => __('You can define an email and a name that will only be used when this email is sent.', 'ultimate-multisite'), 'value' => $this->edit ? $object->get_custom_sender() : 0, 'html_attr' => [ 'v-model' => 'sender', @@ -332,8 +332,8 @@ public function register_widgets(): void { ], 'custom_sender_name' => [ 'type' => 'text', - 'title' => __('From "Name"', 'multisite-ultimate'), - 'desc' => __('Override the global from name for this particular email.', 'multisite-ultimate'), + 'title' => __('From "Name"', 'ultimate-multisite'), + 'desc' => __('Override the global from name for this particular email.', 'ultimate-multisite'), 'wrapper_classes' => 'wu-full', 'value' => $this->edit ? $object->get_custom_sender_name() : '', 'wrapper_html_attr' => [ @@ -343,8 +343,8 @@ public function register_widgets(): void { ], 'custom_sender_email' => [ 'type' => 'email', - 'title' => __('From "Email"', 'multisite-ultimate'), - 'desc' => __('Override the global from email for this particular email.', 'multisite-ultimate'), + 'title' => __('From "Email"', 'ultimate-multisite'), + 'desc' => __('Override the global from email for this particular email.', 'ultimate-multisite'), 'wrapper_classes' => 'wu-full', 'value' => $this->edit ? $object->get_custom_sender_email() : '', 'wrapper_html_attr' => [ @@ -373,8 +373,8 @@ public function output_default_widget_placeholders($unused, $data): void { wu_get_template( 'email/widget-placeholders', [ - 'title' => __('Event Payload', 'multisite-ultimate'), - 'loading_text' => __('Loading Payload', 'multisite-ultimate'), + 'title' => __('Event Payload', 'ultimate-multisite'), + 'loading_text' => __('Loading Payload', 'ultimate-multisite'), ] ); } @@ -387,7 +387,7 @@ public function output_default_widget_placeholders($unused, $data): void { */ public function get_title() { - return $this->edit ? __('Edit Email', 'multisite-ultimate') : __('Add new Email', 'multisite-ultimate'); + return $this->edit ? __('Edit Email', 'ultimate-multisite') : __('Add new Email', 'ultimate-multisite'); } /** @@ -398,7 +398,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Email', 'multisite-ultimate'); + return __('Edit Email', 'ultimate-multisite'); } /** @@ -420,12 +420,12 @@ public function action_links() { return [ [ 'url' => wu_network_admin_url('wp-ultimo-emails'), - 'label' => __('Go Back', 'multisite-ultimate'), + 'label' => __('Go Back', 'ultimate-multisite'), 'icon' => 'wu-reply', ], [ 'url' => $send_test_link, - 'label' => __('Send Test Email', 'multisite-ultimate'), + 'label' => __('Send Test Email', 'ultimate-multisite'), 'icon' => 'wu-mail', 'classes' => 'wubox', ], @@ -441,15 +441,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Email', 'multisite-ultimate'), - 'add_new_label' => __('Add new Email', 'multisite-ultimate'), - 'updated_message' => __('Email updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Email Subject', 'multisite-ultimate'), - 'title_description' => __('This will be used as the email subject line.', 'multisite-ultimate'), - 'save_button_label' => __('Save Email', 'multisite-ultimate'), + 'edit_label' => __('Edit Email', 'ultimate-multisite'), + 'add_new_label' => __('Add new Email', 'ultimate-multisite'), + 'updated_message' => __('Email updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Email Subject', 'ultimate-multisite'), + 'title_description' => __('This will be used as the email subject line.', 'ultimate-multisite'), + 'save_button_label' => __('Save Email', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Email', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Email', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-email-list-admin-page.php b/inc/admin-pages/class-email-list-admin-page.php index 7cee8f2e3..1b05c0026 100644 --- a/inc/admin-pages/class-email-list-admin-page.php +++ b/inc/admin-pages/class-email-list-admin-page.php @@ -102,7 +102,7 @@ public function register_widgets() {} */ public function get_title() { - return __('System Emails', 'multisite-ultimate'); + return __('System Emails', 'ultimate-multisite'); } /** @@ -113,7 +113,7 @@ public function get_title() { */ public function get_menu_title() { - return __('System Emails', 'multisite-ultimate'); + return __('System Emails', 'ultimate-multisite'); } /** @@ -124,7 +124,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('System Emails', 'multisite-ultimate'); + return __('System Emails', 'ultimate-multisite'); } /** @@ -182,9 +182,9 @@ public function render_send_new_test_modal(): void { $fields = [ 'send_to' => [ 'type' => 'email', - 'title' => __('Send To', 'multisite-ultimate'), - 'placeholder' => __('E.g. network@email.com', 'multisite-ultimate'), - 'desc' => __('The test email will be sent to the above email address.', 'multisite-ultimate'), + 'title' => __('Send To', 'ultimate-multisite'), + 'placeholder' => __('E.g. network@email.com', 'ultimate-multisite'), + 'desc' => __('The test email will be sent to the above email address.', 'ultimate-multisite'), 'value' => get_network_option(null, 'admin_email'), 'html_attr' => [ 'required' => 'required', @@ -200,7 +200,7 @@ public function render_send_new_test_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Send Test Email', 'multisite-ultimate'), + 'title' => __('Send Test Email', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-right', @@ -236,7 +236,7 @@ public function handle_send_new_test_modal() { $send_to = wu_request('send_to'); if ( ! $email_id || ! $send_to) { - $error = new \WP_Error('error', __('Something wrong happened.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('Something wrong happened.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -275,7 +275,7 @@ public function handle_send_new_test_modal() { $send_mail = wu_send_mail($from, $to, $args); if ( ! $send_mail) { - $error = new \WP_Error('error', __('Something wrong happened with your test.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('Something wrong happened with your test.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -289,7 +289,7 @@ public function handle_send_new_test_modal() { 'wp-ultimo-edit-email', [ 'id' => $email_id, - 'test_notice' => __('Test sent successfully', 'multisite-ultimate'), + 'test_notice' => __('Test sent successfully', 'ultimate-multisite'), ] ), ] @@ -303,7 +303,7 @@ public function handle_send_new_test_modal() { 'redirect_url' => wu_network_admin_url( 'wp-ultimo-emails', [ - 'notice' => __('Test sent successfully', 'multisite-ultimate'), + 'notice' => __('Test sent successfully', 'ultimate-multisite'), ] ), ] @@ -326,8 +326,8 @@ public function render_reset_import_modal(): void { $fields = [ 'reset_emails' => [ 'type' => 'toggle', - 'title' => __('Reset System Emails ', 'multisite-ultimate'), - 'desc' => __('Restore the system emails to their original content.', 'multisite-ultimate'), + 'title' => __('Reset System Emails ', 'ultimate-multisite'), + 'desc' => __('Restore the system emails to their original content.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -339,7 +339,7 @@ public function render_reset_import_modal(): void { $fields['reset_note'] = [ 'type' => 'note', 'title' => '', - 'desc' => __('No emails to reset.', 'multisite-ultimate'), + 'desc' => __('No emails to reset.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'wrapper_html_attr' => [ @@ -379,8 +379,8 @@ public function render_reset_import_modal(): void { $fields['import_emails'] = [ 'type' => 'toggle', - 'title' => __('Import System Emails', 'multisite-ultimate'), - 'desc' => __('Add new system emails based on Multisite Ultimate presets.', 'multisite-ultimate'), + 'title' => __('Import System Emails', 'ultimate-multisite'), + 'desc' => __('Add new system emails based on Multisite Ultimate presets.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -391,7 +391,7 @@ public function render_reset_import_modal(): void { $fields['import_note'] = [ 'type' => 'note', 'title' => '', - 'desc' => __('All emails are already present.', 'multisite-ultimate'), + 'desc' => __('All emails are already present.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'wrapper_html_attr' => [ @@ -429,7 +429,7 @@ public function render_reset_import_modal(): void { $fields['submit_button'] = [ 'type' => 'submit', - 'title' => __('Reset and/or Import', 'multisite-ultimate'), + 'title' => __('Reset and/or Import', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-right', @@ -543,8 +543,8 @@ public function render_reset_confirmation_modal(): void { $fields = [ 'single_reset' => [ 'type' => 'toggle', - 'title' => __('Confirm Reset', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Reset', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'default' => 0, 'html_attr' => [ 'required' => 'required', @@ -556,7 +556,7 @@ public function render_reset_confirmation_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Reset Email', 'multisite-ultimate'), + 'title' => __('Reset Email', 'ultimate-multisite'), 'value' => 'reset', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-right', @@ -593,7 +593,7 @@ public function handle_reset_confirmation_modal() { $email_id = wu_request('email_id'); if ( ! $single_reset || ! $email_id) { - $error = new \WP_Error('error', __('Something wrong happened.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('Something wrong happened.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -612,7 +612,7 @@ public function handle_reset_confirmation_modal() { $new_email = wu_get_email_by('slug', $slug); if ( ! $new_email) { - $error = new \WP_Error('error', __('Something wrong happened.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('Something wrong happened.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -643,18 +643,18 @@ public function action_links() { return [ [ 'url' => wu_network_admin_url('wp-ultimo-edit-email'), - 'label' => __('Add System Email', 'multisite-ultimate'), + 'label' => __('Add System Email', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', ], [ 'url' => wu_network_admin_url('wp-ultimo-customize-email-template&id=' . $email_template_default), - 'label' => __('Email Template', 'multisite-ultimate'), + 'label' => __('Email Template', 'ultimate-multisite'), 'icon' => 'wu-mail', ], [ 'url' => wu_get_form_url('reset_import'), 'classes' => 'wubox', - 'label' => __('Reset or Import', 'multisite-ultimate'), + 'label' => __('Reset or Import', 'ultimate-multisite'), 'icon' => 'wu-cycle', ], ]; diff --git a/inc/admin-pages/class-email-template-customize-admin-page.php b/inc/admin-pages/class-email-template-customize-admin-page.php index 7b5f01fc7..76f91a519 100644 --- a/inc/admin-pages/class-email-template-customize-admin-page.php +++ b/inc/admin-pages/class-email-template-customize-admin-page.php @@ -156,7 +156,7 @@ public function email_template_preview(): void { 'site_url' => get_site_url(), 'logo_url' => wu_get_network_logo(), 'content' => $content, - 'subject' => __('Sample Subject', 'multisite-ultimate'), + 'subject' => __('Sample Subject', 'ultimate-multisite'), 'is_editor' => true, 'template_settings' => [ 'use_custom_logo' => wu_string_to_bool(wu_request('use_custom_logo', $first_request ? $object->get_setting('use_custom_logo', false) : false)), @@ -218,7 +218,7 @@ public function register_widgets(): void { 'fields' => [ 'note' => [ 'type' => 'note', - 'desc' => __('System emails and broadcasts will be sent using this template.', 'multisite-ultimate'), + 'desc' => __('System emails and broadcasts will be sent using this template.', 'ultimate-multisite'), ], ], ] @@ -243,15 +243,15 @@ public function register_widgets(): void { 'v-model' => 'tab', ], 'options' => [ - 'header' => __('Header', 'multisite-ultimate'), - 'content' => __('Content', 'multisite-ultimate'), - 'footer' => __('Footer', 'multisite-ultimate'), + 'header' => __('Header', 'ultimate-multisite'), + 'content' => __('Content', 'ultimate-multisite'), + 'footer' => __('Footer', 'ultimate-multisite'), ], ], 'use_custom_logo' => [ 'type' => 'toggle', - 'title' => __('Use Custom Logo', 'multisite-ultimate'), - 'desc' => __('You can set a different logo to be used on the system emails.', 'multisite-ultimate'), + 'title' => __('Use Custom Logo', 'ultimate-multisite'), + 'desc' => __('You can set a different logo to be used on the system emails.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', 'v-cloak' => 1, @@ -263,8 +263,8 @@ public function register_widgets(): void { 'custom_logo' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Custom Logo', 'multisite-ultimate'), - 'desc' => __('The custom logo is used in the email header, if HTML emails are used.', 'multisite-ultimate'), + 'title' => __('Custom Logo', 'ultimate-multisite'), + 'desc' => __('The custom logo is used in the email header, if HTML emails are used.', 'ultimate-multisite'), 'value' => $custom_logo, 'img' => $custom_logo_url, 'wrapper_html_attr' => [ @@ -277,8 +277,8 @@ public function register_widgets(): void { ], 'background_color' => [ 'type' => 'color-picker', - 'title' => __('Background Color', 'multisite-ultimate'), - 'tooltip' => __('The cover background color of the email.', 'multisite-ultimate'), + 'title' => __('Background Color', 'ultimate-multisite'), + 'tooltip' => __('The cover background color of the email.', 'ultimate-multisite'), 'value' => '#00a1ff', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -290,7 +290,7 @@ public function register_widgets(): void { ], 'title_color' => [ 'type' => 'color-picker', - 'title' => __('Title Color', 'multisite-ultimate'), + 'title' => __('Title Color', 'ultimate-multisite'), 'value' => '#00a1ff', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -302,14 +302,14 @@ public function register_widgets(): void { ], 'title_size' => [ 'type' => 'select', - 'title' => __('Title Size', 'multisite-ultimate'), + 'title' => __('Title Size', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'title_size'), 'options' => [ - 'h1' => __('h1', 'multisite-ultimate'), - 'h2' => __('h2', 'multisite-ultimate'), - 'h3' => __('h3', 'multisite-ultimate'), - 'h4' => __('h4', 'multisite-ultimate'), - 'h5' => __('h5', 'multisite-ultimate'), + 'h1' => __('h1', 'ultimate-multisite'), + 'h2' => __('h2', 'ultimate-multisite'), + 'h3' => __('h3', 'ultimate-multisite'), + 'h4' => __('h4', 'ultimate-multisite'), + 'h5' => __('h5', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -321,13 +321,13 @@ public function register_widgets(): void { ], 'title_align' => [ 'type' => 'select', - 'title' => __('Title Align', 'multisite-ultimate'), - 'tooltip' => __('Aligment of the font in the title.', 'multisite-ultimate'), + 'title' => __('Title Align', 'ultimate-multisite'), + 'tooltip' => __('Aligment of the font in the title.', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'title_align', ''), 'options' => [ - 'left' => __('Left', 'multisite-ultimate'), - 'center' => __('Center', 'multisite-ultimate'), - 'right' => __('Right', 'multisite-ultimate'), + 'left' => __('Left', 'ultimate-multisite'), + 'center' => __('Center', 'ultimate-multisite'), + 'right' => __('Right', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -339,13 +339,13 @@ public function register_widgets(): void { ], 'title_font' => [ 'type' => 'select', - 'title' => __('Title Font-Family', 'multisite-ultimate'), + 'title' => __('Title Font-Family', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'title_font', ''), 'options' => [ - 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'multisite-ultimate'), - 'Arial, Helvetica, sans-serif' => __('Arial', 'multisite-ultimate'), - 'Times New Roman, Times, serif' => __('Times New Roman', 'multisite-ultimate'), - 'Lucida Console, Courier, monospace' => __('Lucida', 'multisite-ultimate'), + 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'ultimate-multisite'), + 'Arial, Helvetica, sans-serif' => __('Arial', 'ultimate-multisite'), + 'Times New Roman, Times, serif' => __('Times New Roman', 'ultimate-multisite'), + 'Lucida Console, Courier, monospace' => __('Lucida', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "header")', @@ -357,7 +357,7 @@ public function register_widgets(): void { ], 'content_color' => [ 'type' => 'color-picker', - 'title' => __('Content Color', 'multisite-ultimate'), + 'title' => __('Content Color', 'ultimate-multisite'), 'value' => '#000000', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "content")', @@ -369,13 +369,13 @@ public function register_widgets(): void { ], 'content_align' => [ 'type' => 'select', - 'title' => __('Content Alignment', 'multisite-ultimate'), - 'tooltip' => __('Alignment of the font in the main email content.', 'multisite-ultimate'), + 'title' => __('Content Alignment', 'ultimate-multisite'), + 'tooltip' => __('Alignment of the font in the main email content.', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'content_align', ''), 'options' => [ - 'left' => __('Left', 'multisite-ultimate'), - 'center' => __('Center', 'multisite-ultimate'), - 'right' => __('Right', 'multisite-ultimate'), + 'left' => __('Left', 'ultimate-multisite'), + 'center' => __('Center', 'ultimate-multisite'), + 'right' => __('Right', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "content")', @@ -387,13 +387,13 @@ public function register_widgets(): void { ], 'content_font' => [ 'type' => 'select', - 'title' => __('Content Font-Family', 'multisite-ultimate'), + 'title' => __('Content Font-Family', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'content_font', ''), 'options' => [ - 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'multisite-ultimate'), - 'Arial, Helvetica, sans-serif' => __('Arial', 'multisite-ultimate'), - 'Times New Roman, Times, serif' => __('Times New Roman', 'multisite-ultimate'), - 'Lucida Console, Courier, monospace' => __('Lucida', 'multisite-ultimate'), + 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'ultimate-multisite'), + 'Arial, Helvetica, sans-serif' => __('Arial', 'ultimate-multisite'), + 'Times New Roman, Times, serif' => __('Times New Roman', 'ultimate-multisite'), + 'Lucida Console, Courier, monospace' => __('Lucida', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "content")', @@ -405,8 +405,8 @@ public function register_widgets(): void { ], 'display_company_address' => [ 'type' => 'toggle', - 'title' => __('Display Company Address', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide your company address.', 'multisite-ultimate'), + 'title' => __('Display Company Address', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide your company address.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', 'v-cloak' => 1, @@ -417,8 +417,8 @@ public function register_widgets(): void { ], 'footer_text' => [ 'type' => 'textarea', - 'title' => __('Footer Content', 'multisite-ultimate'), - 'placeholder' => __('e.g. Extra info in the email footer.', 'multisite-ultimate'), + 'title' => __('Footer Content', 'ultimate-multisite'), + 'placeholder' => __('e.g. Extra info in the email footer.', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'footer_text', ''), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -430,13 +430,13 @@ public function register_widgets(): void { ], 'footer_font' => [ 'type' => 'select', - 'title' => __('Footer Font-Family', 'multisite-ultimate'), + 'title' => __('Footer Font-Family', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'footer_font', ''), 'options' => [ - 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'multisite-ultimate'), - 'Arial, Helvetica, sans-serif' => __('Arial', 'multisite-ultimate'), - 'Times New Roman, Times, serif' => __('Times New Roman', 'multisite-ultimate'), - 'Lucida Console, Courier, monospace' => __('Lucida', 'multisite-ultimate'), + 'Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif' => __('Helvetica', 'ultimate-multisite'), + 'Arial, Helvetica, sans-serif' => __('Arial', 'ultimate-multisite'), + 'Times New Roman, Times, serif' => __('Times New Roman', 'ultimate-multisite'), + 'Lucida Console, Courier, monospace' => __('Lucida', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -448,7 +448,7 @@ public function register_widgets(): void { ], 'footer_color' => [ 'type' => 'color-picker', - 'title' => __('Footer Color', 'multisite-ultimate'), + 'title' => __('Footer Color', 'ultimate-multisite'), 'value' => '#000000', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -460,13 +460,13 @@ public function register_widgets(): void { ], 'footer_align' => [ 'type' => 'select', - 'title' => __('Footer Alignment', 'multisite-ultimate'), - 'tooltip' => __('Alignment of the font in the main email footer.', 'multisite-ultimate'), + 'title' => __('Footer Alignment', 'ultimate-multisite'), + 'tooltip' => __('Alignment of the font in the main email footer.', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'footer_align', ''), 'options' => [ - 'left' => __('Left', 'multisite-ultimate'), - 'center' => __('Center', 'multisite-ultimate'), - 'right' => __('Right', 'multisite-ultimate'), + 'left' => __('Left', 'ultimate-multisite'), + 'center' => __('Center', 'ultimate-multisite'), + 'right' => __('Right', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "footer")', @@ -489,7 +489,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'customizer', [ - 'title' => __('Customizer', 'multisite-ultimate'), + 'title' => __('Customizer', 'ultimate-multisite'), 'position' => 'side', 'fields' => $fields, 'html_attr' => [ @@ -510,7 +510,7 @@ public function register_widgets(): void { */ public function get_title() { - return __('Customize Email Template:', 'multisite-ultimate'); + return __('Customize Email Template:', 'ultimate-multisite'); } /** @@ -521,7 +521,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Customize Email Template', 'multisite-ultimate'); + return __('Customize Email Template', 'ultimate-multisite'); } /** @@ -544,16 +544,16 @@ public function action_links() { public function get_labels() { return [ - 'customize_label' => __('Customize Email Template', 'multisite-ultimate'), - 'add_new_label' => __('Customize Email Template', 'multisite-ultimate'), - 'edit_label' => __('Edit Email Template', 'multisite-ultimate'), - 'updated_message' => __('Email Template updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Email Template Name', 'multisite-ultimate'), - 'title_description' => __('This name is used for internal reference only.', 'multisite-ultimate'), - 'save_button_label' => __('Save Template', 'multisite-ultimate'), + 'customize_label' => __('Customize Email Template', 'ultimate-multisite'), + 'add_new_label' => __('Customize Email Template', 'ultimate-multisite'), + 'edit_label' => __('Edit Email Template', 'ultimate-multisite'), + 'updated_message' => __('Email Template updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Email Template Name', 'ultimate-multisite'), + 'title_description' => __('This name is used for internal reference only.', 'ultimate-multisite'), + 'save_button_label' => __('Save Template', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Email Template', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Email Template', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-event-list-admin-page.php b/inc/admin-pages/class-event-list-admin-page.php index 995fc07e0..c9feadf5d 100644 --- a/inc/admin-pages/class-event-list-admin-page.php +++ b/inc/admin-pages/class-event-list-admin-page.php @@ -160,8 +160,8 @@ public function register_widgets() {} public function get_labels() { return [ - 'deleted_message' => __('Event removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Event', 'multisite-ultimate'), + 'deleted_message' => __('Event removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Event', 'ultimate-multisite'), ]; } @@ -173,7 +173,7 @@ public function get_labels() { */ public function get_title() { - return __('Events', 'multisite-ultimate'); + return __('Events', 'ultimate-multisite'); } /** @@ -184,7 +184,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Events', 'multisite-ultimate'); + return __('Events', 'ultimate-multisite'); } /** @@ -195,7 +195,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Events', 'multisite-ultimate'); + return __('Events', 'ultimate-multisite'); } /** @@ -209,7 +209,7 @@ public function action_links() { return [ [ 'url' => wu_network_admin_url('wp-ultimo-view-logs'), - 'label' => __('View Logs', 'multisite-ultimate'), + 'label' => __('View Logs', 'ultimate-multisite'), 'icon' => 'dashicons dashicons-editor-ol', ], ]; diff --git a/inc/admin-pages/class-event-view-admin-page.php b/inc/admin-pages/class-event-view-admin-page.php index e5f60e40b..689518c95 100644 --- a/inc/admin-pages/class-event-view-admin-page.php +++ b/inc/admin-pages/class-event-view-admin-page.php @@ -128,16 +128,16 @@ public function register_widgets(): void { parent::register_widgets(); - add_meta_box('wp-ultimo-message', __('Event Message', 'multisite-ultimate'), [$this, 'output_default_widget_message'], get_current_screen()->id, 'normal', 'default'); + add_meta_box('wp-ultimo-message', __('Event Message', 'ultimate-multisite'), [$this, 'output_default_widget_message'], get_current_screen()->id, 'normal', 'default'); - add_meta_box('wp-ultimo-initiator', __('Event', 'multisite-ultimate'), [$this, 'output_default_widget_initiator'], get_current_screen()->id, 'side', 'default'); + add_meta_box('wp-ultimo-initiator', __('Event', 'ultimate-multisite'), [$this, 'output_default_widget_initiator'], get_current_screen()->id, 'side', 'default'); - add_meta_box('wp-ultimo-payload', __('Event Payload', 'multisite-ultimate'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', 'default'); + add_meta_box('wp-ultimo-payload', __('Event Payload', 'ultimate-multisite'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', 'default'); $this->add_info_widget( 'info', [ - 'title' => __('Timestamps', 'multisite-ultimate'), + 'title' => __('Timestamps', 'ultimate-multisite'), 'position' => 'side', 'modified' => false, ] @@ -176,8 +176,8 @@ public function output_default_widget_payload(): void { wu_get_template( 'events/widget-payload', [ - 'title' => __('Event Payload', 'multisite-ultimate'), - 'loading_text' => __('Loading Payload', 'multisite-ultimate'), + 'title' => __('Event Payload', 'ultimate-multisite'), + 'loading_text' => __('Loading Payload', 'ultimate-multisite'), 'payload' => wp_json_encode($object->get_payload(), JSON_PRETTY_PRINT), ] ); @@ -208,7 +208,7 @@ public function output_default_widget_initiator(): void { */ public function get_title() { - return $this->edit ? __('Edit Event', 'multisite-ultimate') : __('Add new Event', 'multisite-ultimate'); + return $this->edit ? __('Edit Event', 'ultimate-multisite') : __('Add new Event', 'ultimate-multisite'); } /** @@ -219,7 +219,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Event', 'multisite-ultimate'); + return __('Edit Event', 'ultimate-multisite'); } /** @@ -242,15 +242,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Event', 'multisite-ultimate'), - 'add_new_label' => __('Add new Event', 'multisite-ultimate'), - 'updated_message' => __('Event updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Event', 'multisite-ultimate'), + 'edit_label' => __('Edit Event', 'ultimate-multisite'), + 'add_new_label' => __('Add new Event', 'ultimate-multisite'), + 'updated_message' => __('Event updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Event', 'ultimate-multisite'), 'title_description' => '', - 'save_button_label' => __('Save Event', 'multisite-ultimate'), + 'save_button_label' => __('Save Event', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Event', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Event', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-hosting-integration-wizard-admin-page.php b/inc/admin-pages/class-hosting-integration-wizard-admin-page.php index 6aa3f92e8..930b0fb01 100644 --- a/inc/admin-pages/class-hosting-integration-wizard-admin-page.php +++ b/inc/admin-pages/class-hosting-integration-wizard-admin-page.php @@ -109,7 +109,7 @@ public function page_loaded(): void { */ public function get_title(): string { - return sprintf(__('Integration Setup', 'multisite-ultimate')); + return sprintf(__('Integration Setup', 'ultimate-multisite')); } /** @@ -120,7 +120,7 @@ public function get_title(): string { */ public function get_menu_title() { - return __('Host Provider Integration', 'multisite-ultimate'); + return __('Host Provider Integration', 'ultimate-multisite'); } /** @@ -133,25 +133,25 @@ public function get_sections() { $sections = [ 'activation' => [ - 'title' => __('Activation', 'multisite-ultimate'), + 'title' => __('Activation', 'ultimate-multisite'), 'view' => [$this, 'section_activation'], 'handler' => [$this, 'handle_activation'], ], 'instructions' => [ - 'title' => __('Instructions', 'multisite-ultimate'), + 'title' => __('Instructions', 'ultimate-multisite'), 'view' => [$this, 'section_instructions'], ], 'config' => [ - 'title' => __('Configuration', 'multisite-ultimate'), + 'title' => __('Configuration', 'ultimate-multisite'), 'view' => [$this, 'section_configuration'], 'handler' => [$this, 'handle_configuration'], ], 'testing' => [ - 'title' => __('Testing Integration', 'multisite-ultimate'), + 'title' => __('Testing Integration', 'ultimate-multisite'), 'view' => [$this, 'section_test'], ], 'done' => [ - 'title' => __('Ready!', 'multisite-ultimate'), + 'title' => __('Ready!', 'ultimate-multisite'), 'view' => [$this, 'section_ready'], ], ]; diff --git a/inc/admin-pages/class-invoice-template-customize-admin-page.php b/inc/admin-pages/class-invoice-template-customize-admin-page.php index 57f0d515e..38d4374fa 100644 --- a/inc/admin-pages/class-invoice-template-customize-admin-page.php +++ b/inc/admin-pages/class-invoice-template-customize-admin-page.php @@ -167,7 +167,7 @@ public function register_widgets(): void { 'fields' => [ 'note' => [ 'type' => 'note', - 'desc' => __('Changes to this template will be applied to all PDF invoices generated after the change.

Existing PDF Invoices will not be affected unless explicitly re-generated', 'multisite-ultimate'), + 'desc' => __('Changes to this template will be applied to all PDF invoices generated after the change.

Existing PDF Invoices will not be affected unless explicitly re-generated', 'ultimate-multisite'), ], ], ] @@ -190,17 +190,17 @@ public function register_widgets(): void { 'v-model' => 'tab', ], 'options' => [ - 'general' => __('General', 'multisite-ultimate'), - 'colors' => __('Colors', 'multisite-ultimate'), - 'images' => __('Images', 'multisite-ultimate'), + 'general' => __('General', 'ultimate-multisite'), + 'colors' => __('Colors', 'ultimate-multisite'), + 'images' => __('Images', 'ultimate-multisite'), ], ], 'paid_tag_text' => [ 'type' => 'text', - 'title' => __('Paid Tag', 'multisite-ultimate'), - 'placeholder' => __('e.g. Paid.', 'multisite-ultimate'), - 'value' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'multisite-ultimate')), + 'title' => __('Paid Tag', 'ultimate-multisite'), + 'placeholder' => __('e.g. Paid.', 'ultimate-multisite'), + 'value' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', 'v-cloak' => 1, @@ -211,12 +211,12 @@ public function register_widgets(): void { ], 'font' => [ 'type' => 'select', - 'title' => __('Font-Family', 'multisite-ultimate'), + 'title' => __('Font-Family', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'font', ''), 'options' => [ - 'DejaVuSansCondensed' => __('Sans-Serif', 'multisite-ultimate'), - 'DejaVuSerifCondensed' => __('Serif', 'multisite-ultimate'), - 'FreeMono' => __('Mono', 'multisite-ultimate'), + 'DejaVuSansCondensed' => __('Sans-Serif', 'ultimate-multisite'), + 'DejaVuSerifCondensed' => __('Serif', 'ultimate-multisite'), + 'FreeMono' => __('Mono', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', @@ -228,8 +228,8 @@ public function register_widgets(): void { ], 'footer_message' => [ 'type' => 'textarea', - 'title' => __('Footer Content', 'multisite-ultimate'), - 'placeholder' => __('e.g. Extra Info about the Invoice.', 'multisite-ultimate'), + 'title' => __('Footer Content', 'ultimate-multisite'), + 'placeholder' => __('e.g. Extra Info about the Invoice.', 'ultimate-multisite'), 'value' => wu_get_isset($settings, 'footer_message', ''), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', @@ -242,7 +242,7 @@ public function register_widgets(): void { 'primary_color' => [ 'type' => 'color-picker', - 'title' => __('Primary Color', 'multisite-ultimate'), + 'title' => __('Primary Color', 'ultimate-multisite'), 'value' => '#00a1ff', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "colors")', @@ -255,8 +255,8 @@ public function register_widgets(): void { 'use_custom_logo' => [ 'type' => 'toggle', - 'title' => __('Use Custom Logo', 'multisite-ultimate'), - 'desc' => __('You can set a different logo to be used on the invoice.', 'multisite-ultimate'), + 'title' => __('Use Custom Logo', 'ultimate-multisite'), + 'desc' => __('You can set a different logo to be used on the invoice.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "images")', 'v-cloak' => 1, @@ -267,8 +267,8 @@ public function register_widgets(): void { ], 'custom_logo' => [ 'type' => 'image', - 'title' => __('Custom Logo', 'multisite-ultimate'), - 'desc' => __('This will be added to the top of the generated PDF.', 'multisite-ultimate'), + 'title' => __('Custom Logo', 'ultimate-multisite'), + 'desc' => __('This will be added to the top of the generated PDF.', 'ultimate-multisite'), 'value' => $custom_logo, 'img' => $custom_logo_url, 'stacked' => true, @@ -284,7 +284,7 @@ public function register_widgets(): void { $settings = [ 'footer_message' => wu_get_isset($settings, 'footer_message', ''), - 'paid_tag_text' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'multisite-ultimate')), + 'paid_tag_text' => wu_get_isset($settings, 'paid_tag_text', __('Paid', 'ultimate-multisite')), 'primary_color' => wu_get_isset($settings, 'primary_color', '00a1ff'), 'use_custom_logo' => wu_get_isset($settings, 'use_custom_logo'), 'custom_logo' => wu_get_isset($settings, 'custom_logo'), @@ -302,7 +302,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'customizer', [ - 'title' => __('Customizer', 'multisite-ultimate'), + 'title' => __('Customizer', 'ultimate-multisite'), 'position' => 'side', 'fields' => $fields, 'html_attr' => [ @@ -323,7 +323,7 @@ public function register_widgets(): void { */ public function get_title() { - return __('Customize Invoice Template', 'multisite-ultimate'); + return __('Customize Invoice Template', 'ultimate-multisite'); } /** @@ -334,7 +334,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Customize Invoice Template', 'multisite-ultimate'); + return __('Customize Invoice Template', 'ultimate-multisite'); } /** @@ -357,14 +357,14 @@ public function action_links() { public function get_labels() { return [ - 'customize_label' => __('Customize Invoice Template', 'multisite-ultimate'), - 'add_new_label' => __('Customize Invoice Template', 'multisite-ultimate'), - 'edit_label' => __('Edit Invoice Template', 'multisite-ultimate'), - 'updated_message' => __('Invoice Template updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Invoice Template Name', 'multisite-ultimate'), - 'title_description' => __('This name is used for internal reference only.', 'multisite-ultimate'), - 'save_button_label' => __('Save Invoice Template', 'multisite-ultimate'), - 'save_description' => __('Save Invoice Template', 'multisite-ultimate'), + 'customize_label' => __('Customize Invoice Template', 'ultimate-multisite'), + 'add_new_label' => __('Customize Invoice Template', 'ultimate-multisite'), + 'edit_label' => __('Edit Invoice Template', 'ultimate-multisite'), + 'updated_message' => __('Invoice Template updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Invoice Template Name', 'ultimate-multisite'), + 'title_description' => __('This name is used for internal reference only.', 'ultimate-multisite'), + 'save_button_label' => __('Save Invoice Template', 'ultimate-multisite'), + 'save_description' => __('Save Invoice Template', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-jobs-list-admin-page.php b/inc/admin-pages/class-jobs-list-admin-page.php index 67f779d90..f9b910e71 100644 --- a/inc/admin-pages/class-jobs-list-admin-page.php +++ b/inc/admin-pages/class-jobs-list-admin-page.php @@ -108,7 +108,7 @@ public function hide_as_admin_page($admin_view_class) { */ public function get_title() { - return __('Jobs', 'multisite-ultimate'); + return __('Jobs', 'ultimate-multisite'); } /** @@ -119,7 +119,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Jobs', 'multisite-ultimate'); + return __('Jobs', 'ultimate-multisite'); } /** @@ -130,7 +130,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Jobs', 'multisite-ultimate'); + return __('Jobs', 'ultimate-multisite'); } /** diff --git a/inc/admin-pages/class-list-admin-page.php b/inc/admin-pages/class-list-admin-page.php index 1d1c1ee1e..a6872e497 100644 --- a/inc/admin-pages/class-list-admin-page.php +++ b/inc/admin-pages/class-list-admin-page.php @@ -123,8 +123,8 @@ public function process_single_action(): void { public function get_labels() { return [ - 'deleted_message' => __('Object removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Object', 'multisite-ultimate'), + 'deleted_message' => __('Object removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Object', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-membership-edit-admin-page.php b/inc/admin-pages/class-membership-edit-admin-page.php index 266dc5821..97b4c5f1c 100644 --- a/inc/admin-pages/class-membership-edit-admin-page.php +++ b/inc/admin-pages/class-membership-edit-admin-page.php @@ -121,7 +121,7 @@ protected function add_swap_notices() { $actions = [ 'preview' => [ - 'title' => __('Preview', 'multisite-ultimate'), + 'title' => __('Preview', 'ultimate-multisite'), 'url' => add_query_arg('preview-swap', 1), ], ]; @@ -129,7 +129,7 @@ protected function add_swap_notices() { $date = new \DateTime($swap_order->scheduled_date); // translators: %s is the date, using the site format options - $message = sprintf(__('There is a change scheduled to take place on this membership in %s. You can preview the changes here. Scheduled changes are usually created by downgrades.', 'multisite-ultimate'), $date->format(get_option('date_format'))); + $message = sprintf(__('There is a change scheduled to take place on this membership in %s. You can preview the changes here. Scheduled changes are usually created by downgrades.', 'ultimate-multisite'), $date->format(get_option('date_format'))); WP_Ultimo()->notices->add($message, 'warning', 'network-admin', false, $actions); } @@ -224,16 +224,16 @@ public function render_transfer_membership_modal(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Transfer', 'multisite-ultimate'), - 'desc' => __('This will start the transfer of assets from one customer to another.', 'multisite-ultimate'), + 'title' => __('Confirm Transfer', 'ultimate-multisite'), + 'desc' => __('This will start the transfer of assets from one customer to another.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Start Transfer', 'multisite-ultimate'), - 'placeholder' => __('Start Transfer', 'multisite-ultimate'), + 'title' => __('Start Transfer', 'ultimate-multisite'), + 'placeholder' => __('Start Transfer', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -283,17 +283,17 @@ public function handle_transfer_membership_modal(): void { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'ultimate-multisite'))); } $target_customer = wu_get_customer(wu_request('target_customer_id')); if ( ! $target_customer) { - wp_send_json_error(new \WP_Error('not-found', __('Target customer not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Target customer not found.', 'ultimate-multisite'))); } if ($target_customer->get_id() === $membership->get_customer_id()) { - wp_send_json_error(new \WP_Error('not-found', __('Cannot transfer to the same customer.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Cannot transfer to the same customer.', 'ultimate-multisite'))); } /* @@ -355,26 +355,26 @@ public function register_widgets(): void { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'multisite-ultimate'), + 'title' => __('At a Glance', 'ultimate-multisite'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-widget-inset', 'field_wrapper_classes' => 'wu-w-1/3 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', 'fields' => [ 'status' => [ 'type' => 'text-display', - 'title' => __('Membership Status', 'multisite-ultimate'), + 'title' => __('Membership Status', 'ultimate-multisite'), 'display_value' => $tag, 'tooltip' => '', ], 'hash' => [ 'copy' => true, 'type' => 'text-display', - 'title' => __('Reference ID', 'multisite-ultimate'), + 'title' => __('Reference ID', 'ultimate-multisite'), 'display_value' => $this->get_object()->get_hash(), ], 'total_grossed' => [ 'type' => 'text-display', - 'title' => __('Total Grossed', 'multisite-ultimate'), + 'title' => __('Total Grossed', 'ultimate-multisite'), 'display_value' => wu_format_currency($this->get_object()->get_total_grossed(), $this->get_object()->get_currency()), 'wrapper_classes' => 'sm:wu-border-r-0', ], @@ -386,7 +386,7 @@ public function register_widgets(): void { 'membership-products', [ 'position' => 'normal', - 'title' => __('Products', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Membership_Line_Item_List_Table(), 'after' => [$this, 'output_widget_products'], ] @@ -395,7 +395,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'payments', [ - 'title' => __('Payments', 'multisite-ultimate'), + 'title' => __('Payments', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Customers_Payment_List_Table(), 'query_filter' => [$this, 'payments_query_filter'], ] @@ -404,7 +404,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'sites', [ - 'title' => __('Sites', 'multisite-ultimate'), + 'title' => __('Sites', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Memberships_Site_List_Table(), 'query_filter' => [$this, 'sites_query_filter'], ] @@ -413,7 +413,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'customer', [ - 'title' => __('Linked Customer', 'multisite-ultimate'), + 'title' => __('Linked Customer', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Site_Customer_List_Table(), 'query_filter' => [$this, 'customer_query_filter'], ] @@ -422,27 +422,27 @@ public function register_widgets(): void { $this->add_tabs_widget( 'options', [ - 'title' => __('Membership Options', 'multisite-ultimate'), + 'title' => __('Membership Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => apply_filters( 'wu_membership_options_sections', [ 'general' => [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General membership options', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General membership options', 'ultimate-multisite'), 'icon' => 'dashicons-wu-globe', 'fields' => [ 'blocking' => [ 'type' => 'toggle', - 'title' => __('Is Blocking?', 'multisite-ultimate'), - 'desc' => __('Should we block access to the site, plugins, themes, and services after the expiration date is reached?', 'multisite-ultimate'), + 'title' => __('Is Blocking?', 'ultimate-multisite'), + 'desc' => __('Should we block access to the site, plugins, themes, and services after the expiration date is reached?', 'ultimate-multisite'), 'value' => true, ], ], ], 'billing_info' => [ - 'title' => __('Billing Info', 'multisite-ultimate'), - 'desc' => __('Billing information for this particular membership.', 'multisite-ultimate'), + 'title' => __('Billing Info', 'ultimate-multisite'), + 'desc' => __('Billing information for this particular membership.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-address', 'fields' => $this->get_object()->get_billing_address()->get_fields(), ], @@ -459,7 +459,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -469,8 +469,8 @@ public function register_widgets(): void { $regular_fields = [ 'status' => [ 'type' => 'select', - 'title' => __('Status', 'multisite-ultimate'), - 'desc' => __('The membership current status.', 'multisite-ultimate'), + 'title' => __('Status', 'ultimate-multisite'), + 'desc' => __('The membership current status.', 'ultimate-multisite'), 'value' => $this->get_object()->get_status(), 'options' => Membership_Status::to_array(), 'tooltip' => '', @@ -483,8 +483,8 @@ public function register_widgets(): void { ], 'cancellation_reason' => [ 'type' => 'textarea', - 'title' => __('Cancellation Reason', 'multisite-ultimate'), - 'desc' => __('The reason why the customer cancelled this membership.', 'multisite-ultimate'), + 'title' => __('Cancellation Reason', 'ultimate-multisite'), + 'desc' => __('The reason why the customer cancelled this membership.', 'ultimate-multisite'), 'value' => $this->get_object()->get_cancellation_reason(), 'wrapper_html_attr' => [ 'v-show' => 'status == \'cancelled\'', @@ -493,8 +493,8 @@ public function register_widgets(): void { ], 'cancel_gateway' => [ 'type' => 'toggle', - 'title' => __('Cancel on gateway', 'multisite-ultimate'), - 'desc' => __('If enable we will cancel the subscription on payment method', 'multisite-ultimate'), + 'title' => __('Cancel on gateway', 'ultimate-multisite'), + 'desc' => __('If enable we will cancel the subscription on payment method', 'ultimate-multisite'), 'value' => false, 'wrapper_html_attr' => [ 'v-show' => ! empty($this->get_object()->get_gateway_customer_id()) ? 'status == \'cancelled\'' : 'false', @@ -507,9 +507,9 @@ public function register_widgets(): void { ], 'customer_id' => [ 'type' => 'model', - 'title' => __('Customer', 'multisite-ultimate'), - 'placeholder' => __('Search a Customer...', 'multisite-ultimate'), - 'desc' => __('The owner of this membership.', 'multisite-ultimate'), + 'title' => __('Customer', 'ultimate-multisite'), + 'placeholder' => __('Search a Customer...', 'ultimate-multisite'), + 'desc' => __('The owner of this membership.', 'ultimate-multisite'), 'value' => $this->get_object()->get_customer_id(), 'tooltip' => '', 'html_attr' => [ @@ -528,7 +528,7 @@ public function register_widgets(): void { ], 'transfer_note' => [ 'type' => 'note', - 'desc' => __('Changing the customer will transfer this membership and all its assets, including sites, to the new customer.', 'multisite-ultimate'), + 'desc' => __('Changing the customer will transfer this membership and all its assets, including sites, to the new customer.', 'ultimate-multisite'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => '(original_customer_id != customer_id) && customer_id', @@ -549,7 +549,7 @@ public function register_widgets(): void { ], 'transfer' => [ 'type' => 'link', - 'display_value' => __('Transfer Membership', 'multisite-ultimate'), + 'display_value' => __('Transfer Membership', 'ultimate-multisite'), 'wrapper_classes' => 'wu-bg-gray-200', 'classes' => 'button wubox wu-w-full wu-text-center', 'wrapper_html_attr' => [ @@ -564,7 +564,7 @@ public function register_widgets(): void { 'target_customer_id' => '', ] ) . "=' + customer_id", - 'title' => __('Transfer Membership', 'multisite-ultimate'), + 'title' => __('Transfer Membership', 'ultimate-multisite'), ], ], ]; @@ -574,7 +574,7 @@ public function register_widgets(): void { unset($regular_fields['transfer']); - $regular_fields['submit_save']['title'] = __('Locked', 'multisite-ultimate'); + $regular_fields['submit_save']['title'] = __('Locked', 'ultimate-multisite'); $regular_fields['submit_save']['value'] = 'none'; $regular_fields['submit_save']['html_attr']['disabled'] = 'disabled'; } @@ -600,7 +600,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'pricing', [ - 'title' => __('Billing Amount', 'multisite-ultimate'), + 'title' => __('Billing Amount', 'ultimate-multisite'), 'html_attr' => [ 'data-wu-app' => 'true', 'data-state' => wp_json_encode( @@ -621,10 +621,10 @@ public function register_widgets(): void { // Fields for price '_initial_amount' => [ 'type' => 'text', - 'title' => __('Initial Amount', 'multisite-ultimate'), + 'title' => __('Initial Amount', 'ultimate-multisite'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'multisite-ultimate'), wu_format_currency(199)), - 'desc' => __('The initial amount collected on the first payment.', 'multisite-ultimate'), + 'placeholder' => sprintf(__('E.g. %s', 'ultimate-multisite'), wu_format_currency(199)), + 'desc' => __('The initial amount collected on the first payment.', 'ultimate-multisite'), 'value' => $this->get_object()->get_initial_amount(), 'money' => true, 'html_attr' => [ @@ -642,8 +642,8 @@ public function register_widgets(): void { ], 'recurring' => [ 'type' => 'toggle', - 'title' => __('Is Recurring', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this membership.', 'multisite-ultimate'), + 'title' => __('Is Recurring', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this membership.', 'ultimate-multisite'), 'value' => $this->get_object()->is_recurring(), 'html_attr' => [ 'v-model' => 'is_recurring', @@ -660,9 +660,9 @@ public function register_widgets(): void { ], 'recurring_amount_group' => [ 'type' => 'group', - 'title' => __('Recurring Amount', 'multisite-ultimate'), + 'title' => __('Recurring Amount', 'ultimate-multisite'), // translators: placeholder %1$s is the amount, %2$s is the duration (such as 1, 2, 3), and %3$s is the unit (such as month, year, week) - 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'multisite-ultimate'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), + 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'ultimate-multisite'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), 'wrapper_html_attr' => [ 'v-show' => 'is_recurring', 'v-cloak' => '1', @@ -698,10 +698,10 @@ public function register_widgets(): void { 'v-model' => 'duration_unit', ], 'options' => [ - 'day' => __('Days', 'multisite-ultimate'), - 'week' => __('Weeks', 'multisite-ultimate'), - 'month' => __('Months', 'multisite-ultimate'), - 'year' => __('Years', 'multisite-ultimate'), + 'day' => __('Days', 'ultimate-multisite'), + 'week' => __('Weeks', 'ultimate-multisite'), + 'month' => __('Months', 'ultimate-multisite'), + 'year' => __('Years', 'ultimate-multisite'), ], ], ], @@ -734,9 +734,9 @@ public function register_widgets(): void { ], 'billing_cycles' => [ 'type' => 'number', - 'title' => __('Billing Cycles', 'multisite-ultimate'), - 'placeholder' => __('E.g. 0', 'multisite-ultimate'), - 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'multisite-ultimate'), + 'title' => __('Billing Cycles', 'ultimate-multisite'), + 'placeholder' => __('E.g. 0', 'ultimate-multisite'), + 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'ultimate-multisite'), 'value' => $this->get_object()->get_billing_cycles(), 'min' => 0, 'wrapper_html_attr' => [ @@ -746,8 +746,8 @@ public function register_widgets(): void { ], 'times_billed' => [ 'type' => 'number', - 'title' => __('Times Billed', 'multisite-ultimate'), - 'desc' => __('The number of times this membership was billed so far.', 'multisite-ultimate'), + 'title' => __('Times Billed', 'ultimate-multisite'), + 'desc' => __('The number of times this membership was billed so far.', 'ultimate-multisite'), 'value' => $this->get_object()->get_times_billed(), 'min' => 0, 'wrapper_html_attr' => [ @@ -758,8 +758,8 @@ public function register_widgets(): void { 'auto_renew' => [ 'type' => 'toggle', - 'title' => __('Auto-Renew?', 'multisite-ultimate'), - 'desc' => __('Activating this will tell the gateway to try to automatically charge for this membership.', 'multisite-ultimate'), + 'title' => __('Auto-Renew?', 'ultimate-multisite'), + 'desc' => __('Activating this will tell the gateway to try to automatically charge for this membership.', 'ultimate-multisite'), 'value' => $this->get_object()->should_auto_renew(), 'wrapper_html_attr' => [ 'v-show' => 'is_recurring', @@ -771,10 +771,10 @@ public function register_widgets(): void { ], 'gateway' => [ 'type' => 'text', - 'title' => __('Gateway', 'multisite-ultimate'), - 'placeholder' => __('e.g. stripe', 'multisite-ultimate'), - 'description' => __('e.g. stripe', 'multisite-ultimate'), - 'desc' => __('Payment gateway used to process the payment.', 'multisite-ultimate'), + 'title' => __('Gateway', 'ultimate-multisite'), + 'placeholder' => __('e.g. stripe', 'ultimate-multisite'), + 'description' => __('e.g. stripe', 'ultimate-multisite'), + 'desc' => __('Payment gateway used to process the payment.', 'ultimate-multisite'), 'value' => $this->get_object()->get_gateway(), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -798,7 +798,7 @@ public function register_widgets(): void { $url = apply_filters("wu_{$gateway_id}_remote_customer_url", $this->get_object()->get_gateway_customer_id()); if ($url) { - return sprintf('%s', esc_attr($url), __('View on Gateway →', 'multisite-ultimate')); + return sprintf('%s', esc_attr($url), __('View on Gateway →', 'ultimate-multisite')); } return ''; @@ -810,8 +810,8 @@ public function register_widgets(): void { 'fields' => [ 'gateway_customer_id' => [ 'type' => 'text', - 'title' => __('Gateway Customer ID', 'multisite-ultimate'), - 'placeholder' => __('Gateway Customer ID', 'multisite-ultimate'), + 'title' => __('Gateway Customer ID', 'ultimate-multisite'), + 'placeholder' => __('Gateway Customer ID', 'ultimate-multisite'), 'value' => $this->get_object()->get_gateway_customer_id(), 'tooltip' => '', 'wrapper_classes' => 'wu-w-full', @@ -836,7 +836,7 @@ public function register_widgets(): void { $url = apply_filters("wu_{$gateway_id}_remote_subscription_url", $this->get_object()->get_gateway_subscription_id()); if ($url) { - return sprintf('%s', esc_attr($url), __('View on Gateway →', 'multisite-ultimate')); + return sprintf('%s', esc_attr($url), __('View on Gateway →', 'ultimate-multisite')); } return ''; @@ -848,8 +848,8 @@ public function register_widgets(): void { 'fields' => [ 'gateway_subscription_id' => [ 'type' => 'text', - 'title' => __('Gateway Subscription ID', 'multisite-ultimate'), - 'placeholder' => __('Gateway Subscription ID', 'multisite-ultimate'), + 'title' => __('Gateway Subscription ID', 'ultimate-multisite'), + 'placeholder' => __('Gateway Subscription ID', 'ultimate-multisite'), 'value' => $this->get_object()->get_gateway_subscription_id(), 'tooltip' => '', 'wrapper_classes' => 'wu-w-full', @@ -863,7 +863,7 @@ public function register_widgets(): void { 'gateway_note' => [ 'type' => 'note', - 'desc' => __('We will try to cancel the old subscription on the gateway.', 'multisite-ultimate'), + 'desc' => __('We will try to cancel the old subscription on the gateway.', 'ultimate-multisite'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => 'is_recurring && (' . implode( @@ -884,10 +884,10 @@ public function register_widgets(): void { $timestamp_fields = []; $timestamps = [ - 'date_expiration' => __('Expires at', 'multisite-ultimate'), - 'date_renewed' => __('Last Renewed at', 'multisite-ultimate'), - 'date_trial_end' => __('Trial Ends at', 'multisite-ultimate'), - 'date_cancellation' => __('Cancelled at', 'multisite-ultimate'), + 'date_expiration' => __('Expires at', 'ultimate-multisite'), + 'date_renewed' => __('Last Renewed at', 'ultimate-multisite'), + 'date_trial_end' => __('Trial Ends at', 'ultimate-multisite'), + 'date_cancellation' => __('Cancelled at', 'ultimate-multisite'), ]; foreach ($timestamps as $timestamp_name => $timestamp_label) { @@ -912,7 +912,7 @@ public function register_widgets(): void { if ( ! $this->get_object()->is_lifetime()) { $timestamp_fields['convert_to_lifetime'] = [ 'type' => 'submit', - 'title' => __('Convert to Lifetime', 'multisite-ultimate'), + 'title' => __('Convert to Lifetime', 'ultimate-multisite'), 'value' => 'convert_to_lifetime', 'classes' => 'button wu-w-full', 'wrapper_html_attr' => [], @@ -922,7 +922,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'membership-timestamps', [ - 'title' => __('Important Timestamps', 'multisite-ultimate'), + 'title' => __('Important Timestamps', 'ultimate-multisite'), 'fields' => $timestamp_fields, ] ); @@ -952,7 +952,7 @@ public function output_widget_products() { */ public function get_title() { - return $this->edit ? __('Edit Membership', 'multisite-ultimate') : __('Add new Membership', 'multisite-ultimate'); + return $this->edit ? __('Edit Membership', 'ultimate-multisite') : __('Add new Membership', 'ultimate-multisite'); } /** @@ -963,7 +963,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Membership', 'multisite-ultimate'); + return __('Edit Membership', 'ultimate-multisite'); } /** @@ -986,15 +986,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Membership', 'multisite-ultimate'), - 'add_new_label' => __('Add new Membership', 'multisite-ultimate'), - 'updated_message' => __('Membership updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Membership Name', 'multisite-ultimate'), - 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'multisite-ultimate'), - 'save_button_label' => __('Save Membership', 'multisite-ultimate'), + 'edit_label' => __('Edit Membership', 'ultimate-multisite'), + 'add_new_label' => __('Add new Membership', 'ultimate-multisite'), + 'updated_message' => __('Membership updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Membership Name', 'ultimate-multisite'), + 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'ultimate-multisite'), + 'save_button_label' => __('Save Membership', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Membership', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Membership', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } @@ -1104,7 +1104,7 @@ public function get_object() { $actions = [ 'preview' => [ - 'title' => __('← Go back', 'multisite-ultimate'), + 'title' => __('← Go back', 'ultimate-multisite'), 'url' => remove_query_arg('preview-swap', wu_get_current_url()), ], ]; @@ -1112,7 +1112,7 @@ public function get_object() { $date = new \DateTime($swap_order->scheduled_date); // translators: %s is the date, using the site format options - $message = sprintf(__('This is a preview. This page displays the final stage of the membership after the changes scheduled for %s. Saving here will persist these changes, so be careful.', 'multisite-ultimate'), $date->format(get_option('date_format'))); + $message = sprintf(__('This is a preview. This page displays the final stage of the membership after the changes scheduled for %s. Saving here will persist these changes, so be careful.', 'ultimate-multisite'), $date->format(get_option('date_format'))); WP_Ultimo()->notices->add($message, 'info', 'network-admin', false, $actions); @@ -1261,8 +1261,8 @@ public function render_edit_membership_product_modal(): void { $fields = [ 'product_id' => [ 'type' => 'model', - 'title' => __('Product', 'multisite-ultimate'), - 'placeholder' => __('Search product...', 'multisite-ultimate'), + 'title' => __('Product', 'ultimate-multisite'), + 'placeholder' => __('Search product...', 'ultimate-multisite'), 'value' => '', 'tooltip' => '', 'html_attr' => [ @@ -1276,7 +1276,7 @@ public function render_edit_membership_product_modal(): void { ], 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity', 'multisite-ultimate'), + 'title' => __('Quantity', 'ultimate-multisite'), 'value' => 1, 'placeholder' => 1, 'wrapper_classes' => 'wu-w-1/2', @@ -1287,8 +1287,8 @@ public function render_edit_membership_product_modal(): void { ], 'update_price' => [ 'type' => 'toggle', - 'title' => __('Update Pricing', 'multisite-ultimate'), - 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'multisite-ultimate'), + 'title' => __('Update Pricing', 'ultimate-multisite'), + 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'update_pricing', ], @@ -1304,8 +1304,8 @@ public function render_edit_membership_product_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Add Product', 'multisite-ultimate'), - 'placeholder' => __('Add Product', 'multisite-ultimate'), + 'title' => __('Add Product', 'ultimate-multisite'), + 'placeholder' => __('Add Product', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -1352,7 +1352,7 @@ public function handle_edit_membership_product_modal(): void { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'multisite-ultimate')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -1360,7 +1360,7 @@ public function handle_edit_membership_product_modal(): void { $product = wu_get_product(wu_request('product_id')); if ( ! $product) { - $error = new \WP_Error('product-not-found', __('Product not found.', 'multisite-ultimate')); + $error = new \WP_Error('product-not-found', __('Product not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -1417,7 +1417,7 @@ public function render_remove_membership_product(): void { $fields = [ 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity', 'multisite-ultimate'), + 'title' => __('Quantity', 'ultimate-multisite'), 'value' => 1, 'placeholder' => 1, 'wrapper_classes' => 'wu-w-1/2', @@ -1428,8 +1428,8 @@ public function render_remove_membership_product(): void { ], 'update_price' => [ 'type' => 'toggle', - 'title' => __('Update Pricing?', 'multisite-ultimate'), - 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'multisite-ultimate'), + 'title' => __('Update Pricing?', 'ultimate-multisite'), + 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'update_pricing', ], @@ -1445,8 +1445,8 @@ public function render_remove_membership_product(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Remove Product', 'multisite-ultimate'), - 'placeholder' => __('Remove Product', 'multisite-ultimate'), + 'title' => __('Remove Product', 'ultimate-multisite'), + 'placeholder' => __('Remove Product', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -1497,7 +1497,7 @@ public function handle_remove_membership_product(): void { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'multisite-ultimate')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -1505,7 +1505,7 @@ public function handle_remove_membership_product(): void { $product = wu_get_product(wu_request('product_id')); if ( ! $product) { - $error = new \WP_Error('product-not-found', __('Product not found.', 'multisite-ultimate')); + $error = new \WP_Error('product-not-found', __('Product not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -1574,9 +1574,9 @@ public function render_change_membership_plan_modal(): void { $fields = [ 'plan_id' => [ 'type' => 'model', - 'title' => __('Plan', 'multisite-ultimate'), - 'placeholder' => __('Search new Plan...', 'multisite-ultimate'), - 'desc' => __('Select a new plan for this membership.', 'multisite-ultimate'), + 'title' => __('Plan', 'ultimate-multisite'), + 'placeholder' => __('Search new Plan...', 'ultimate-multisite'), + 'desc' => __('Select a new plan for this membership.', 'ultimate-multisite'), 'value' => $product->get_id(), 'tooltip' => '', 'html_attr' => [ @@ -1591,8 +1591,8 @@ public function render_change_membership_plan_modal(): void { ], 'update_price' => [ 'type' => 'toggle', - 'title' => __('Update Pricing', 'multisite-ultimate'), - 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'multisite-ultimate'), + 'title' => __('Update Pricing', 'ultimate-multisite'), + 'desc' => __('Checking this box will update the membership pricing. Otherwise, the products will be added without changing the membership prices.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'update_pricing', ], @@ -1608,8 +1608,8 @@ public function render_change_membership_plan_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Change Product', 'multisite-ultimate'), - 'placeholder' => __('Change Product', 'multisite-ultimate'), + 'title' => __('Change Product', 'ultimate-multisite'), + 'placeholder' => __('Change Product', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -1662,7 +1662,7 @@ public function handle_change_membership_plan_modal(): void { $membership = wu_get_membership(wu_request('id')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'multisite-ultimate')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -1670,7 +1670,7 @@ public function handle_change_membership_plan_modal(): void { $plan = wu_get_product(wu_request('plan_id')); if ( ! $plan) { - $error = new \WP_Error('plan-not-found', __('Plan not found.', 'multisite-ultimate')); + $error = new \WP_Error('plan-not-found', __('Plan not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -1678,7 +1678,7 @@ public function handle_change_membership_plan_modal(): void { $original_plan_id = $membership->get_plan_id(); if (absint($original_plan_id) === absint($plan->get_id())) { - $error = new \WP_Error('same-plan', __('No change performed. The same plan selected.', 'multisite-ultimate')); + $error = new \WP_Error('same-plan', __('No change performed. The same plan selected.', 'ultimate-multisite')); wp_send_json_error($error); } diff --git a/inc/admin-pages/class-membership-list-admin-page.php b/inc/admin-pages/class-membership-list-admin-page.php index 37dfa79c5..ecf1cdcbe 100644 --- a/inc/admin-pages/class-membership-list-admin-page.php +++ b/inc/admin-pages/class-membership-list-admin-page.php @@ -88,9 +88,9 @@ public function render_add_new_membership_modal(): void { $fields = [ 'customer_id' => [ 'type' => 'model', - 'title' => __('Customer', 'multisite-ultimate'), - 'placeholder' => __('Search Customer...', 'multisite-ultimate'), - 'desc' => __('The customer to attach this membership to.', 'multisite-ultimate'), + 'title' => __('Customer', 'ultimate-multisite'), + 'placeholder' => __('Search Customer...', 'ultimate-multisite'), + 'desc' => __('The customer to attach this membership to.', 'ultimate-multisite'), 'html_attr' => [ 'data-model' => 'customer', 'data-value-field' => 'id', @@ -101,9 +101,9 @@ public function render_add_new_membership_modal(): void { ], 'product_ids' => [ 'type' => 'model', - 'title' => __('Products', 'multisite-ultimate'), - 'placeholder' => __('Search Products...', 'multisite-ultimate'), - 'desc' => __('You can add multiples products to this membership.', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), + 'placeholder' => __('Search Products...', 'ultimate-multisite'), + 'desc' => __('You can add multiples products to this membership.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'data-model' => 'product', @@ -115,25 +115,25 @@ public function render_add_new_membership_modal(): void { ], 'status' => [ 'type' => 'select', - 'title' => __('Status', 'multisite-ultimate'), - 'placeholder' => __('Status', 'multisite-ultimate'), - 'desc' => __('The membership status.', 'multisite-ultimate'), + 'title' => __('Status', 'ultimate-multisite'), + 'placeholder' => __('Status', 'ultimate-multisite'), + 'desc' => __('The membership status.', 'ultimate-multisite'), 'tooltip' => '', 'value' => Membership_Status::PENDING, 'options' => Membership_Status::to_array(), ], 'lifetime' => [ 'type' => 'toggle', - 'title' => __('Lifetime', 'multisite-ultimate'), - 'desc' => __('Activate this toggle to mark the newly created membership as lifetime.', 'multisite-ultimate'), + 'title' => __('Lifetime', 'ultimate-multisite'), + 'desc' => __('Activate this toggle to mark the newly created membership as lifetime.', 'ultimate-multisite'), 'value' => 1, 'html_attr' => [ 'v-model' => 'lifetime', ], ], 'date_expiration' => [ - 'title' => __('Expiration Date', 'multisite-ultimate'), - 'desc' => __('Set the expiration date of the membership to be created.', 'multisite-ultimate'), + 'title' => __('Expiration Date', 'ultimate-multisite'), + 'desc' => __('Set the expiration date of the membership to be created.', 'ultimate-multisite'), 'type' => 'text', 'date' => true, 'value' => gmdate('Y-m-d', strtotime('+1 month')), @@ -150,7 +150,7 @@ public function render_add_new_membership_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Create Membership', 'multisite-ultimate'), + 'title' => __('Create Membership', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -197,7 +197,7 @@ public function handle_add_new_membership_modal(): void { wp_send_json_error( new \WP_Error( 'empty-products', - __('Products can not be empty.', 'multisite-ultimate') + __('Products can not be empty.', 'ultimate-multisite') ) ); } @@ -208,7 +208,7 @@ public function handle_add_new_membership_modal(): void { wp_send_json_error( new \WP_Error( 'customer-not-found', - __('The selected customer does not exist.', 'multisite-ultimate') + __('The selected customer does not exist.', 'ultimate-multisite') ) ); } @@ -263,8 +263,8 @@ public function handle_add_new_membership_modal(): void { public function get_labels() { return [ - 'deleted_message' => __('Membership removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Membership', 'multisite-ultimate'), + 'deleted_message' => __('Membership removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Membership', 'ultimate-multisite'), ]; } @@ -276,7 +276,7 @@ public function get_labels() { */ public function get_title() { - return __('Memberships', 'multisite-ultimate'); + return __('Memberships', 'ultimate-multisite'); } /** @@ -287,7 +287,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Memberships', 'multisite-ultimate'); + return __('Memberships', 'ultimate-multisite'); } /** @@ -298,7 +298,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Memberships', 'multisite-ultimate'); + return __('Memberships', 'ultimate-multisite'); } /** @@ -311,7 +311,7 @@ public function action_links() { return [ [ - 'label' => __('Add Membership', 'multisite-ultimate'), + 'label' => __('Add Membership', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_membership'), diff --git a/inc/admin-pages/class-migration-alert-admin-page.php b/inc/admin-pages/class-migration-alert-admin-page.php index 9fc1fc5d8..239e9ed85 100644 --- a/inc/admin-pages/class-migration-alert-admin-page.php +++ b/inc/admin-pages/class-migration-alert-admin-page.php @@ -89,7 +89,7 @@ public function get_logo() { */ public function get_title(): string { - return sprintf(__('Migration', 'multisite-ultimate')); + return sprintf(__('Migration', 'ultimate-multisite')); } /** @@ -100,7 +100,7 @@ public function get_title(): string { */ public function get_menu_title() { - return WP_Ultimo()->is_loaded() ? __('Multisite Ultimate Migration Alert', 'multisite-ultimate') : __('Multisite Ultimate', 'multisite-ultimate'); + return WP_Ultimo()->is_loaded() ? __('Multisite Ultimate Migration Alert', 'ultimate-multisite') : __('Multisite Ultimate', 'ultimate-multisite'); } /** @@ -113,7 +113,7 @@ public function get_sections() { return [ 'alert' => [ - 'title' => __('Alert!', 'multisite-ultimate'), + 'title' => __('Alert!', 'ultimate-multisite'), 'view' => [$this, 'section_alert'], 'handler' => [$this, 'handle_proceed'], ], diff --git a/inc/admin-pages/class-payment-edit-admin-page.php b/inc/admin-pages/class-payment-edit-admin-page.php index aae86d575..ffbf39e29 100644 --- a/inc/admin-pages/class-payment-edit-admin-page.php +++ b/inc/admin-pages/class-payment-edit-admin-page.php @@ -167,15 +167,15 @@ public function render_delete_line_item_modal(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Deletion', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'multisite-ultimate'), + 'title' => __('Delete', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -227,7 +227,7 @@ public function handle_delete_line_item_modal(): void { $line_item = wu_get_line_item(wu_request('line_item_id'), $payment->get_id()); if ( ! $payment || ! $line_item) { - wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'ultimate-multisite'))); } $line_items = $payment->get_line_items(); @@ -267,8 +267,8 @@ public function render_refund_payment_modal(): void { $fields = [ '_amount' => [ 'type' => 'text', - 'title' => __('Refund Amount', 'multisite-ultimate'), - 'placeholder' => __('Refund Amount', 'multisite-ultimate'), + 'title' => __('Refund Amount', 'ultimate-multisite'), + 'placeholder' => __('Refund Amount', 'ultimate-multisite'), 'money' => true, 'min' => 0, 'html_attr' => [ @@ -288,15 +288,15 @@ public function render_refund_payment_modal(): void { ], 'cancel_membership' => [ 'type' => 'toggle', - 'title' => __('Cancel Related Membership?', 'multisite-ultimate'), - 'desc' => __('Checking this option will cancel the membership as well.', 'multisite-ultimate'), + 'title' => __('Cancel Related Membership?', 'ultimate-multisite'), + 'desc' => __('Checking this option will cancel the membership as well.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'step === 1', ], ], 'refund_not_immediate_note' => [ 'type' => 'note', - 'desc' => __('Confirming the refund might not immediately change the status of the payment, as each gateway handles refunds differently and Multisite Ultimate relies on the gateway reporting a successful refund before changing the status.', 'multisite-ultimate'), + 'desc' => __('Confirming the refund might not immediately change the status of the payment, as each gateway handles refunds differently and Multisite Ultimate relies on the gateway reporting a successful refund before changing the status.', 'ultimate-multisite'), 'classes' => 'wu-p-2 wu-bg-yellow-200 wu-text-yellow-700 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => 'step === 2', @@ -305,8 +305,8 @@ public function render_refund_payment_modal(): void { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Refund', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Refund', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'step === 2', ], @@ -316,8 +316,8 @@ public function render_refund_payment_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Next Step', 'multisite-ultimate'), - 'placeholder' => __('Next Step', 'multisite-ultimate'), + 'title' => __('Next Step', 'ultimate-multisite'), + 'placeholder' => __('Next Step', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -331,8 +331,8 @@ public function render_refund_payment_modal(): void { ], 'submit_button_2' => [ 'type' => 'submit', - 'title' => __('Issue Refund', 'multisite-ultimate'), - 'placeholder' => __('Issue Refund', 'multisite-ultimate'), + 'title' => __('Issue Refund', 'ultimate-multisite'), + 'placeholder' => __('Issue Refund', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -386,14 +386,14 @@ public function handle_refund_payment_modal(): void { $payment = wu_get_payment(wu_request('id')); if ( ! $payment) { - wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Payment not found.', 'ultimate-multisite'))); } /* * Checks for a valid amount. */ if (empty($amount) || $amount > $payment->get_total()) { - wp_send_json_error(new \WP_Error('invalid-amount', __('The refund amount is out of bounds.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('invalid-amount', __('The refund amount is out of bounds.', 'ultimate-multisite'))); } /* @@ -403,7 +403,7 @@ public function handle_refund_payment_modal(): void { $is_refundable = in_array($payment->get_status(), wu_get_refundable_payment_types(), true); if ( ! $is_refundable) { - wp_send_json_error(new \WP_Error('payment-not-refunded', __('This payment is not in a refundable state.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('payment-not-refunded', __('This payment is not in a refundable state.', 'ultimate-multisite'))); } /* @@ -454,7 +454,7 @@ public function handle_refund_payment_modal(): void { $gateway = wu_get_gateway($gateway_id); if ( ! $gateway) { - wp_send_json_error(new \WP_Error('gateway-not-found', __('Payment gateway not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('gateway-not-found', __('Payment gateway not found.', 'ultimate-multisite'))); } /* @@ -483,14 +483,14 @@ public function handle_refund_payment_modal(): void { if (is_wp_error($status)) { // translators: %s is the exception error message. - $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'multisite-ultimate'), $status->get_error_message())); + $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'ultimate-multisite'), $status->get_error_message())); wp_send_json_error($error); } } catch (\Throwable $e) { // translators: %s is the exception error message. - $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'multisite-ultimate'), $e->getMessage())); + $error = new \WP_Error('refund-error', sprintf(__('An error occurred: %s', 'ultimate-multisite'), $e->getMessage())); wp_send_json_error($error); } @@ -542,7 +542,7 @@ public function handle_edit_line_item_modal(): void { $product = wu_get_product(wu_request('product_id')); if (empty($product)) { - $error = new \WP_Error('missing-product', __('The product was not found.', 'multisite-ultimate')); + $error = new \WP_Error('missing-product', __('The product was not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -579,7 +579,7 @@ public function handle_edit_line_item_modal(): void { ); if ( ! in_array($type, $allowed_types, true)) { - $error = new \WP_Error('invalid-type', __('The line item type is invalid.', 'multisite-ultimate')); + $error = new \WP_Error('invalid-type', __('The line item type is invalid.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -611,7 +611,7 @@ public function handle_edit_line_item_modal(): void { $saved = $payment->recalculate_totals()->save(); if ( ! $saved) { - wp_send_json_error(new \WP_Error('error', __('Something wrong happened.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('error', __('Something wrong happened.', 'ultimate-multisite'))); } if (is_wp_error($saved)) { @@ -650,9 +650,9 @@ public function render_edit_line_item_modal(): void { 'tab' => [ 'type' => 'tab-select', 'options' => [ - 'type' => __('Type', 'multisite-ultimate'), - 'info' => __('Additional Info', 'multisite-ultimate'), - 'tax' => __('Tax Info', 'multisite-ultimate'), + 'type' => __('Type', 'ultimate-multisite'), + 'info' => __('Additional Info', 'ultimate-multisite'), + 'tax' => __('Tax Info', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'tab', @@ -660,13 +660,13 @@ public function render_edit_line_item_modal(): void { ], 'type' => [ 'type' => 'select', - 'title' => __('Line Item Type', 'multisite-ultimate'), - 'desc' => __('Select the line item type.', 'multisite-ultimate'), + 'title' => __('Line Item Type', 'ultimate-multisite'), + 'desc' => __('Select the line item type.', 'ultimate-multisite'), 'options' => [ - 'product' => __('Product', 'multisite-ultimate'), - 'refund' => __('Refund', 'multisite-ultimate'), - 'fee' => __('Fee', 'multisite-ultimate'), - 'credit' => __('Credit', 'multisite-ultimate'), + 'product' => __('Product', 'ultimate-multisite'), + 'refund' => __('Refund', 'ultimate-multisite'), + 'fee' => __('Fee', 'ultimate-multisite'), + 'credit' => __('Credit', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-show' => 'tab === "type"', @@ -677,9 +677,9 @@ public function render_edit_line_item_modal(): void { ], 'product_id' => [ 'type' => 'model', - 'title' => __('Product', 'multisite-ultimate'), - 'desc' => __('Product associated with this line item.', 'multisite-ultimate'), - 'placeholder' => __('Search Products', 'multisite-ultimate'), + 'title' => __('Product', 'ultimate-multisite'), + 'desc' => __('Product associated with this line item.', 'ultimate-multisite'), + 'placeholder' => __('Search Products', 'ultimate-multisite'), 'value' => $line_item->get_product_id(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -696,9 +696,9 @@ public function render_edit_line_item_modal(): void { ], 'title' => [ 'type' => 'text', - 'title' => __('Line Item Title', 'multisite-ultimate'), - 'placeholder' => __('E.g. Extra Charge', 'multisite-ultimate'), - 'desc' => __('This is used when generating invoices.', 'multisite-ultimate'), + 'title' => __('Line Item Title', 'ultimate-multisite'), + 'placeholder' => __('E.g. Extra Charge', 'ultimate-multisite'), + 'desc' => __('This is used when generating invoices.', 'ultimate-multisite'), 'value' => $line_item->get_title(), 'wrapper_html_attr' => [ 'v-show' => 'tab === "info"', @@ -706,9 +706,9 @@ public function render_edit_line_item_modal(): void { ], 'description' => [ 'type' => 'textarea', - 'title' => __('Line Item Description', 'multisite-ultimate'), - 'placeholder' => __('E.g. This service was done to improve performance.', 'multisite-ultimate'), - 'desc' => __('This is used when generating invoices.', 'multisite-ultimate'), + 'title' => __('Line Item Description', 'ultimate-multisite'), + 'placeholder' => __('E.g. This service was done to improve performance.', 'ultimate-multisite'), + 'desc' => __('This is used when generating invoices.', 'ultimate-multisite'), 'value' => $line_item->get_description(), 'html_attr' => [ 'rows' => 4, @@ -719,10 +719,10 @@ public function render_edit_line_item_modal(): void { ], 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity', 'multisite-ultimate'), - 'desc' => __('Item quantity.', 'multisite-ultimate'), + 'title' => __('Quantity', 'ultimate-multisite'), + 'desc' => __('Item quantity.', 'ultimate-multisite'), 'value' => $line_item->get_quantity(), - 'placeholder' => __('E.g. 1', 'multisite-ultimate'), + 'placeholder' => __('E.g. 1', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-1/2', 'wrapper_html_attr' => [ 'v-show' => 'type === "product" && tab === "type"', @@ -740,10 +740,10 @@ public function render_edit_line_item_modal(): void { ], '_unit_price' => [ 'type' => 'text', - 'title' => __('Unit Price', 'multisite-ultimate'), - 'desc' => __('Item unit price. This is multiplied by the quantity to calculate the sub-total.', 'multisite-ultimate'), + 'title' => __('Unit Price', 'ultimate-multisite'), + 'desc' => __('Item unit price. This is multiplied by the quantity to calculate the sub-total.', 'ultimate-multisite'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'multisite-ultimate'), wu_format_currency(99)), + 'placeholder' => sprintf(__('E.g. %s', 'ultimate-multisite'), wu_format_currency(99)), 'value' => $line_item->get_unit_price(), 'money' => true, 'wrapper_classes' => 'wu-w-1/2', @@ -758,10 +758,10 @@ public function render_edit_line_item_modal(): void { ], '_unit_price_amount' => [ 'type' => 'text', - 'title' => __('Amount', 'multisite-ultimate'), - 'desc' => __('Refund, credit or fee amount.', 'multisite-ultimate'), + 'title' => __('Amount', 'ultimate-multisite'), + 'desc' => __('Refund, credit or fee amount.', 'ultimate-multisite'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'multisite-ultimate'), wu_format_currency(99)), + 'placeholder' => sprintf(__('E.g. %s', 'ultimate-multisite'), wu_format_currency(99)), 'value' => $line_item->get_unit_price(), 'money' => true, 'wrapper_classes' => 'wu-w-1/2', @@ -776,8 +776,8 @@ public function render_edit_line_item_modal(): void { ], 'taxable' => [ 'type' => 'toggle', - 'title' => __('Is Taxable?', 'multisite-ultimate'), - 'desc' => __('Checking this box will toggle the tax controls.', 'multisite-ultimate'), + 'title' => __('Is Taxable?', 'ultimate-multisite'), + 'desc' => __('Checking this box will toggle the tax controls.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-bind:class' => 'type !== "product" ? "wu-opacity-50" : ""', 'v-show' => 'tab === "tax"', @@ -789,9 +789,9 @@ public function render_edit_line_item_modal(): void { ], 'tax_label' => [ 'type' => 'text', - 'title' => __('Tax Label', 'multisite-ultimate'), - 'placeholder' => __('E.g. ES VAT', 'multisite-ultimate'), - 'desc' => __('Tax description. This is shown on invoices to end customers.', 'multisite-ultimate'), + 'title' => __('Tax Label', 'ultimate-multisite'), + 'placeholder' => __('E.g. ES VAT', 'ultimate-multisite'), + 'desc' => __('Tax description. This is shown on invoices to end customers.', 'ultimate-multisite'), 'value' => $line_item->get_tax_label(), 'wrapper_html_attr' => [ 'v-show' => 'taxable && tab === "tax"', @@ -799,8 +799,8 @@ public function render_edit_line_item_modal(): void { ], 'tax_rate_group' => [ 'type' => 'group', - 'title' => __('Tax Rate', 'multisite-ultimate'), - 'desc' => __('Tax rate and type to apply to this item.', 'multisite-ultimate'), + 'title' => __('Tax Rate', 'ultimate-multisite'), + 'desc' => __('Tax rate and type to apply to this item.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'taxable && tab === "tax"', ], @@ -821,16 +821,16 @@ public function render_edit_line_item_modal(): void { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'percentage' => __('Percentage (%)', 'multisite-ultimate'), - 'absolute' => __('Flat Rate ($)', 'multisite-ultimate'), + 'percentage' => __('Percentage (%)', 'ultimate-multisite'), + 'absolute' => __('Flat Rate ($)', 'ultimate-multisite'), ], ], ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Save', 'multisite-ultimate'), - 'placeholder' => __('Save', 'multisite-ultimate'), + 'title' => __('Save', 'ultimate-multisite'), + 'placeholder' => __('Save', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -883,7 +883,7 @@ public function display_payment_actions(): void { if ($is_refundable) { $actions['refund_payment'] = [ - 'label' => __('Refund Payment', 'multisite-ultimate'), + 'label' => __('Refund Payment', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-ccw wu-align-text-bottom', 'classes' => 'button wubox', 'href' => wu_get_form_url( @@ -896,7 +896,7 @@ public function display_payment_actions(): void { } $actions['add_line_item'] = [ - 'label' => __('Add Line Item', 'multisite-ultimate'), + 'label' => __('Add Line Item', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-circle-with-plus wu-align-text-bottom', 'classes' => 'button wubox', 'href' => wu_get_form_url( @@ -954,26 +954,26 @@ public function register_widgets(): void { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'multisite-ultimate'), + 'title' => __('At a Glance', 'ultimate-multisite'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-widget-inset', 'field_wrapper_classes' => 'wu-w-1/3 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', 'fields' => [ 'status' => [ 'type' => 'text-display', - 'title' => __('Payment Status', 'multisite-ultimate'), + 'title' => __('Payment Status', 'ultimate-multisite'), 'display_value' => $tag, 'tooltip' => '', ], 'hash' => [ 'copy' => true, 'type' => 'text-display', - 'title' => __('Reference ID', 'multisite-ultimate'), + 'title' => __('Reference ID', 'ultimate-multisite'), 'display_value' => $this->get_object()->get_hash(), ], 'total' => [ 'type' => 'text-display', - 'title' => __('Total', 'multisite-ultimate'), + 'title' => __('Total', 'ultimate-multisite'), 'display_value' => wu_format_currency($this->get_object()->get_total(), $this->get_object()->get_currency()), 'wrapper_classes' => 'sm:wu-border-r-0', ], @@ -984,7 +984,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'line-items', [ - 'title' => __('Line Items', 'multisite-ultimate'), + 'title' => __('Line Items', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Payment_Line_Item_List_Table(), 'position' => 'normal', 'query_filter' => [$this, 'payments_query_filter'], @@ -995,7 +995,7 @@ public function register_widgets(): void { $this->add_widget( 'tax-rates', [ - 'title' => __('Tax Rate Breakthrough', 'multisite-ultimate'), + 'title' => __('Tax Rate Breakthrough', 'ultimate-multisite'), 'position' => 'normal', 'display' => [$this, 'display_tax_breakthrough'], ] @@ -1004,7 +1004,7 @@ public function register_widgets(): void { $this->add_tabs_widget( 'options', [ - 'title' => __('Payment Options', 'multisite-ultimate'), + 'title' => __('Payment Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => apply_filters('wu_payments_options_sections', [], $this->get_object()), ] @@ -1013,7 +1013,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'events_query_filter'], ] @@ -1039,9 +1039,9 @@ public function register_widgets(): void { 'fields' => [ 'status' => [ 'type' => 'select', - 'title' => __('Status', 'multisite-ultimate'), - 'placeholder' => __('Status', 'multisite-ultimate'), - 'desc' => __('The payment current status.', 'multisite-ultimate'), + 'title' => __('Status', 'ultimate-multisite'), + 'placeholder' => __('Status', 'ultimate-multisite'), + 'desc' => __('The payment current status.', 'ultimate-multisite'), 'value' => $this->get_object()->get_status(), 'options' => Payment_Status::to_array(), 'tooltip' => '', @@ -1054,8 +1054,8 @@ public function register_widgets(): void { ], 'confirm_membership' => [ 'type' => 'toggle', - 'title' => __('Activate Membership?', 'multisite-ultimate'), - 'desc' => __('This payment belongs to a pending membership. If you toggle this option, this change in status will also apply to the membership. If any sites are pending, they are also going to be published automatically.', 'multisite-ultimate'), + 'title' => __('Activate Membership?', 'ultimate-multisite'), + 'desc' => __('This payment belongs to a pending membership. If you toggle this option, this change in status will also apply to the membership. If any sites are pending, they are also going to be published automatically.', 'ultimate-multisite'), 'value' => 0, 'wrapper_html_attr' => [ 'v-if' => 'status !== original_status && status === "completed" && membership_status === "pending"', @@ -1064,8 +1064,8 @@ public function register_widgets(): void { ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Membership', 'multisite-ultimate'), - 'desc' => __('The membership associated with this payment.', 'multisite-ultimate'), + 'title' => __('Membership', 'ultimate-multisite'), + 'desc' => __('The membership associated with this payment.', 'ultimate-multisite'), 'value' => $this->get_object()->get_membership_id(), 'tooltip' => '', 'html_attr' => [ @@ -1083,10 +1083,10 @@ public function register_widgets(): void { ], 'gateway' => [ 'type' => 'text', - 'title' => __('Gateway', 'multisite-ultimate'), - 'placeholder' => __('e.g. stripe', 'multisite-ultimate'), - 'description' => __('e.g. stripe', 'multisite-ultimate'), - 'desc' => __('Payment gateway used to process the payment.', 'multisite-ultimate'), + 'title' => __('Gateway', 'ultimate-multisite'), + 'placeholder' => __('e.g. stripe', 'ultimate-multisite'), + 'description' => __('e.g. stripe', 'ultimate-multisite'), + 'desc' => __('Payment gateway used to process the payment.', 'ultimate-multisite'), 'value' => $this->get_object()->get_gateway(), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -1110,7 +1110,7 @@ public function register_widgets(): void { $url = apply_filters("wu_{$gateway_id}_remote_payment_url", $this->get_object()->get_gateway_payment_id()); if ($url) { - return sprintf('%s', esc_attr($url), __('View on Gateway →', 'multisite-ultimate')); + return sprintf('%s', esc_attr($url), __('View on Gateway →', 'ultimate-multisite')); } return ''; @@ -1122,10 +1122,10 @@ public function register_widgets(): void { 'fields' => [ 'gateway_payment_id' => [ 'type' => 'text', - 'title' => __('Gateway Payment ID', 'multisite-ultimate'), - 'placeholder' => __('e.g. EX897540987913', 'multisite-ultimate'), - 'description' => __('e.g. EX897540987913', 'multisite-ultimate'), - 'tooltip' => __('This will usually be set automatically by the payment gateway.', 'multisite-ultimate'), + 'title' => __('Gateway Payment ID', 'ultimate-multisite'), + 'placeholder' => __('e.g. EX897540987913', 'ultimate-multisite'), + 'description' => __('e.g. EX897540987913', 'ultimate-multisite'), + 'tooltip' => __('This will usually be set automatically by the payment gateway.', 'ultimate-multisite'), 'value' => $this->get_object()->get_gateway_payment_id(), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [], @@ -1136,10 +1136,10 @@ public function register_widgets(): void { 'invoice_number' => [ 'type' => 'number', 'min' => 0, - 'title' => __('Invoice Number', 'multisite-ultimate'), - 'placeholder' => __('e.g. 20', 'multisite-ultimate'), - 'tooltip' => __('This number gets saved automatically when a payment transitions to a complete state. You can change it to generate invoices with a particular number. The number chosen here has no effect on other invoices in the platform.', 'multisite-ultimate'), - 'desc' => __('The invoice number for this particular payment.', 'multisite-ultimate'), + 'title' => __('Invoice Number', 'ultimate-multisite'), + 'placeholder' => __('e.g. 20', 'ultimate-multisite'), + 'tooltip' => __('This number gets saved automatically when a payment transitions to a complete state. You can change it to generate invoices with a particular number. The number chosen here has no effect on other invoices in the platform.', 'ultimate-multisite'), + 'desc' => __('The invoice number for this particular payment.', 'ultimate-multisite'), 'value' => $this->get_object()->get_saved_invoice_number(), 'wrapper_classes' => 'wu-w-full', 'wrapper_html_attr' => [ @@ -1160,7 +1160,7 @@ public function register_widgets(): void { */ public function get_title() { - return $this->edit ? __('Edit Payment', 'multisite-ultimate') : __('Add new Payment', 'multisite-ultimate'); + return $this->edit ? __('Edit Payment', 'ultimate-multisite') : __('Add new Payment', 'ultimate-multisite'); } /** @@ -1171,7 +1171,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Payment', 'multisite-ultimate'); + return __('Edit Payment', 'ultimate-multisite'); } /** @@ -1189,14 +1189,14 @@ public function action_links() { if ($payment) { $actions[] = [ 'url' => $payment->get_invoice_url(), - 'label' => __('Generate Invoice', 'multisite-ultimate'), + 'label' => __('Generate Invoice', 'ultimate-multisite'), 'icon' => 'wu-attachment', ]; if ($payment->is_payable()) { $actions[] = [ 'url' => $payment->get_payment_url(), - 'label' => __('Payment URL', 'multisite-ultimate'), + 'label' => __('Payment URL', 'ultimate-multisite'), 'icon' => 'wu-credit-card', ]; } @@ -1214,15 +1214,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Payment', 'multisite-ultimate'), - 'add_new_label' => __('Add new Payment', 'multisite-ultimate'), - 'updated_message' => __('Payment updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Payment Name', 'multisite-ultimate'), - 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'multisite-ultimate'), - 'save_button_label' => __('Save Payment', 'multisite-ultimate'), + 'edit_label' => __('Edit Payment', 'ultimate-multisite'), + 'add_new_label' => __('Add new Payment', 'ultimate-multisite'), + 'updated_message' => __('Payment updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Payment Name', 'ultimate-multisite'), + 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'ultimate-multisite'), + 'save_button_label' => __('Save Payment', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Payment', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Payment', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-payment-list-admin-page.php b/inc/admin-pages/class-payment-list-admin-page.php index 03ad876c1..1d57c3133 100644 --- a/inc/admin-pages/class-payment-list-admin-page.php +++ b/inc/admin-pages/class-payment-list-admin-page.php @@ -87,9 +87,9 @@ public function render_add_new_payment_modal(): void { $fields = [ 'products' => [ 'type' => 'model', - 'title' => __('Products', 'multisite-ultimate'), - 'placeholder' => __('Search Products...', 'multisite-ultimate'), - 'desc' => __('Each product will be added as a line item.', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), + 'placeholder' => __('Search Products...', 'ultimate-multisite'), + 'desc' => __('Each product will be added as a line item.', 'ultimate-multisite'), 'value' => '', 'tooltip' => '', 'html_attr' => [ @@ -102,18 +102,18 @@ public function render_add_new_payment_modal(): void { ], 'status' => [ 'type' => 'select', - 'title' => __('Status', 'multisite-ultimate'), - 'placeholder' => __('Status', 'multisite-ultimate'), - 'desc' => __('The payment status to attach to the newly created payment.', 'multisite-ultimate'), + 'title' => __('Status', 'ultimate-multisite'), + 'placeholder' => __('Status', 'ultimate-multisite'), + 'desc' => __('The payment status to attach to the newly created payment.', 'ultimate-multisite'), 'value' => Payment_Status::COMPLETED, 'options' => Payment_Status::to_array(), 'tooltip' => '', ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Membership', 'multisite-ultimate'), - 'placeholder' => __('Search Membership...', 'multisite-ultimate'), - 'desc' => __('The membership associated with this payment.', 'multisite-ultimate'), + 'title' => __('Membership', 'ultimate-multisite'), + 'placeholder' => __('Search Membership...', 'ultimate-multisite'), + 'desc' => __('The membership associated with this payment.', 'ultimate-multisite'), 'value' => '', 'tooltip' => '', 'html_attr' => [ @@ -126,13 +126,13 @@ public function render_add_new_payment_modal(): void { ], 'add_setup_fees' => [ 'type' => 'toggle', - 'title' => __('Include Setup Fees', 'multisite-ultimate'), - 'desc' => __('Checking this box will include setup fees attached to the selected products as well.', 'multisite-ultimate'), + 'title' => __('Include Setup Fees', 'ultimate-multisite'), + 'desc' => __('Checking this box will include setup fees attached to the selected products as well.', 'ultimate-multisite'), 'value' => 1, ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Add Payment', 'multisite-ultimate'), + 'title' => __('Add Payment', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -172,7 +172,7 @@ public function handle_add_new_payment_modal() { $membership = wu_get_membership(wu_request('membership_id')); if ( ! $membership) { - $error = new \WP_Error('invalid-membership', __('Invalid membership.', 'multisite-ultimate')); + $error = new \WP_Error('invalid-membership', __('Invalid membership.', 'ultimate-multisite')); return wp_send_json_error($error); } @@ -228,8 +228,8 @@ public function register_widgets() {} public function get_labels() { return [ - 'deleted_message' => __('Payment removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Payment', 'multisite-ultimate'), + 'deleted_message' => __('Payment removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Payment', 'ultimate-multisite'), ]; } @@ -241,7 +241,7 @@ public function get_labels() { */ public function get_title() { - return __('Payments', 'multisite-ultimate'); + return __('Payments', 'ultimate-multisite'); } /** @@ -252,7 +252,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Payments', 'multisite-ultimate'); + return __('Payments', 'ultimate-multisite'); } /** @@ -263,7 +263,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Payments', 'multisite-ultimate'); + return __('Payments', 'ultimate-multisite'); } /** @@ -276,7 +276,7 @@ public function action_links() { return [ [ - 'label' => __('Add Payment', 'multisite-ultimate'), + 'label' => __('Add Payment', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_payment'), diff --git a/inc/admin-pages/class-placeholders-admin-page.php b/inc/admin-pages/class-placeholders-admin-page.php index 421130720..2b4465688 100644 --- a/inc/admin-pages/class-placeholders-admin-page.php +++ b/inc/admin-pages/class-placeholders-admin-page.php @@ -70,7 +70,7 @@ class Placeholders_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Edit Template Placeholders', 'multisite-ultimate'); + return __('Edit Template Placeholders', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Template Placeholders', 'multisite-ultimate'); + return __('Edit Template Placeholders', 'ultimate-multisite'); } /** @@ -92,7 +92,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Edit Template Placeholders', 'multisite-ultimate'); + return __('Edit Template Placeholders', 'ultimate-multisite'); } /** @@ -108,8 +108,8 @@ public function output(): void { $columns = apply_filters( 'wu_edit_placeholders_columns', [ - 'placeholder' => __('Placeholder', 'multisite-ultimate'), - 'content' => __('Content', 'multisite-ultimate'), + 'placeholder' => __('Placeholder', 'ultimate-multisite'), + 'content' => __('Content', 'ultimate-multisite'), ] ); @@ -138,9 +138,9 @@ public function register_scripts(): void { 'wu-edit-placeholders', 'wu_placeholdersl10n', [ - 'name' => __('Tax', 'multisite-ultimate'), - 'confirm_message' => __('Are you sure you want to delete this rows?', 'multisite-ultimate'), - 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'multisite-ultimate'), + 'name' => __('Tax', 'ultimate-multisite'), + 'confirm_message' => __('Are you sure you want to delete this rows?', 'ultimate-multisite'), + 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'ultimate-multisite'), ] ); diff --git a/inc/admin-pages/class-product-edit-admin-page.php b/inc/admin-pages/class-product-edit-admin-page.php index a1b0995d9..72d053ed4 100644 --- a/inc/admin-pages/class-product-edit-admin-page.php +++ b/inc/admin-pages/class-product-edit-admin-page.php @@ -116,16 +116,16 @@ public function add_new_product_warning_message(): void { [ [ 'id' => 'new-product-warning', - 'title' => __('On adding a new product...', 'multisite-ultimate'), + 'title' => __('On adding a new product...', 'ultimate-multisite'), 'text' => [ - __("You just successfully added a new product to your Multisite Ultimate network and that's awesome!", 'multisite-ultimate'), - __('Keep in mind that newly created products do not appear automatically in your checkout forms.', 'multisite-ultimate'), - __('To make a product available on registration, you will need to manually add it to the pricing table field of your checkout forms.', 'multisite-ultimate'), + __("You just successfully added a new product to your Multisite Ultimate network and that's awesome!", 'ultimate-multisite'), + __('Keep in mind that newly created products do not appear automatically in your checkout forms.', 'ultimate-multisite'), + __('To make a product available on registration, you will need to manually add it to the pricing table field of your checkout forms.', 'ultimate-multisite'), ], 'buttons' => [ [ 'classes' => 'button wu-text-xs sm:wu-normal-case wu-float-left', - 'text' => __('Go to Checkout Forms', 'multisite-ultimate'), + 'text' => __('Go to Checkout Forms', 'ultimate-multisite'), 'url' => wu_network_admin_url('wp-ultimo-checkout-forms'), ], ], @@ -153,9 +153,9 @@ public function product_extra_delete_fields($fields, $product) { $custom_fields = [ 're_assignment_product_id' => [ 'type' => 'model', - 'title' => __('Re-assign Memberships to', 'multisite-ultimate'), - 'placeholder' => __('Select Product...', 'multisite-ultimate'), - 'tooltip' => __('The product you select here will be assigned to all the memberships attached to the product you are deleting.', 'multisite-ultimate'), + 'title' => __('Re-assign Memberships to', 'ultimate-multisite'), + 'placeholder' => __('Select Product...', 'ultimate-multisite'), + 'tooltip' => __('The product you select here will be assigned to all the memberships attached to the product you are deleting.', 'ultimate-multisite'), 'html_attr' => [ 'data-model' => 'product', 'data-value-field' => 'id', @@ -225,14 +225,14 @@ public function register_widgets(): void { $this->add_fields_widget( 'description', [ - 'title' => __('Description', 'multisite-ultimate'), + 'title' => __('Description', 'ultimate-multisite'), 'position' => 'normal', 'fields' => [ 'description' => [ 'type' => 'textarea', - 'title' => __('Product Description', 'multisite-ultimate'), - 'placeholder' => __('Tell your customers what this product is about.', 'multisite-ultimate'), - 'tooltip' => __('This description is made available for layouts and can be shown to end customers.', 'multisite-ultimate'), + 'title' => __('Product Description', 'ultimate-multisite'), + 'placeholder' => __('Tell your customers what this product is about.', 'ultimate-multisite'), + 'tooltip' => __('This description is made available for layouts and can be shown to end customers.', 'ultimate-multisite'), 'value' => $this->get_object()->get_description(), 'html_attr' => [ 'rows' => 3, @@ -245,7 +245,7 @@ public function register_widgets(): void { $this->add_tabs_widget( 'product_options', [ - 'title' => __('Product Options', 'multisite-ultimate'), + 'title' => __('Product Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => $this->get_product_option_sections(), ] @@ -259,7 +259,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -287,15 +287,15 @@ public function register_widgets(): void { // Fields for price 'pricing_type' => [ 'type' => 'select', - 'title' => __('Pricing Type', 'multisite-ultimate'), - 'placeholder' => __('Select Pricing Type', 'multisite-ultimate'), - 'desc' => __('Products can be free, paid, or require further contact for pricing.', 'multisite-ultimate'), + 'title' => __('Pricing Type', 'ultimate-multisite'), + 'placeholder' => __('Select Pricing Type', 'ultimate-multisite'), + 'desc' => __('Products can be free, paid, or require further contact for pricing.', 'ultimate-multisite'), 'value' => $this->get_object()->get_pricing_type(), 'tooltip' => '', 'options' => [ - 'paid' => __('Paid', 'multisite-ultimate'), - 'free' => __('Free', 'multisite-ultimate'), - 'contact_us' => __('Contact Us', 'multisite-ultimate'), + 'paid' => __('Paid', 'ultimate-multisite'), + 'free' => __('Free', 'ultimate-multisite'), + 'contact_us' => __('Contact Us', 'ultimate-multisite'), ], 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -306,9 +306,9 @@ public function register_widgets(): void { ], 'contact_us_label' => [ 'type' => 'text', - 'title' => __('Button Label', 'multisite-ultimate'), - 'placeholder' => __('E.g. Contact us', 'multisite-ultimate'), - 'desc' => __('This will be used on the pricing table CTA button, as the label.', 'multisite-ultimate'), + 'title' => __('Button Label', 'ultimate-multisite'), + 'placeholder' => __('E.g. Contact us', 'ultimate-multisite'), + 'desc' => __('This will be used on the pricing table CTA button, as the label.', 'ultimate-multisite'), 'value' => $this->get_object()->get_contact_us_label(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'contact_us'", @@ -317,9 +317,9 @@ public function register_widgets(): void { ], 'contact_us_link' => [ 'type' => 'url', - 'title' => __('Button Link', 'multisite-ultimate'), - 'placeholder' => __('E.g. https://contactus.page.com', 'multisite-ultimate'), - 'desc' => __('This will be used on the pricing table CTA button.', 'multisite-ultimate'), + 'title' => __('Button Link', 'ultimate-multisite'), + 'placeholder' => __('E.g. https://contactus.page.com', 'ultimate-multisite'), + 'desc' => __('This will be used on the pricing table CTA button.', 'ultimate-multisite'), 'value' => $this->get_object()->get_contact_us_link(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'contact_us'", @@ -328,8 +328,8 @@ public function register_widgets(): void { ], 'recurring' => [ 'type' => 'toggle', - 'title' => __('Is Recurring?', 'multisite-ultimate'), - 'desc' => __('Check this if this product has a recurring charge.', 'multisite-ultimate'), + 'title' => __('Is Recurring?', 'ultimate-multisite'), + 'desc' => __('Check this if this product has a recurring charge.', 'ultimate-multisite'), 'value' => $this->get_object()->is_recurring(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'paid'", @@ -347,8 +347,8 @@ public function register_widgets(): void { ], '_amount' => [ 'type' => 'text', - 'title' => __('Price', 'multisite-ultimate'), - 'placeholder' => __('Price', 'multisite-ultimate'), + 'title' => __('Price', 'ultimate-multisite'), + 'placeholder' => __('Price', 'ultimate-multisite'), 'value' => $this->get_object()->get_formatted_amount(), 'tooltip' => '', 'money' => true, @@ -363,9 +363,9 @@ public function register_widgets(): void { ], 'amount_group' => [ 'type' => 'group', - 'title' => __('Price', 'multisite-ultimate'), + 'title' => __('Price', 'ultimate-multisite'), // translators: placeholder %1$s is the amount, %2$s is the duration (such as 1, 2, 3), and %3$s is the unit (such as month, year, week) - 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'multisite-ultimate'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), + 'desc' => sprintf(__('The customer will be charged %1$s every %2$s %3$s(s).', 'ultimate-multisite'), '{{ wu_format_money(amount) }}', '{{ duration }}', '{{ duration_unit }}'), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-show' => "is_recurring && pricing_type == 'paid'", @@ -403,19 +403,19 @@ public function register_widgets(): void { 'v-model' => 'duration_unit', ], 'options' => [ - 'day' => __('Days', 'multisite-ultimate'), - 'week' => __('Weeks', 'multisite-ultimate'), - 'month' => __('Months', 'multisite-ultimate'), - 'year' => __('Years', 'multisite-ultimate'), + 'day' => __('Days', 'ultimate-multisite'), + 'week' => __('Weeks', 'ultimate-multisite'), + 'month' => __('Months', 'ultimate-multisite'), + 'year' => __('Years', 'ultimate-multisite'), ], ], ], ], 'billing_cycles' => [ 'type' => 'number', - 'title' => __('Billing Cycles', 'multisite-ultimate'), - 'placeholder' => __('E.g. 1', 'multisite-ultimate'), - 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'multisite-ultimate'), + 'title' => __('Billing Cycles', 'ultimate-multisite'), + 'placeholder' => __('E.g. 1', 'ultimate-multisite'), + 'desc' => __('How many times should we bill this customer. Leave 0 to charge until cancelled.', 'ultimate-multisite'), 'value' => $this->get_object()->get_billing_cycles(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -425,8 +425,8 @@ public function register_widgets(): void { ], 'has_trial' => [ 'type' => 'toggle', - 'title' => __('Offer Trial', 'multisite-ultimate'), - 'desc' => __('Check if you want to add a trial period to this product.', 'multisite-ultimate'), + 'title' => __('Offer Trial', 'ultimate-multisite'), + 'desc' => __('Check if you want to add a trial period to this product.', 'ultimate-multisite'), 'value' => $this->get_object()->has_trial(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'paid'", @@ -438,7 +438,7 @@ public function register_widgets(): void { ], 'trial_group' => [ 'type' => 'group', - 'title' => __('Trial', 'multisite-ultimate'), + 'title' => __('Trial', 'ultimate-multisite'), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-show' => "has_trial && pricing_type == 'paid'", @@ -457,18 +457,18 @@ public function register_widgets(): void { 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/3', 'options' => [ - 'day' => __('Days', 'multisite-ultimate'), - 'week' => __('Weeks', 'multisite-ultimate'), - 'month' => __('Months', 'multisite-ultimate'), - 'year' => __('Years', 'multisite-ultimate'), + 'day' => __('Days', 'ultimate-multisite'), + 'week' => __('Weeks', 'ultimate-multisite'), + 'month' => __('Months', 'ultimate-multisite'), + 'year' => __('Years', 'ultimate-multisite'), ], ], ], ], 'has_setup_fee' => [ 'type' => 'toggle', - 'title' => __('Add Setup Fee?', 'multisite-ultimate'), - 'desc' => __('Check if you want to add a setup fee.', 'multisite-ultimate'), + 'title' => __('Add Setup Fee?', 'ultimate-multisite'), + 'desc' => __('Check if you want to add a setup fee.', 'ultimate-multisite'), 'value' => $this->get_object()->has_setup_fee(), 'wrapper_html_attr' => [ 'v-show' => "pricing_type == 'paid'", @@ -487,10 +487,10 @@ public function register_widgets(): void { '_setup_fee' => [ 'type' => 'text', 'money' => true, - 'title' => __('Setup Fee', 'multisite-ultimate'), - 'desc' => __('The setup fee will be added to the first charge, in addition to the regular price of the product.', 'multisite-ultimate'), + 'title' => __('Setup Fee', 'ultimate-multisite'), + 'desc' => __('The setup fee will be added to the first charge, in addition to the regular price of the product.', 'ultimate-multisite'), // translators: %s is a price placeholder value. - 'placeholder' => sprintf(__('E.g. %s', 'multisite-ultimate'), wu_format_currency(199)), + 'placeholder' => sprintf(__('E.g. %s', 'ultimate-multisite'), wu_format_currency(199)), 'value' => $this->get_object()->get_formatted_amount('setup_fee'), 'wrapper_html_attr' => [ 'v-show' => "has_setup_fee && pricing_type == 'paid'", @@ -510,12 +510,12 @@ public function register_widgets(): void { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this product for new sign-ups.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this product for new sign-ups.', 'ultimate-multisite'), 'value' => $this->get_object()->is_active(), ], ], @@ -525,13 +525,13 @@ public function register_widgets(): void { $this->add_fields_widget( 'image', [ - 'title' => __('Product Image', 'multisite-ultimate'), + 'title' => __('Product Image', 'ultimate-multisite'), 'fields' => [ 'featured_image_id' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Product Image', 'multisite-ultimate'), - 'desc' => __('This image is used on product list tables and other places.', 'multisite-ultimate'), + 'title' => __('Product Image', 'ultimate-multisite'), + 'desc' => __('This image is used on product list tables and other places.', 'ultimate-multisite'), 'value' => $this->get_object()->get_featured_image_id(), 'img' => $this->get_object()->get_featured_image(), ], @@ -570,9 +570,9 @@ public function handle_legacy_options(): void { $fields = [ 'heading' => [ 'type' => 'header', - 'title' => __('Legacy Options', 'multisite-ultimate'), + 'title' => __('Legacy Options', 'ultimate-multisite'), // translators: %s is the comma-separated list of legacy add-ons. - 'desc' => sprintf(__('Options for %s, and others.', 'multisite-ultimate'), implode(', ', $tabs)), + 'desc' => sprintf(__('Options for %s, and others.', 'ultimate-multisite'), implode(', ', $tabs)), ], ]; @@ -592,7 +592,7 @@ public function handle_legacy_options(): void { $this->add_fields_widget( 'legacy-options', [ - 'title' => __('Legacy Options', 'multisite-ultimate'), + 'title' => __('Legacy Options', 'ultimate-multisite'), 'position' => 'normal', 'fields' => $fields, 'classes' => 'wu-legacy-options-panel', @@ -618,8 +618,8 @@ protected function get_product_option_sections() { $sections = [ 'general' => [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General product options such as product slug, type, etc.', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General product options such as product slug, type, etc.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-globe', 'state' => [ 'slug' => $this->get_object()->get_slug(), @@ -628,11 +628,11 @@ protected function get_product_option_sections() { 'fields' => [ 'slug' => [ 'type' => 'text', - 'title' => __('Product Slug', 'multisite-ultimate'), - 'placeholder' => __('e.g. premium', 'multisite-ultimate'), - 'desc' => __('This serves as a id to the product in a number of different contexts.', 'multisite-ultimate'), + 'title' => __('Product Slug', 'ultimate-multisite'), + 'placeholder' => __('e.g. premium', 'ultimate-multisite'), + 'desc' => __('This serves as a id to the product in a number of different contexts.', 'ultimate-multisite'), 'value' => $this->get_object()->get_slug(), - 'tooltip' => __('Lowercase alpha-numeric characters with dashes or underlines. No spaces allowed.', 'multisite-ultimate'), + 'tooltip' => __('Lowercase alpha-numeric characters with dashes or underlines. No spaces allowed.', 'ultimate-multisite'), 'html_attr' => [ 'v-on:input' => 'slug = $event.target.value.toLowerCase().replace(/[^a-z0-9-_]+/g, "")', 'v-bind:value' => 'slug', @@ -641,9 +641,9 @@ protected function get_product_option_sections() { // Fields for price 'type' => [ 'type' => 'select', - 'title' => __('Product Type', 'multisite-ultimate'), - 'placeholder' => __('Product Type', 'multisite-ultimate'), - 'desc' => __('Different product types have different options.', 'multisite-ultimate'), + 'title' => __('Product Type', 'ultimate-multisite'), + 'placeholder' => __('Product Type', 'ultimate-multisite'), + 'desc' => __('Different product types have different options.', 'ultimate-multisite'), 'value' => $this->get_object()->get_type(), 'tooltip' => '', 'options' => Product_Type::to_array(), @@ -652,8 +652,8 @@ protected function get_product_option_sections() { ], ], 'modules[customer_user_role][limit]' => [ - 'title' => __('Customer Role', 'multisite-ultimate'), - 'desc' => __('Select the role Multisite Ultimate should use when adding the user to their newly created site.', 'multisite-ultimate'), + 'title' => __('Customer Role', 'ultimate-multisite'), + 'desc' => __('Select the role Multisite Ultimate should use when adding the user to their newly created site.', 'ultimate-multisite'), 'type' => 'select', 'value' => $this->get_object()->get_customer_role(), 'default' => 'administrator', @@ -670,36 +670,36 @@ protected function get_product_option_sections() { $plans_as_options = wu_get_plans_as_options(); $sections['ups-and-downs'] = [ - 'title' => __('Up & Downgrades', 'multisite-ultimate'), - 'desc' => __('Settings related to upgrade and downgrade flows.', 'multisite-ultimate'), + 'title' => __('Up & Downgrades', 'ultimate-multisite'), + 'desc' => __('Settings related to upgrade and downgrade flows.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-shop', 'v-show' => 'product_type === "plan"', 'state' => [], 'fields' => [ 'group' => [ - 'title' => __('Plan Group', 'multisite-ultimate'), - 'desc' => __('Add related plans to the same group to have them show up as upgrade/downgrade paths.', 'multisite-ultimate'), - 'placeholder' => __('Type and press enter to search and/or add.', 'multisite-ultimate'), + 'title' => __('Plan Group', 'ultimate-multisite'), + 'desc' => __('Add related plans to the same group to have them show up as upgrade/downgrade paths.', 'ultimate-multisite'), + 'placeholder' => __('Type and press enter to search and/or add.', 'ultimate-multisite'), 'type' => 'select', 'value' => $this->get_object()->get_group(), - 'options' => array_merge(['' => __('Select Group', 'multisite-ultimate')], wu_get_product_groups()), + 'options' => array_merge(['' => __('Select Group', 'ultimate-multisite')], wu_get_product_groups()), 'html_attr' => [ 'data-selectize-categories' => 999, 'data-max-items' => 1, ], ], 'list_order' => [ - 'title' => __('Product Order', 'multisite-ultimate'), - 'desc' => __('Plans are shown in the order determined by this parameter, from the lowest to the highest.', 'multisite-ultimate'), - 'placeholder' => __('Type and press enter to search and/or add.', 'multisite-ultimate'), + 'title' => __('Product Order', 'ultimate-multisite'), + 'desc' => __('Plans are shown in the order determined by this parameter, from the lowest to the highest.', 'ultimate-multisite'), + 'placeholder' => __('Type and press enter to search and/or add.', 'ultimate-multisite'), 'type' => 'number', 'value' => $this->get_object()->get_list_order(), ], 'available_addons' => [ 'type' => 'model', - 'title' => __('Offer Add-ons', 'multisite-ultimate'), - 'placeholder' => __('Search for a package or service', 'multisite-ultimate'), - 'desc' => __('This products will be offered inside upgrade/downgrade forms as order bumps.', 'multisite-ultimate'), + 'title' => __('Offer Add-ons', 'ultimate-multisite'), + 'placeholder' => __('Search for a package or service', 'ultimate-multisite'), + 'desc' => __('This products will be offered inside upgrade/downgrade forms as order bumps.', 'ultimate-multisite'), 'html_attr' => [ 'data-exclude' => implode(',', array_keys($plans_as_options)), 'data-model' => 'product', @@ -721,8 +721,8 @@ protected function get_product_option_sections() { ]; $sections['price-variations'] = [ - 'title' => __('Price Variations', 'multisite-ultimate'), - 'desc' => __('Discounts for longer membership commitments.', 'multisite-ultimate'), + 'title' => __('Price Variations', 'ultimate-multisite'), + 'desc' => __('Discounts for longer membership commitments.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-price-tag', 'state' => [ 'enable_price_variations' => ! empty($this->get_object()->get_price_variations()), @@ -731,8 +731,8 @@ protected function get_product_option_sections() { 'fields' => [ 'enable_price_variations' => [ 'type' => 'toggle', - 'title' => __('Enable Price Variations', 'multisite-ultimate'), - 'desc' => __('Price Variations are an easy way to offer discounted prices for longer subscription commitments.', 'multisite-ultimate'), + 'title' => __('Enable Price Variations', 'ultimate-multisite'), + 'desc' => __('Price Variations are an easy way to offer discounted prices for longer subscription commitments.', 'ultimate-multisite'), 'value' => false, 'html_attr' => [ 'v-model' => 'enable_price_variations', @@ -741,7 +741,7 @@ protected function get_product_option_sections() { 'price_variations' => [ 'type' => 'group', // translators: 1 is the price, 2 is the duration and 3 the duration unit - 'desc' => sprintf(__('A discounted price of %1$s will be used when memberships are created with the recurrence of %2$s %3$s(s) instead of the regular period.', 'multisite-ultimate'), '{{ wu_format_money(price_variation.amount) }}', '{{ price_variation.duration }}', '{{ price_variation.duration_unit }}'), + 'desc' => sprintf(__('A discounted price of %1$s will be used when memberships are created with the recurrence of %2$s %3$s(s) instead of the regular period.', 'ultimate-multisite'), '{{ wu_format_money(price_variation.amount) }}', '{{ price_variation.duration }}', '{{ price_variation.duration_unit }}'), 'tooltip' => '', 'wrapper_classes' => 'wu-relative', 'wrapper_html_attr' => [ @@ -752,12 +752,12 @@ protected function get_product_option_sections() { 'fields' => [ 'price_variations_remove' => [ 'type' => 'note', - 'desc' => sprintf('', esc_html__('Remove', 'multisite-ultimate')), + 'desc' => sprintf('', esc_html__('Remove', 'ultimate-multisite')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'price_variations_duration' => [ 'type' => 'number', - 'title' => __('Duration', 'multisite-ultimate'), + 'title' => __('Duration', 'ultimate-multisite'), 'placeholder' => '', 'wrapper_classes' => 'wu-w-1/3', 'min' => 1, @@ -769,7 +769,7 @@ protected function get_product_option_sections() { ], 'price_variations_duration_unit' => [ 'type' => 'select', - 'title' => __('Period', 'multisite-ultimate'), + 'title' => __('Period', 'ultimate-multisite'), 'placeholder' => '', 'wrapper_classes' => 'wu-w-1/3 wu-mx-2', 'html_attr' => [ @@ -777,10 +777,10 @@ protected function get_product_option_sections() { 'v-bind:name' => '"price_variations[" + index + "][duration_unit]"', ], 'options' => [ - 'day' => __('Days', 'multisite-ultimate'), - 'week' => __('Weeks', 'multisite-ultimate'), - 'month' => __('Months', 'multisite-ultimate'), - 'year' => __('Years', 'multisite-ultimate'), + 'day' => __('Days', 'ultimate-multisite'), + 'week' => __('Weeks', 'ultimate-multisite'), + 'month' => __('Months', 'ultimate-multisite'), + 'year' => __('Years', 'ultimate-multisite'), ], ], // Bind the amount of the price variation to another field so we don't send the formatted value to the server. @@ -793,7 +793,7 @@ protected function get_product_option_sections() { ], '_price_variations_amount' => [ 'type' => 'text', - 'title' => __('New Price', 'multisite-ultimate'), + 'title' => __('New Price', 'ultimate-multisite'), 'placeholder' => wu_format_currency('99'), 'wrapper_classes' => 'wu-w-1/3', 'money' => true, @@ -806,7 +806,7 @@ protected function get_product_option_sections() { ], 'repeat' => [ 'type' => 'submit', - 'title' => __('Add new Price Variation', 'multisite-ultimate'), + 'title' => __('Add new Price Variation', 'ultimate-multisite'), 'classes' => 'button wu-self-end', 'wrapper_classes' => 'wu-bg-whiten wu-items-end', 'wrapper_html_attr' => [ @@ -825,8 +825,8 @@ protected function get_product_option_sections() { ]; $sections['taxes'] = [ - 'title' => __('Taxes', 'multisite-ultimate'), - 'desc' => __('Tax settings for your products.', 'multisite-ultimate'), + 'title' => __('Taxes', 'ultimate-multisite'), + 'desc' => __('Tax settings for your products.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-credit', 'state' => [ 'taxable' => $this->get_object()->is_taxable(), @@ -834,8 +834,8 @@ protected function get_product_option_sections() { 'fields' => [ 'taxable' => [ 'type' => 'toggle', - 'title' => __('Is Taxable?', 'multisite-ultimate'), - 'desc' => __('Enable this if you plan to collect taxes for this product.', 'multisite-ultimate'), + 'title' => __('Is Taxable?', 'ultimate-multisite'), + 'desc' => __('Enable this if you plan to collect taxes for this product.', 'ultimate-multisite'), 'value' => $this->get_object()->is_taxable(), 'html_attr' => [ 'v-model' => 'taxable', @@ -843,8 +843,8 @@ protected function get_product_option_sections() { ], 'tax_category' => [ 'type' => 'select', - 'title' => __('Tax Category', 'multisite-ultimate'), - 'desc' => __('Select the product tax category.', 'multisite-ultimate'), + 'title' => __('Tax Category', 'ultimate-multisite'), + 'desc' => __('Select the product tax category.', 'ultimate-multisite'), 'value' => $this->get_object()->get_tax_category(), 'options' => 'wu_get_tax_categories_as_options', 'wrapper_html_attr' => [ @@ -856,8 +856,8 @@ protected function get_product_option_sections() { ]; $sections['allowed_templates'] = [ - 'title' => __('Site Templates', 'multisite-ultimate'), - 'desc' => __('Limit which site templates are available for this particular template.', 'multisite-ultimate'), + 'title' => __('Site Templates', 'ultimate-multisite'), + 'desc' => __('Limit which site templates are available for this particular template.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-grid1 wu-align-text-bottom', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -868,8 +868,8 @@ protected function get_product_option_sections() { 'fields' => [ 'modules[site_templates][enabled]' => [ 'type' => 'toggle', - 'title' => __('Allow Site Templates', 'multisite-ultimate'), - 'desc' => __('Toggle this option on to allow this plan to use Site Templates. If this option is disabled, sign-ups on this plan will get a default WordPress site.', 'multisite-ultimate'), + 'title' => __('Allow Site Templates', 'ultimate-multisite'), + 'desc' => __('Toggle this option on to allow this plan to use Site Templates. If this option is disabled, sign-ups on this plan will get a default WordPress site.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-cloak' => '1', ], @@ -879,15 +879,15 @@ protected function get_product_option_sections() { ], 'modules[site_templates][mode]' => [ 'type' => 'select', - 'title' => __('Site Template Selection Mode', 'multisite-ultimate'), - 'placeholder' => __('Site Template Selection Mode', 'multisite-ultimate'), - 'desc' => __('Select the type of limitation you want to apply.', 'multisite-ultimate'), - 'tooltip' => __('"Default" will follow the settings of the checkout form: if you have a template selection field in there, all the templates selected will show up. If no field is present, then a default WordPress site will be created.

"Assign Site Template" forces new accounts with this plan to use a particular template site (this option removes the template selection field from the signup, if one exists).

Finally, "Choose Available Site Templates", overrides the templates selected on the checkout form with the templates selected here, while also giving you the chance of pre-select a template to be used as default.', 'multisite-ultimate'), + 'title' => __('Site Template Selection Mode', 'ultimate-multisite'), + 'placeholder' => __('Site Template Selection Mode', 'ultimate-multisite'), + 'desc' => __('Select the type of limitation you want to apply.', 'ultimate-multisite'), + 'tooltip' => __('"Default" will follow the settings of the checkout form: if you have a template selection field in there, all the templates selected will show up. If no field is present, then a default WordPress site will be created.

"Assign Site Template" forces new accounts with this plan to use a particular template site (this option removes the template selection field from the signup, if one exists).

Finally, "Choose Available Site Templates", overrides the templates selected on the checkout form with the templates selected here, while also giving you the chance of pre-select a template to be used as default.', 'ultimate-multisite'), 'value' => 'default', 'options' => [ - 'default' => __('Default', 'multisite-ultimate'), - 'assign_template' => __('Assign Site Template', 'multisite-ultimate'), - 'choose_available_templates' => __('Choose Available Site Templates', 'multisite-ultimate'), + 'default' => __('Default', 'ultimate-multisite'), + 'assign_template' => __('Assign Site Template', 'ultimate-multisite'), + 'choose_available_templates' => __('Choose Available Site Templates', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'site_template_selection_mode', @@ -899,8 +899,8 @@ protected function get_product_option_sections() { ], 'templates' => [ 'type' => 'html', - 'title' => __('Site Templates', 'multisite-ultimate'), - 'desc' => esc_attr(sprintf('{{ site_template_selection_mode === "assign_template" ? "%s" : "%s" }}', __('Select the Site Template to assign.', 'multisite-ultimate'), __('Customize the access level of each Site Template below.', 'multisite-ultimate'))), + 'title' => __('Site Templates', 'ultimate-multisite'), + 'desc' => esc_attr(sprintf('{{ site_template_selection_mode === "assign_template" ? "%s" : "%s" }}', __('Select the Site Template to assign.', 'ultimate-multisite'), __('Customize the access level of each Site Template below.', 'ultimate-multisite'))), 'wrapper_html_attr' => [ 'v-cloak' => '1', 'v-show' => "allow_site_templates && site_template_selection_mode !== 'default'", @@ -942,7 +942,7 @@ public function get_site_template_selection_list($product) { */ public function get_title() { - return $this->edit ? __('Edit Product', 'multisite-ultimate') : __('Add new Product', 'multisite-ultimate'); + return $this->edit ? __('Edit Product', 'ultimate-multisite') : __('Add new Product', 'ultimate-multisite'); } /** @@ -953,7 +953,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Product', 'multisite-ultimate'); + return __('Edit Product', 'ultimate-multisite'); } /** @@ -971,7 +971,7 @@ public function action_links() { $actions[] = [ 'url' => '#', - 'label' => __('Click to copy Shareable Link', 'multisite-ultimate'), + 'label' => __('Click to copy Shareable Link', 'ultimate-multisite'), 'icon' => 'wu-attachment', 'classes' => 'wu-copy', 'attrs' => 'data-clipboard-text="' . esc_attr($shareable_link) . '"', @@ -990,15 +990,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Product', 'multisite-ultimate'), - 'add_new_label' => __('Add new Product', 'multisite-ultimate'), - 'updated_message' => __('Product updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Product Name', 'multisite-ultimate'), - 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'multisite-ultimate'), - 'save_button_label' => __('Save Product', 'multisite-ultimate'), + 'edit_label' => __('Edit Product', 'ultimate-multisite'), + 'add_new_label' => __('Add new Product', 'ultimate-multisite'), + 'updated_message' => __('Product updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Product Name', 'ultimate-multisite'), + 'title_description' => __('This name will be used on pricing tables, invoices, and more.', 'ultimate-multisite'), + 'save_button_label' => __('Save Product', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Product', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Product', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-product-list-admin-page.php b/inc/admin-pages/class-product-list-admin-page.php index 972e1390b..064c43da5 100644 --- a/inc/admin-pages/class-product-list-admin-page.php +++ b/inc/admin-pages/class-product-list-admin-page.php @@ -71,8 +71,8 @@ public function hooks() {} public function get_labels() { return [ - 'deleted_message' => __('Product removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Product', 'multisite-ultimate'), + 'deleted_message' => __('Product removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Product', 'ultimate-multisite'), ]; } @@ -84,7 +84,7 @@ public function get_labels() { */ public function get_title() { - return __('Products', 'multisite-ultimate'); + return __('Products', 'ultimate-multisite'); } /** @@ -95,7 +95,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Products', 'multisite-ultimate'); + return __('Products', 'ultimate-multisite'); } /** @@ -106,7 +106,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Products', 'multisite-ultimate'); + return __('Products', 'ultimate-multisite'); } /** @@ -120,7 +120,7 @@ public function action_links() { return [ [ 'url' => wu_network_admin_url('wp-ultimo-edit-product'), - 'label' => __('Add Product', 'multisite-ultimate'), + 'label' => __('Add Product', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', ], ]; diff --git a/inc/admin-pages/class-settings-admin-page.php b/inc/admin-pages/class-settings-admin-page.php index 9df100cd7..f015c07bb 100644 --- a/inc/admin-pages/class-settings-admin-page.php +++ b/inc/admin-pages/class-settings-admin-page.php @@ -138,7 +138,7 @@ public function register_widgets(): void { wu_register_settings_side_panel( 'login-and-registration', [ - 'title' => __('Checkout Forms', 'multisite-ultimate'), + 'title' => __('Checkout Forms', 'ultimate-multisite'), 'render' => [$this, 'render_checkout_forms_side_panel'], ] ); @@ -146,7 +146,7 @@ public function register_widgets(): void { wu_register_settings_side_panel( 'sites', [ - 'title' => __('Template Previewer', 'multisite-ultimate'), + 'title' => __('Template Previewer', 'ultimate-multisite'), 'render' => [$this, 'render_site_template_side_panel'], ] ); @@ -154,7 +154,7 @@ public function register_widgets(): void { wu_register_settings_side_panel( 'sites', [ - 'title' => __('Placeholder Editor', 'multisite-ultimate'), + 'title' => __('Placeholder Editor', 'ultimate-multisite'), 'render' => [$this, 'render_site_placeholders_side_panel'], ] ); @@ -162,7 +162,7 @@ public function register_widgets(): void { wu_register_settings_side_panel( 'payment-gateways', [ - 'title' => __('Invoices', 'multisite-ultimate'), + 'title' => __('Invoices', 'ultimate-multisite'), 'render' => [$this, 'render_invoice_side_panel'], ] ); @@ -170,7 +170,7 @@ public function register_widgets(): void { wu_register_settings_side_panel( 'emails', [ - 'title' => __('System Emails', 'multisite-ultimate'), + 'title' => __('System Emails', 'ultimate-multisite'), 'render' => [$this, 'render_system_emails_side_panel'], ] ); @@ -178,7 +178,7 @@ public function register_widgets(): void { wu_register_settings_side_panel( 'emails', [ - 'title' => __('Email Template', 'multisite-ultimate'), + 'title' => __('Email Template', 'ultimate-multisite'), 'render' => [$this, 'render_email_template_side_panel'], ] ); @@ -198,15 +198,15 @@ public function render_checkout_forms_side_panel(): void {
- +
- <?php esc_attr_e('Checkout Forms', 'multisite-ultimate'); ?> + <?php esc_attr_e('Checkout Forms', 'ultimate-multisite'); ?>

- +

@@ -215,7 +215,7 @@ public function render_checkout_forms_side_panel(): void { @@ -241,15 +241,15 @@ public function render_site_template_side_panel(): void {
- +
- <?php esc_attr_e('Customize the Template Previewer', 'multisite-ultimate'); ?> + <?php esc_attr_e('Customize the Template Previewer', 'ultimate-multisite'); ?>

- +

@@ -258,7 +258,7 @@ public function render_site_template_side_panel(): void { @@ -284,15 +284,15 @@ public function render_site_placeholders_side_panel(): void {
- +
- <?php esc_attr_e('Customize the Template Placeholders', 'multisite-ultimate'); ?> + <?php esc_attr_e('Customize the Template Placeholders', 'ultimate-multisite'); ?>

- +

@@ -301,7 +301,7 @@ public function render_site_placeholders_side_panel(): void { @@ -327,15 +327,15 @@ public function render_invoice_side_panel(): void {
- +
- <?php esc_attr_e('Customize the Invoice Template', 'multisite-ultimate'); ?> + <?php esc_attr_e('Customize the Invoice Template', 'ultimate-multisite'); ?>

- +

@@ -344,7 +344,7 @@ public function render_invoice_side_panel(): void { @@ -370,15 +370,15 @@ public function render_system_emails_side_panel(): void {
- +
- <?php esc_attr_e('Customize System Emails', 'multisite-ultimate'); ?> + <?php esc_attr_e('Customize System Emails', 'ultimate-multisite'); ?>

- +

@@ -387,7 +387,7 @@ public function render_system_emails_side_panel(): void { @@ -413,15 +413,15 @@ public function render_email_template_side_panel(): void {
- +
- <?php esc_attr_e('Customize Email Template', 'multisite-ultimate'); ?> + <?php esc_attr_e('Customize Email Template', 'ultimate-multisite'); ?>

- +

@@ -430,7 +430,7 @@ public function render_email_template_side_panel(): void { @@ -451,7 +451,7 @@ public function render_email_template_side_panel(): void { */ public function get_title() { - return __('Settings', 'multisite-ultimate'); + return __('Settings', 'ultimate-multisite'); } /** @@ -462,7 +462,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Settings', 'multisite-ultimate'); + return __('Settings', 'ultimate-multisite'); } /** @@ -519,7 +519,7 @@ public function get_sections() { public function default_handler(): void { if ( ! current_user_can('wu_edit_settings')) { - wp_die(esc_html__('You do not have the permissions required to change settings.', 'multisite-ultimate')); + wp_die(esc_html__('You do not have the permissions required to change settings.', 'ultimate-multisite')); } // Get all valid setting keys from sections @@ -579,7 +579,7 @@ public function default_view(): void { */ $fields['save'] = [ 'type' => 'submit', - 'title' => __('Save Settings', 'multisite-ultimate'), + 'title' => __('Save Settings', 'ultimate-multisite'), 'classes' => 'button button-primary button-large wu-ml-auto wu-w-full md:wu-w-auto', 'wrapper_classes' => 'wu-sticky wu-bottom-0 wu-save-button wu-mr-px wu-w-full md:wu-w-auto', 'html_attr' => [ diff --git a/inc/admin-pages/class-setup-wizard-admin-page.php b/inc/admin-pages/class-setup-wizard-admin-page.php index ef1f6ded6..70a8ca95c 100644 --- a/inc/admin-pages/class-setup-wizard-admin-page.php +++ b/inc/admin-pages/class-setup-wizard-admin-page.php @@ -239,7 +239,7 @@ public function setup_install(): void { global $wpdb; if ( ! current_user_can('manage_network')) { - wp_send_json_error(new \WP_Error('not-allowed', __('Permission denied.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-allowed', __('Permission denied.', 'ultimate-multisite'))); exit; } @@ -293,7 +293,7 @@ public function get_logo() { */ public function get_title(): string { - return sprintf(__('Installation', 'multisite-ultimate')); + return sprintf(__('Installation', 'ultimate-multisite')); } /** @@ -304,7 +304,7 @@ public function get_title(): string { */ public function get_menu_title() { - return WP_Ultimo()->is_loaded() ? __('Multisite Ultimate Install', 'multisite-ultimate') : __('Multisite Ultimate', 'multisite-ultimate'); + return WP_Ultimo()->is_loaded() ? __('Multisite Ultimate Install', 'ultimate-multisite') : __('Multisite Ultimate', 'ultimate-multisite'); } /** @@ -317,22 +317,22 @@ public function get_sections() { $sections = [ 'welcome' => [ - 'title' => __('Welcome', 'multisite-ultimate'), + 'title' => __('Welcome', 'ultimate-multisite'), 'description' => implode( '

', [ - __('...and thanks for choosing Multisite Ultimate!', 'multisite-ultimate'), - __('This quick setup wizard will make sure your server is correctly setup, help you configure your new network, and migrate data from previous Multisite Ultimate versions if necessary.', 'multisite-ultimate'), - __('You will also have the option of importing default content. It should take 10 minutes or less!', 'multisite-ultimate'), + __('...and thanks for choosing Multisite Ultimate!', 'ultimate-multisite'), + __('This quick setup wizard will make sure your server is correctly setup, help you configure your new network, and migrate data from previous Multisite Ultimate versions if necessary.', 'ultimate-multisite'), + __('You will also have the option of importing default content. It should take 10 minutes or less!', 'ultimate-multisite'), ] ), - 'next_label' => __('Get Started →', 'multisite-ultimate'), + 'next_label' => __('Get Started →', 'ultimate-multisite'), 'back' => false, ], 'checks' => [ - 'title' => __('Pre-install Checks', 'multisite-ultimate'), - 'description' => __('Now it is time to see if this machine has what it takes to run Multisite Ultimate well!', 'multisite-ultimate'), - 'next_label' => Requirements::met() ? __('Go to the Next Step →', 'multisite-ultimate') : __('Check Again', 'multisite-ultimate'), + 'title' => __('Pre-install Checks', 'ultimate-multisite'), + 'description' => __('Now it is time to see if this machine has what it takes to run Multisite Ultimate well!', 'ultimate-multisite'), + 'next_label' => Requirements::met() ? __('Go to the Next Step →', 'ultimate-multisite') : __('Check Again', 'ultimate-multisite'), 'handler' => [$this, 'handle_checks'], 'back' => false, 'fields' => [ @@ -343,9 +343,9 @@ public function get_sections() { ], ], 'installation' => [ - 'title' => __('Installation', 'multisite-ultimate'), - 'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of Multisite Ultimate.', 'multisite-ultimate'), - 'next_label' => Core_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'multisite-ultimate') : __('Install', 'multisite-ultimate'), + 'title' => __('Installation', 'ultimate-multisite'), + 'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of Multisite Ultimate.', 'ultimate-multisite'), + 'next_label' => Core_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'ultimate-multisite') : __('Install', 'ultimate-multisite'), 'disable_next' => true, 'fields' => [ 'terms' => [ @@ -368,14 +368,14 @@ public function get_sections() { $back_traces = Migrator::get_instance()->get_back_traces(); - $next_label = __('Migrate!', 'multisite-ultimate'); + $next_label = __('Migrate!', 'ultimate-multisite'); - $description = __('No errors found during dry run! Now it is time to actually migrate!

We strongly recommend creating a backup of your database before moving forward with the migration.', 'multisite-ultimate'); + $description = __('No errors found during dry run! Now it is time to actually migrate!

We strongly recommend creating a backup of your database before moving forward with the migration.', 'ultimate-multisite'); if ($dry_run) { - $next_label = __('Run Check', 'multisite-ultimate'); + $next_label = __('Run Check', 'ultimate-multisite'); - $description = __('It seems that you were running Multisite Ultimate 1.X on this network. This migrator will convert the data from the old version to the new one.', 'multisite-ultimate') . '

' . __('First, let\'s run a test migration to see if we can spot any potential errors.', 'multisite-ultimate'); + $description = __('It seems that you were running Multisite Ultimate 1.X on this network. This migrator will convert the data from the old version to the new one.', 'ultimate-multisite') . '

' . __('First, let\'s run a test migration to see if we can spot any potential errors.', 'ultimate-multisite'); } $fields = [ @@ -402,17 +402,17 @@ public function get_sections() { $message = implode(PHP_EOL . PHP_EOL, $message_lines); - $description = __('The dry run test detected issues during the test migration. Please, contact our support team to get help migrating from 1.X to version 2.', 'multisite-ultimate'); + $description = __('The dry run test detected issues during the test migration. Please, contact our support team to get help migrating from 1.X to version 2.', 'ultimate-multisite'); $next = true; - $next_label = __('Try Again!', 'multisite-ultimate'); + $next_label = __('Try Again!', 'ultimate-multisite'); - $error_list = '' . __('List of errors detected:', 'multisite-ultimate') . '

'; + $error_list = '' . __('List of errors detected:', 'ultimate-multisite') . '

'; $errors[] = sprintf( '
%1$s', - __('Download migration error log', 'multisite-ultimate'), + __('Download migration error log', 'ultimate-multisite'), add_query_arg( [ 'action' => 'download_migration_logs', @@ -424,7 +424,7 @@ public function get_sections() { $errors[] = sprintf( '
%1$s', - __('Rollback to version 1.10.13', 'multisite-ultimate'), + __('Rollback to version 1.10.13', 'ultimate-multisite'), add_query_arg( [ 'page' => 'wp-ultimo-rollback', @@ -456,7 +456,7 @@ public function get_sections() { } $sections['migration'] = [ - 'title' => __('Migration', 'multisite-ultimate'), + 'title' => __('Migration', 'ultimate-multisite'), 'description' => $description, 'next_label' => $next_label, 'skip' => false, @@ -466,16 +466,16 @@ public function get_sections() { ]; } else { $sections['your-company'] = [ - 'title' => __('Your Company', 'multisite-ultimate'), - 'description' => __('Before we move on, let\'s configure the basic settings of your network, shall we?', 'multisite-ultimate'), + 'title' => __('Your Company', 'ultimate-multisite'), + 'description' => __('Before we move on, let\'s configure the basic settings of your network, shall we?', 'ultimate-multisite'), 'handler' => [$this, 'handle_save_settings'], 'fields' => [$this, 'get_general_settings'], ]; $sections['defaults'] = [ - 'title' => __('Default Content', 'multisite-ultimate'), - 'description' => __('Starting from scratch can be scarry, specially when first starting out. In this step, you can create default content to have a starting point for your network. Everything can be customized later.', 'multisite-ultimate'), - 'next_label' => Default_Content_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'multisite-ultimate') : __('Install', 'multisite-ultimate'), + 'title' => __('Default Content', 'ultimate-multisite'), + 'description' => __('Starting from scratch can be scarry, specially when first starting out. In this step, you can create default content to have a starting point for your network. Everything can be customized later.', 'ultimate-multisite'), + 'next_label' => Default_Content_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'ultimate-multisite') : __('Install', 'ultimate-multisite'), 'disable_next' => true, 'fields' => [ 'terms' => [ @@ -487,7 +487,7 @@ public function get_sections() { } $sections['done'] = [ - 'title' => __('Ready!', 'multisite-ultimate'), + 'title' => __('Ready!', 'ultimate-multisite'), 'view' => [$this, 'section_ready'], ]; @@ -585,7 +585,7 @@ public function render_installation_steps($steps, $checks = true) { 'wu_setup_settings', [ 'dry_run' => wu_request('dry-run', true), - 'generic_error_message' => __('A server error happened while processing this item.', 'multisite-ultimate'), + 'generic_error_message' => __('A server error happened while processing this item.', 'ultimate-multisite'), ] ); @@ -624,7 +624,7 @@ public function renders_requirements_table() { $requirements = [ 'php' => [ - 'name' => __('PHP', 'multisite-ultimate'), + 'name' => __('PHP', 'ultimate-multisite'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), 'required_version' => Requirements::$php_version, 'recommended_version' => Requirements::$php_recommended_version, @@ -633,7 +633,7 @@ public function renders_requirements_table() { 'pass_recommendation' => version_compare(phpversion(), Requirements::$php_recommended_version, '>='), ], 'wordpress' => [ - 'name' => __('WordPress', 'multisite-ultimate'), + 'name' => __('WordPress', 'ultimate-multisite'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), 'required_version' => Requirements::$wp_version, 'recommended_version' => Requirements::$wp_recommended_version, @@ -645,21 +645,21 @@ public function renders_requirements_table() { $plugin_requirements = [ 'multisite' => [ - 'name' => __('WordPress Multisite', 'multisite-ultimate'), + 'name' => __('WordPress Multisite', 'ultimate-multisite'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), - 'condition' => __('Installed & Activated', 'multisite-ultimate'), + 'condition' => __('Installed & Activated', 'ultimate-multisite'), 'pass_requirements' => is_multisite(), ], 'wp-ultimo' => [ - 'name' => __('Multisite Ultimate', 'multisite-ultimate'), + 'name' => __('Multisite Ultimate', 'ultimate-multisite'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), - 'condition' => apply_filters('wp_ultimo_skip_network_active_check', false) ? __('Bypassed via filter', 'multisite-ultimate') : __('Network Activated', 'multisite-ultimate'), + 'condition' => apply_filters('wp_ultimo_skip_network_active_check', false) ? __('Bypassed via filter', 'ultimate-multisite') : __('Network Activated', 'ultimate-multisite'), 'pass_requirements' => Requirements::is_network_active(), ], 'wp-cron' => [ - 'name' => __('WordPress Cron', 'multisite-ultimate'), + 'name' => __('WordPress Cron', 'ultimate-multisite'), 'help' => wu_get_documentation_url('wp-ultimo-requirements'), - 'condition' => __('Activated', 'multisite-ultimate'), + 'condition' => __('Activated', 'ultimate-multisite'), 'pass_requirements' => Requirements::check_wp_cron(), ], ]; @@ -749,14 +749,14 @@ public function alert_incomplete_installation(): void { if (! defined('SUNRISE') || ! SUNRISE) { $message = sprintf(__('The SUNRISE constant is missing. Domain mapping and plugin/theme limits will not function until `%s` is added to wp-config.php. Please complete the setup to attempt to do this automatically.'), 'define( SUNRISE, \'1\' );'); } else { - $message = __('Multisite Ultimate installation is incomplete. The sunrise.php file is missing. Please complete the setup to ensure proper functionality.', 'multisite-ultimate'); + $message = __('Multisite Ultimate installation is incomplete. The sunrise.php file is missing. Please complete the setup to ensure proper functionality.', 'ultimate-multisite'); } $actions = [ 'complete_setup' => [ - 'title' => __('Complete Setup', 'multisite-ultimate'), + 'title' => __('Complete Setup', 'ultimate-multisite'), 'url' => wu_network_admin_url('wp-ultimo-setup'), ], ]; @@ -872,8 +872,8 @@ public function register_scripts(): void { 'wu_fields', [ 'l10n' => [ - 'image_picker_title' => __('Select an Image.', 'multisite-ultimate'), - 'image_picker_button_text' => __('Use this image', 'multisite-ultimate'), + 'image_picker_title' => __('Select an Image.', 'ultimate-multisite'), + 'image_picker_button_text' => __('Use this image', 'ultimate-multisite'), ], ] ); diff --git a/inc/admin-pages/class-shortcodes-admin-page.php b/inc/admin-pages/class-shortcodes-admin-page.php index f1a413c11..704613a53 100644 --- a/inc/admin-pages/class-shortcodes-admin-page.php +++ b/inc/admin-pages/class-shortcodes-admin-page.php @@ -80,7 +80,7 @@ class Shortcodes_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Available Shortcodes', 'multisite-ultimate'); + return __('Available Shortcodes', 'ultimate-multisite'); } /** @@ -91,7 +91,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Available Shortcodes', 'multisite-ultimate'); + return __('Available Shortcodes', 'ultimate-multisite'); } /** @@ -102,7 +102,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Dashboard', 'multisite-ultimate'); + return __('Dashboard', 'ultimate-multisite'); } /** @@ -154,16 +154,16 @@ public function get_data() { $params[ $key ]['options'] = implode(' | ', array_keys(wu_get_isset($value, 'options', []))); break; case 'int': - $params[ $key ]['options'] = __('integer', 'multisite-ultimate'); + $params[ $key ]['options'] = __('integer', 'ultimate-multisite'); break; case 'number': - $params[ $key ]['options'] = __('number', 'multisite-ultimate'); + $params[ $key ]['options'] = __('number', 'ultimate-multisite'); break; case 'text': - $params[ $key ]['options'] = __('text', 'multisite-ultimate'); + $params[ $key ]['options'] = __('text', 'ultimate-multisite'); break; case 'textarea': - $params[ $key ]['options'] = __('text', 'multisite-ultimate'); + $params[ $key ]['options'] = __('text', 'ultimate-multisite'); break; default: $params[ $key ]['options'] = $value['type']; diff --git a/inc/admin-pages/class-site-edit-admin-page.php b/inc/admin-pages/class-site-edit-admin-page.php index cf64b106d..5afe2d6ca 100644 --- a/inc/admin-pages/class-site-edit-admin-page.php +++ b/inc/admin-pages/class-site-edit-admin-page.php @@ -152,16 +152,16 @@ public function add_new_site_template_warning_message(): void { [ [ 'id' => 'new-site-template-warning', - 'title' => __('On adding a new Site Template...', 'multisite-ultimate'), + 'title' => __('On adding a new Site Template...', 'ultimate-multisite'), 'text' => [ - __("You just successfully added a new site template to your Multisite Ultimate network and that's awesome!", 'multisite-ultimate'), - __('Keep in mind that newly created site templates do not appear automatically in your checkout forms.', 'multisite-ultimate'), - __('To make a site template available on registration, you will need to manually add it to the template selection field of your checkout forms.', 'multisite-ultimate'), + __("You just successfully added a new site template to your Multisite Ultimate network and that's awesome!", 'ultimate-multisite'), + __('Keep in mind that newly created site templates do not appear automatically in your checkout forms.', 'ultimate-multisite'), + __('To make a site template available on registration, you will need to manually add it to the template selection field of your checkout forms.', 'ultimate-multisite'), ], 'buttons' => [ [ 'classes' => 'button wu-text-xs sm:wu-normal-case wu-float-left', - 'text' => __('Go to Checkout Forms', 'multisite-ultimate'), + 'text' => __('Go to Checkout Forms', 'ultimate-multisite'), 'url' => wu_network_admin_url('wp-ultimo-checkout-forms'), ], ], @@ -192,16 +192,16 @@ public function render_transfer_site_modal(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Transfer', 'multisite-ultimate'), - 'desc' => __('This will start the transfer of assets from one membership to another.', 'multisite-ultimate'), + 'title' => __('Confirm Transfer', 'ultimate-multisite'), + 'desc' => __('This will start the transfer of assets from one membership to another.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Start Transfer', 'multisite-ultimate'), - 'placeholder' => __('Start Transfer', 'multisite-ultimate'), + 'title' => __('Start Transfer', 'ultimate-multisite'), + 'placeholder' => __('Start Transfer', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -257,11 +257,11 @@ public function handle_transfer_site_modal(): void { $target_membership = wu_get_membership(wu_request('target_membership_id')); if ( ! $site) { - wp_send_json_error(new \WP_Error('not-found', __('Site not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Site not found.', 'ultimate-multisite'))); } if ( ! $target_membership) { - wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Membership not found.', 'ultimate-multisite'))); } $site->set_membership_id($target_membership->get_id()); @@ -308,7 +308,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'at_a_glance', [ - 'title' => __('At a Glance', 'multisite-ultimate'), + 'title' => __('At a Glance', 'ultimate-multisite'), 'position' => 'normal', 'classes' => 'wu-overflow-hidden wu-m-0 wu--mt-1 wu--mx-3 wu--mb-3', 'field_wrapper_classes' => 'wu-w-1/4 wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t-0 wu-border-l-0 wu-border-r wu-border-b-0 wu-border-gray-300 wu-border-solid wu-float-left wu-relative', @@ -318,14 +318,14 @@ public function register_widgets(): void { 'fields' => [ 'type' => [ 'type' => 'text-display', - 'title' => __('Site Type', 'multisite-ultimate'), + 'title' => __('Site Type', 'ultimate-multisite'), 'display_value' => $tag, 'tooltip' => '', ], 'id' => [ 'type' => 'text-display', 'copy' => true, - 'title' => __('Site ID', 'multisite-ultimate'), + 'title' => __('Site ID', 'ultimate-multisite'), 'display_value' => $this->get_object()->get_id(), 'tooltip' => '', ], @@ -336,13 +336,13 @@ public function register_widgets(): void { $this->add_fields_widget( 'description', [ - 'title' => __('Description', 'multisite-ultimate'), + 'title' => __('Description', 'ultimate-multisite'), 'position' => 'normal', 'fields' => [ 'description' => [ 'type' => 'textarea', - 'title' => __('Site Description', 'multisite-ultimate'), - 'placeholder' => __('Tell your customers what this site is about.', 'multisite-ultimate'), + 'title' => __('Site Description', 'ultimate-multisite'), + 'placeholder' => __('Tell your customers what this site is about.', 'ultimate-multisite'), 'value' => $this->get_object()->get_option_blogdescription(), 'html_attr' => [ 'rows' => 3, @@ -355,7 +355,7 @@ public function register_widgets(): void { $this->add_tabs_widget( 'options', [ - 'title' => __('Site Options', 'multisite-ultimate'), + 'title' => __('Site Options', 'ultimate-multisite'), 'position' => 'normal', 'sections' => $this->get_site_option_sections(), ] @@ -364,7 +364,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'domains', [ - 'title' => __('Mapped Domains', 'multisite-ultimate'), + 'title' => __('Mapped Domains', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Sites_Domain_List_Table(), 'query_filter' => [$this, 'domain_query_filter'], ] @@ -374,7 +374,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'membership', [ - 'title' => __('Linked Membership', 'multisite-ultimate'), + 'title' => __('Linked Membership', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Customers_Membership_List_Table(), 'query_filter' => function ($query) { @@ -388,7 +388,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'customer', [ - 'title' => __('Linked Customer', 'multisite-ultimate'), + 'title' => __('Linked Customer', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Site_Customer_List_Table(), 'query_filter' => function ($query) { @@ -403,7 +403,7 @@ public function register_widgets(): void { $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -429,9 +429,9 @@ public function register_widgets(): void { // Fields for price 'type_main' => [ 'type' => 'text-display', - 'title' => __('Site Type', 'multisite-ultimate'), - 'display_value' => __('Main Site', 'multisite-ultimate'), - 'tooltip' => __('You can\'t change the main site type.', 'multisite-ultimate'), + 'title' => __('Site Type', 'ultimate-multisite'), + 'display_value' => __('Main Site', 'ultimate-multisite'), + 'tooltip' => __('You can\'t change the main site type.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-cloak' => '1', 'v-show' => 'type === "main"', @@ -439,15 +439,15 @@ public function register_widgets(): void { ], 'type' => [ 'type' => 'select', - 'title' => __('Site Type', 'multisite-ultimate'), - 'placeholder' => __('Select Site Type', 'multisite-ultimate'), - 'desc' => __('Different site types have different options and settings.', 'multisite-ultimate'), + 'title' => __('Site Type', 'ultimate-multisite'), + 'placeholder' => __('Select Site Type', 'ultimate-multisite'), + 'desc' => __('Different site types have different options and settings.', 'ultimate-multisite'), 'value' => $this->get_object()->get_type(), 'tooltip' => '', 'options' => [ - 'default' => __('Regular WordPress', 'multisite-ultimate'), - 'site_template' => __('Site Template', 'multisite-ultimate'), - 'customer_owned' => __('Customer-owned', 'multisite-ultimate'), + 'default' => __('Regular WordPress', 'ultimate-multisite'), + 'site_template' => __('Site Template', 'ultimate-multisite'), + 'customer_owned' => __('Customer-owned', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'type', @@ -459,9 +459,9 @@ public function register_widgets(): void { ], 'categories' => [ 'type' => 'select', - 'title' => __('Template Categories', 'multisite-ultimate'), - 'placeholder' => __('e.g.: Landing Page, Health...', 'multisite-ultimate'), - 'desc' => __('Customers will be able to filter by categories during signup.', 'multisite-ultimate'), + 'title' => __('Template Categories', 'ultimate-multisite'), + 'placeholder' => __('e.g.: Landing Page, Health...', 'ultimate-multisite'), + 'desc' => __('Customers will be able to filter by categories during signup.', 'ultimate-multisite'), 'value' => $this->get_object()->get_categories(), 'options' => Site::get_all_categories(), 'html_attr' => [ @@ -475,9 +475,9 @@ public function register_widgets(): void { ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Associated Membership', 'multisite-ultimate'), - 'placeholder' => __('Search Membership...', 'multisite-ultimate'), - 'desc' => __('The membership that owns this site.', 'multisite-ultimate'), + 'title' => __('Associated Membership', 'ultimate-multisite'), + 'placeholder' => __('Search Membership...', 'ultimate-multisite'), + 'desc' => __('The membership that owns this site.', 'ultimate-multisite'), 'value' => $this->get_object()->get_membership_id(), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -495,7 +495,7 @@ public function register_widgets(): void { ], 'transfer_note' => [ 'type' => 'note', - 'desc' => __('Changing the membership will transfer the site and all its assets to the new membership.', 'multisite-ultimate'), + 'desc' => __('Changing the membership will transfer the site and all its assets to the new membership.', 'ultimate-multisite'), 'classes' => 'wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-w-full', 'wrapper_html_attr' => [ 'v-show' => '(original_membership_id != membership_id) && membership_id', @@ -504,8 +504,8 @@ public function register_widgets(): void { ], 'submit_save' => [ 'type' => 'submit', - 'title' => __('Save Site', 'multisite-ultimate'), - 'placeholder' => __('Save Site', 'multisite-ultimate'), + 'title' => __('Save Site', 'ultimate-multisite'), + 'placeholder' => __('Save Site', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_html_attr' => [ @@ -515,7 +515,7 @@ public function register_widgets(): void { ], 'transfer' => [ 'type' => 'link', - 'display_value' => __('Transfer Site', 'multisite-ultimate'), + 'display_value' => __('Transfer Site', 'ultimate-multisite'), 'wrapper_classes' => 'wu-bg-gray-200', 'classes' => 'button wubox wu-w-full wu-text-center', 'wrapper_html_attr' => [ @@ -530,7 +530,7 @@ public function register_widgets(): void { 'target_membership_id' => '', ] ) . "=' + membership_id", - 'title' => __('Transfer Site', 'multisite-ultimate'), + 'title' => __('Transfer Site', 'ultimate-multisite'), ], ], ], @@ -540,12 +540,12 @@ public function register_widgets(): void { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this site.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this site.', 'ultimate-multisite'), 'value' => $this->get_object()->is_active(), ], ], @@ -555,19 +555,19 @@ public function register_widgets(): void { $this->add_fields_widget( 'image', [ - 'title' => __('Site Image', 'multisite-ultimate'), + 'title' => __('Site Image', 'ultimate-multisite'), 'fields' => [ 'featured_image_id' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Site Image', 'multisite-ultimate'), - 'desc' => __('This image is used on lists of sites and other places. It can be automatically generated by the screenshot scraper.', 'multisite-ultimate'), + 'title' => __('Site Image', 'ultimate-multisite'), + 'desc' => __('This image is used on lists of sites and other places. It can be automatically generated by the screenshot scraper.', 'ultimate-multisite'), 'value' => $this->get_object()->get_featured_image_id(), 'img' => $this->get_object()->get_featured_image(), ], 'scraper_note' => [ 'type' => 'note', - 'desc' => __('You need to save the site for the change to take effect.', 'multisite-ultimate'), + 'desc' => __('You need to save the site for the change to take effect.', 'ultimate-multisite'), 'wrapper_classes' => 'wu-hidden wu-scraper-note', ], 'scraper_error' => [ @@ -577,12 +577,12 @@ public function register_widgets(): void { ], 'scraper_message' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('We detected that this network might be running locally. If that\'s the case, Multisite Ultimate will not be able to take a screenshot of the site. A site needs to be publicly available to the outside world in order for this feature to work.', 'multisite-ultimate')), + 'desc' => sprintf('%s', __('We detected that this network might be running locally. If that\'s the case, Multisite Ultimate will not be able to take a screenshot of the site. A site needs to be publicly available to the outside world in order for this feature to work.', 'ultimate-multisite')), 'wrapper_classes' => \WP_Ultimo\Domain_Mapping\Helper::is_development_mode() ? '' : 'wu-hidden', ], 'scraper' => [ 'type' => 'submit', - 'title' => __('Take Screenshot', 'multisite-ultimate'), + 'title' => __('Take Screenshot', 'ultimate-multisite'), 'classes' => 'button wu-w-full', ], ], @@ -617,7 +617,7 @@ protected function get_site_option_sections() { */ public function get_title() { - return $this->edit ? __('Edit Site', 'multisite-ultimate') : __('Add new Site', 'multisite-ultimate'); + return $this->edit ? __('Edit Site', 'ultimate-multisite') : __('Add new Site', 'ultimate-multisite'); } /** @@ -628,7 +628,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Site', 'multisite-ultimate'); + return __('Edit Site', 'ultimate-multisite'); } /** @@ -642,17 +642,17 @@ public function action_links() { return [ [ 'url' => network_admin_url('site-settings.php?id=' . $this->get_object()->get_id()), - 'label' => __('Go to the Default Edit Screen', 'multisite-ultimate'), + 'label' => __('Go to the Default Edit Screen', 'ultimate-multisite'), 'icon' => 'wu-cog', ], [ 'url' => get_site_url($this->get_object()->get_id()), - 'label' => __('Visit Site', 'multisite-ultimate'), + 'label' => __('Visit Site', 'ultimate-multisite'), 'icon' => 'wu-link', ], [ 'url' => get_admin_url($this->get_object()->get_id()), - 'label' => __('Dashboard', 'multisite-ultimate'), + 'label' => __('Dashboard', 'ultimate-multisite'), 'icon' => 'dashboard', ], ]; @@ -667,15 +667,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Site', 'multisite-ultimate'), - 'add_new_label' => __('Add new Site', 'multisite-ultimate'), - 'updated_message' => __('Site updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Site Name', 'multisite-ultimate'), - 'title_description' => __('This name will be used as the site title.', 'multisite-ultimate'), - 'save_button_label' => __('Save Site', 'multisite-ultimate'), + 'edit_label' => __('Edit Site', 'ultimate-multisite'), + 'add_new_label' => __('Add new Site', 'ultimate-multisite'), + 'updated_message' => __('Site updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Site Name', 'ultimate-multisite'), + 'title_description' => __('This name will be used as the site title.', 'ultimate-multisite'), + 'save_button_label' => __('Save Site', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Site', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Site', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-site-list-admin-page.php b/inc/admin-pages/class-site-list-admin-page.php index db944a83e..616aefdcf 100644 --- a/inc/admin-pages/class-site-list-admin-page.php +++ b/inc/admin-pages/class-site-list-admin-page.php @@ -130,16 +130,16 @@ public function render_publish_pending_site_modal(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Publication', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Publication', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Publish', 'multisite-ultimate'), - 'placeholder' => __('Publish', 'multisite-ultimate'), + 'title' => __('Publish', 'ultimate-multisite'), + 'placeholder' => __('Publish', 'ultimate-multisite'), 'value' => 'publish', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -189,13 +189,13 @@ public function handle_publish_pending_site_modal(): void { $membership = wu_get_membership(wu_request('membership_id')); if ( ! $membership) { - wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'ultimate-multisite'))); } $pending_site = $membership->get_pending_site(); if ( ! is_a($pending_site, '\\WP_Ultimo\\Models\\Site')) { - wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Pending site not found.', 'ultimate-multisite'))); } $pending_site->set_type('customer_owned'); @@ -267,7 +267,7 @@ public function handle_add_new_site_modal() { } if ($site->get_blog_id() === false) { - $error = new \WP_Error('error', __('Something wrong happened.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('Something wrong happened.', 'ultimate-multisite')); return wp_send_json_error($error); } @@ -314,19 +314,19 @@ public function render_add_new_site_modal(): void { if ($duplicate_id && $site) { // translators: the %s is the thing copied. - $title = sprintf(__('Copy of %s', 'multisite-ultimate'), $site->get_title()); + $title = sprintf(__('Copy of %s', 'ultimate-multisite'), $site->get_title()); $path = sprintf('%s%s', trim($site->get_path(), '/'), 'copy'); $type = $site->get_type(); $template_id = $duplicate_id; $membership_id = $site->get_membership_id(); } - $save_label = $duplicate_id ? __('Duplicate Site', 'multisite-ultimate') : __('Add new Site', 'multisite-ultimate'); + $save_label = $duplicate_id ? __('Duplicate Site', 'ultimate-multisite') : __('Add new Site', 'ultimate-multisite'); $options = [ - 'sub-domain' => __('Subdomain', 'multisite-ultimate'), - 'sub-directory' => __('Subdirectory', 'multisite-ultimate'), - 'domain' => __('Domain', 'multisite-ultimate'), + 'sub-domain' => __('Subdomain', 'ultimate-multisite'), + 'sub-directory' => __('Subdirectory', 'ultimate-multisite'), + 'domain' => __('Domain', 'ultimate-multisite'), ]; /* @@ -351,19 +351,19 @@ public function render_add_new_site_modal(): void { ], 'title' => [ 'type' => 'text', - 'title' => __('Site Title', 'multisite-ultimate'), - 'placeholder' => __('New Network Site', 'multisite-ultimate'), + 'title' => __('Site Title', 'ultimate-multisite'), + 'placeholder' => __('New Network Site', 'ultimate-multisite'), 'value' => $title, ], 'domain_group' => [ 'type' => 'group', // translators: the %s is the site preview url. - 'desc' => sprintf(__('The site URL will be: %s', 'multisite-ultimate'), '{{ tab === "domain" ? domain : ( tab === "sub-directory" ? scheme + base_url + domain : scheme + domain + "." + base_url ) }}'), + 'desc' => sprintf(__('The site URL will be: %s', 'ultimate-multisite'), '{{ tab === "domain" ? domain : ( tab === "sub-directory" ? scheme + base_url + domain : scheme + domain + "." + base_url ) }}'), 'fields' => [ 'domain' => [ 'type' => 'text', - 'title' => __('Site Domain/Path', 'multisite-ultimate'), - 'tooltip' => __('Enter the complete domain for the site', 'multisite-ultimate'), + 'title' => __('Site Domain/Path', 'ultimate-multisite'), + 'tooltip' => __('Enter the complete domain for the site', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ 'v-bind:placeholder' => 'tab === "domain" ? "mysite.com" : "mysite"', @@ -375,13 +375,13 @@ public function render_add_new_site_modal(): void { ], 'type' => [ 'type' => 'select', - 'title' => __('Site Type', 'multisite-ultimate'), + 'title' => __('Site Type', 'ultimate-multisite'), 'value' => $type, 'placeholder' => '', 'options' => [ - 'default' => __('Regular WP Site', 'multisite-ultimate'), - 'site_template' => __('Site Template', 'multisite-ultimate'), - 'customer_owned' => __('Customer-Owned', 'multisite-ultimate'), + 'default' => __('Regular WP Site', 'ultimate-multisite'), + 'site_template' => __('Site Template', 'ultimate-multisite'), + 'customer_owned' => __('Customer-Owned', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'type', @@ -389,8 +389,8 @@ public function render_add_new_site_modal(): void { ], 'membership_id' => [ 'type' => 'model', - 'title' => __('Associated Membership', 'multisite-ultimate'), - 'placeholder' => __('Search Membership...', 'multisite-ultimate'), + 'title' => __('Associated Membership', 'ultimate-multisite'), + 'placeholder' => __('Search Membership...', 'ultimate-multisite'), 'value' => '', 'tooltip' => '', 'wrapper_html_attr' => [ @@ -406,17 +406,17 @@ public function render_add_new_site_modal(): void { ], 'copy' => [ 'type' => 'toggle', - 'title' => __('Copy Site', 'multisite-ultimate'), - 'desc' => __('Select an existing site to use as a starting point.', 'multisite-ultimate'), + 'title' => __('Copy Site', 'ultimate-multisite'), + 'desc' => __('Select an existing site to use as a starting point.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'copy', ], ], 'template_site' => [ 'type' => 'model', - 'title' => __('Template Site', 'multisite-ultimate'), - 'placeholder' => __('Search Sites...', 'multisite-ultimate'), - 'desc' => __('The site selected will be copied and used as a starting point.', 'multisite-ultimate'), + 'title' => __('Template Site', 'ultimate-multisite'), + 'placeholder' => __('Search Sites...', 'ultimate-multisite'), + 'desc' => __('The site selected will be copied and used as a starting point.', 'ultimate-multisite'), 'value' => $template_id, 'html_attr' => [ 'data-model' => 'site', @@ -432,8 +432,8 @@ public function render_add_new_site_modal(): void { ], 'copy_media' => [ 'type' => 'toggle', - 'title' => __('Copy Media on Duplication', 'multisite-ultimate'), - 'desc' => __('Copy media files from the template site on duplication. Disabling this can lead to broken images on the new site.', 'multisite-ultimate'), + 'title' => __('Copy Media on Duplication', 'ultimate-multisite'), + 'desc' => __('Copy media files from the template site on duplication. Disabling this can lead to broken images on the new site.', 'ultimate-multisite'), 'value' => true, 'wrapper_html_attr' => [ 'v-show' => 'copy', @@ -503,8 +503,8 @@ public function register_widgets() {} public function get_labels() { return [ - 'deleted_message' => __('Site removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Site', 'multisite-ultimate'), + 'deleted_message' => __('Site removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Site', 'ultimate-multisite'), ]; } @@ -516,7 +516,7 @@ public function get_labels() { */ public function get_title() { - return __('Sites', 'multisite-ultimate'); + return __('Sites', 'ultimate-multisite'); } /** @@ -527,7 +527,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Sites', 'multisite-ultimate'); + return __('Sites', 'ultimate-multisite'); } /** @@ -538,7 +538,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Sites', 'multisite-ultimate'); + return __('Sites', 'ultimate-multisite'); } /** @@ -551,7 +551,7 @@ public function action_links() { return [ [ - 'label' => __('Add Site', 'multisite-ultimate'), + 'label' => __('Add Site', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_site'), diff --git a/inc/admin-pages/class-system-info-admin-page.php b/inc/admin-pages/class-system-info-admin-page.php index bb84f37a3..33f062bc6 100644 --- a/inc/admin-pages/class-system-info-admin-page.php +++ b/inc/admin-pages/class-system-info-admin-page.php @@ -152,7 +152,7 @@ public function output_table_system_info($data): void { */ public function get_title() { - return __('System Info', 'multisite-ultimate'); + return __('System Info', 'ultimate-multisite'); } /** @@ -163,7 +163,7 @@ public function get_title() { */ public function get_menu_title() { - return __('System Info', 'multisite-ultimate'); + return __('System Info', 'ultimate-multisite'); } /** @@ -174,7 +174,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Dashboard', 'multisite-ultimate'); + return __('Dashboard', 'ultimate-multisite'); } /** @@ -219,7 +219,7 @@ public function get_data() { $memory_usage = $this->get_memory_usage(); // translators: %s is the number of seconds. - $max_execution_time = sprintf(__('%s seconds', 'multisite-ultimate'), ini_get('max_execution_time')); + $max_execution_time = sprintf(__('%s seconds', 'ultimate-multisite'), ini_get('max_execution_time')); $all_options = $this->get_all_options(); $all_options_serialized = serialize($all_options); @@ -245,7 +245,7 @@ public function get_data() { $array_constants[] = [ 'tooltip' => '', 'title' => $constant, - 'value' => defined($constant) ? (is_bool(constant($constant)) ? __('Enabled', 'multisite-ultimate') : constant($constant)) : __('Disabled', 'multisite-ultimate'), + 'value' => defined($constant) ? (is_bool(constant($constant)) ? __('Enabled', 'ultimate-multisite') : constant($constant)) : __('Disabled', 'ultimate-multisite'), ]; } @@ -376,12 +376,12 @@ public function get_data() { 'cookie-domain' => [ 'tooltip' => '', 'title' => 'Cookie Domain', - 'value' => defined('COOKIE_DOMAIN') ? COOKIE_DOMAIN ?: __('Disabled', 'multisite-ultimate') : __('Not set', 'multisite-ultimate'), + 'value' => defined('COOKIE_DOMAIN') ? COOKIE_DOMAIN ?: __('Disabled', 'ultimate-multisite') : __('Not set', 'ultimate-multisite'), ], 'multisite-active' => [ 'tooltip' => '', 'title' => 'Multi-Site Active', - 'value' => is_multisite() ? __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'), + 'value' => is_multisite() ? __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'), ], 'php-current-time-gmt' => [ 'tooltip' => '', @@ -406,12 +406,12 @@ public function get_data() { 'php-curl-support' => [ 'tooltip' => '', 'title' => 'PHP cURL Support', - 'value' => function_exists('curl_init') ? __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'), + 'value' => function_exists('curl_init') ? __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'), ], 'php-gd-time' => [ 'tooltip' => '', 'title' => 'PHP GD Support', - 'value' => function_exists('gd_info') ? __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'), + 'value' => function_exists('gd_info') ? __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'), ], 'php-memory-limit' => [ 'tooltip' => '', @@ -466,47 +466,47 @@ public function get_data() { 'wp-debug' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('WP_DEBUG') ? WP_DEBUG ? __('Enabled', 'multisite-ultimate') : __('Disabled', 'multisite-ultimate') : __('Not set', 'multisite-ultimate'), + 'value' => defined('WP_DEBUG') ? WP_DEBUG ? __('Enabled', 'ultimate-multisite') : __('Disabled', 'ultimate-multisite') : __('Not set', 'ultimate-multisite'), ], 'script-debug' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('SCRIPT_DEBUG') ? SCRIPT_DEBUG ? __('Enabled', 'multisite-ultimate') : __('Disabled', 'multisite-ultimate') : __('Not set', 'multisite-ultimate'), + 'value' => defined('SCRIPT_DEBUG') ? SCRIPT_DEBUG ? __('Enabled', 'ultimate-multisite') : __('Disabled', 'ultimate-multisite') : __('Not set', 'ultimate-multisite'), ], 'save-queries' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('SAVEQUERIES') ? SAVEQUERIES ? __('Enabled', 'multisite-ultimate') : __('Disabled', 'multisite-ultimate') : __('Not set', 'multisite-ultimate'), + 'value' => defined('SAVEQUERIES') ? SAVEQUERIES ? __('Enabled', 'ultimate-multisite') : __('Disabled', 'ultimate-multisite') : __('Not set', 'ultimate-multisite'), ], 'autosave-interval' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('AUTOSAVE_INTERVAL') ? AUTOSAVE_INTERVAL ?: __('Disabled', 'multisite-ultimate') : __('Not set', 'multisite-ultimate'), + 'value' => defined('AUTOSAVE_INTERVAL') ? AUTOSAVE_INTERVAL ?: __('Disabled', 'ultimate-multisite') : __('Not set', 'ultimate-multisite'), ], 'wp_post_revisions' => [ 'tooltip' => '', 'title' => 'WP Options Transients', - 'value' => defined('WP_POST_REVISIONS') ? WP_POST_REVISIONS ?: __('Disabled', 'multisite-ultimate') : __('Not set', 'multisite-ultimate'), + 'value' => defined('WP_POST_REVISIONS') ? WP_POST_REVISIONS ?: __('Disabled', 'ultimate-multisite') : __('Not set', 'ultimate-multisite'), ], 'disable_wp_cron' => [ 'tooltip' => '', 'title' => 'DISABLE_WP_CRON', - 'value' => defined('DISABLE_WP_CRON') ? DISABLE_WP_CRON ?: __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'), + 'value' => defined('DISABLE_WP_CRON') ? DISABLE_WP_CRON ?: __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'), ], 'wp_lang' => [ 'tooltip' => '', 'title' => 'WPLANG', - 'value' => defined('WPLANG') ? WPLANG ?: __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'), + 'value' => defined('WPLANG') ? WPLANG ?: __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'), ], 'wp_memory_limit' => [ 'tooltip' => '', 'title' => 'WP_MEMORY_LIMIT', - 'value' => (defined('WP_MEMORY_LIMIT') && WP_MEMORY_LIMIT) ? WP_MEMORY_LIMIT : __('Not set', 'multisite-ultimate'), + 'value' => (defined('WP_MEMORY_LIMIT') && WP_MEMORY_LIMIT) ? WP_MEMORY_LIMIT : __('Not set', 'ultimate-multisite'), ], 'wp_max_memory_limit' => [ 'tooltip' => '', 'title' => 'WP_MAX_MEMORY_LIMIT', - 'value' => (defined('WP_MAX_MEMORY_LIMIT') && WP_MAX_MEMORY_LIMIT) ? WP_MAX_MEMORY_LIMIT : __('Not set', 'multisite-ultimate'), + 'value' => (defined('WP_MAX_MEMORY_LIMIT') && WP_MAX_MEMORY_LIMIT) ? WP_MAX_MEMORY_LIMIT : __('Not set', 'ultimate-multisite'), ], 'operating-system' => [ 'tooltip' => '', @@ -543,7 +543,7 @@ public function get_data() { 'logs-directory' => [ 'tooltip' => '', 'title' => 'Logs Directory', - 'value' => wp_is_writable(Logger::get_logs_folder()) ? __('Writable', 'multisite-ultimate') : __('Not Writable', 'multisite-ultimate'), + 'value' => wp_is_writable(Logger::get_logs_folder()) ? __('Writable', 'ultimate-multisite') : __('Not Writable', 'ultimate-multisite'), ], ], $wpultimo_settings diff --git a/inc/admin-pages/class-tax-rates-admin-page.php b/inc/admin-pages/class-tax-rates-admin-page.php index 181500067..b15df0875 100644 --- a/inc/admin-pages/class-tax-rates-admin-page.php +++ b/inc/admin-pages/class-tax-rates-admin-page.php @@ -72,7 +72,7 @@ class Tax_Rates_Admin_Page extends Base_Admin_Page { */ public function get_title() { - return __('Tax Rates', 'multisite-ultimate'); + return __('Tax Rates', 'ultimate-multisite'); } /** @@ -83,7 +83,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Tax Rates', 'multisite-ultimate'); + return __('Tax Rates', 'ultimate-multisite'); } /** @@ -94,7 +94,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Tax Rates', 'multisite-ultimate'); + return __('Tax Rates', 'ultimate-multisite'); } /** @@ -110,11 +110,11 @@ public function output(): void { $columns = apply_filters( 'wu_tax_rates_columns', [ - 'title' => __('Label', 'multisite-ultimate'), - 'country' => __('Country', 'multisite-ultimate'), - 'state' => __('State / Province', 'multisite-ultimate'), - 'city' => __('City', 'multisite-ultimate'), - 'tax_rate' => __('Tax Rate (%)', 'multisite-ultimate'), + 'title' => __('Label', 'ultimate-multisite'), + 'country' => __('Country', 'ultimate-multisite'), + 'state' => __('State / Province', 'ultimate-multisite'), + 'city' => __('City', 'ultimate-multisite'), + 'tax_rate' => __('Tax Rate (%)', 'ultimate-multisite'), 'move' => '', ] ); @@ -145,9 +145,9 @@ public function register_scripts(): void { 'wu-tax-rates', 'wu_tax_ratesl10n', [ - 'name' => __('Tax', 'multisite-ultimate'), - 'confirm_message' => __('Are you sure you want to delete this rows?', 'multisite-ultimate'), - 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'multisite-ultimate'), + 'name' => __('Tax', 'ultimate-multisite'), + 'confirm_message' => __('Are you sure you want to delete this rows?', 'ultimate-multisite'), + 'confirm_delete_tax_category_message' => __('Are you sure you want to delete this tax category?', 'ultimate-multisite'), ] ); @@ -172,7 +172,7 @@ protected function add_fields_widget($id, $atts = []) { 'widget_id' => $id, 'before' => '', 'after' => '', - 'title' => __('Fields', 'multisite-ultimate'), + 'title' => __('Fields', 'ultimate-multisite'), 'position' => 'side', 'screen' => get_current_screen(), 'fields' => [], @@ -190,7 +190,7 @@ function () use ($atts) { if (wu_get_isset($atts['html_attr'], 'data-wu-app')) { $atts['fields']['loading'] = [ 'type' => 'note', - 'desc' => sprintf('
%s
', __('Loading...', 'multisite-ultimate')), + 'desc' => sprintf('
%s
', __('Loading...', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-if' => 0, ], diff --git a/inc/admin-pages/class-template-previewer-customize-admin-page.php b/inc/admin-pages/class-template-previewer-customize-admin-page.php index 08b473765..c0f7bce7b 100644 --- a/inc/admin-pages/class-template-previewer-customize-admin-page.php +++ b/inc/admin-pages/class-template-previewer-customize-admin-page.php @@ -97,14 +97,14 @@ public function register_widgets(): void { 'fields' => [ 'preview_url_parameter' => [ 'type' => 'text', - 'title' => __('URL Parameter', 'multisite-ultimate'), - 'desc' => __('This is the URL parameter Multisite Ultimate will use to generate the template preview URLs.', 'multisite-ultimate'), + 'title' => __('URL Parameter', 'ultimate-multisite'), + 'desc' => __('This is the URL parameter Multisite Ultimate will use to generate the template preview URLs.', 'ultimate-multisite'), 'value' => Template_Previewer::get_instance()->get_setting('preview_url_parameter', 'template-preview'), ], 'enabled' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'desc' => __('If your site templates are not loading, you can disable the top-bar using this setting.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'desc' => __('If your site templates are not loading, you can disable the top-bar using this setting.', 'ultimate-multisite'), 'value' => Template_Previewer::get_instance()->get_setting('enabled', true), 'html_attr' => [], ], @@ -129,16 +129,16 @@ public function register_widgets(): void { 'v-model' => 'tab', ], 'options' => [ - 'general' => __('General', 'multisite-ultimate'), - 'colors' => __('Colors', 'multisite-ultimate'), - 'images' => __('Images', 'multisite-ultimate'), + 'general' => __('General', 'ultimate-multisite'), + 'colors' => __('Colors', 'ultimate-multisite'), + 'images' => __('Images', 'ultimate-multisite'), ], ], 'display_responsive_controls' => [ 'type' => 'toggle', - 'title' => __('Show Responsive Controls', 'multisite-ultimate'), - 'desc' => __('Toggle to show or hide the responsive controls.', 'multisite-ultimate'), + 'title' => __('Show Responsive Controls', 'ultimate-multisite'), + 'desc' => __('Toggle to show or hide the responsive controls.', 'ultimate-multisite'), 'value' => true, 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', @@ -150,8 +150,8 @@ public function register_widgets(): void { ], 'button_text' => [ 'type' => 'text', - 'title' => __('Button Text', 'multisite-ultimate'), - 'value' => __('Use this Template', 'multisite-ultimate'), + 'title' => __('Button Text', 'ultimate-multisite'), + 'value' => __('Use this Template', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "general")', 'v-cloak' => 1, @@ -163,8 +163,8 @@ public function register_widgets(): void { 'bg_color' => [ 'type' => 'color-picker', - 'title' => __('Background Color', 'multisite-ultimate'), - 'desc' => __('Choose the background color for the top-bar.', 'multisite-ultimate'), + 'title' => __('Background Color', 'ultimate-multisite'), + 'desc' => __('Choose the background color for the top-bar.', 'ultimate-multisite'), 'value' => '#f9f9f9', 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "colors")', @@ -176,8 +176,8 @@ public function register_widgets(): void { ], 'button_bg_color' => [ 'type' => 'color-picker', - 'title' => __('Button BG Color', 'multisite-ultimate'), - 'desc' => __('Pick the background color for the button.', 'multisite-ultimate'), + 'title' => __('Button BG Color', 'ultimate-multisite'), + 'desc' => __('Pick the background color for the button.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "colors")', 'v-cloak' => 1, @@ -189,8 +189,8 @@ public function register_widgets(): void { 'use_custom_logo' => [ 'type' => 'toggle', - 'title' => __('Use Custom Logo', 'multisite-ultimate'), - 'desc' => __('You can set a different logo to be used on the top-bar.', 'multisite-ultimate'), + 'title' => __('Use Custom Logo', 'ultimate-multisite'), + 'desc' => __('You can set a different logo to be used on the top-bar.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'require("tab", "images")', 'v-cloak' => 1, @@ -202,8 +202,8 @@ public function register_widgets(): void { 'custom_logo' => [ 'type' => 'image', 'stacked' => true, - 'title' => __('Custom Logo', 'multisite-ultimate'), - 'desc' => __('The logo is displayed on the preview page top-bar.', 'multisite-ultimate'), + 'title' => __('Custom Logo', 'ultimate-multisite'), + 'desc' => __('The logo is displayed on the preview page top-bar.', 'ultimate-multisite'), 'value' => $custom_logo, 'img' => $custom_logo_url, 'wrapper_html_attr' => [ @@ -226,7 +226,7 @@ public function register_widgets(): void { $this->add_fields_widget( 'customizer', [ - 'title' => __('Customizer', 'multisite-ultimate'), + 'title' => __('Customizer', 'ultimate-multisite'), 'position' => 'side', 'fields' => $fields, 'html_attr' => [ @@ -247,7 +247,7 @@ public function register_widgets(): void { */ public function get_title() { - return __('Customize Template Previewer', 'multisite-ultimate'); + return __('Customize Template Previewer', 'ultimate-multisite'); } /** @@ -258,7 +258,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Customize Template Previewer', 'multisite-ultimate'); + return __('Customize Template Previewer', 'ultimate-multisite'); } /** @@ -281,13 +281,13 @@ public function action_links() { public function get_labels() { return [ - 'customize_label' => __('Customize Template Previewer', 'multisite-ultimate'), - 'add_new_label' => __('Customize Template Previewer', 'multisite-ultimate'), - 'edit_label' => __('Edit Template Previewer', 'multisite-ultimate'), - 'updated_message' => __('Template Previewer updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Template Previewer Name', 'multisite-ultimate'), - 'title_description' => __('This name is used for internal reference only.', 'multisite-ultimate'), - 'save_button_label' => __('Save Changes', 'multisite-ultimate'), + 'customize_label' => __('Customize Template Previewer', 'ultimate-multisite'), + 'add_new_label' => __('Customize Template Previewer', 'ultimate-multisite'), + 'edit_label' => __('Edit Template Previewer', 'ultimate-multisite'), + 'updated_message' => __('Template Previewer updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Template Previewer Name', 'ultimate-multisite'), + 'title_description' => __('This name is used for internal reference only.', 'ultimate-multisite'), + 'save_button_label' => __('Save Changes', 'ultimate-multisite'), 'save_description' => '', ]; } diff --git a/inc/admin-pages/class-top-admin-nav-menu.php b/inc/admin-pages/class-top-admin-nav-menu.php index 31cef6938..6d7f92e08 100644 --- a/inc/admin-pages/class-top-admin-nav-menu.php +++ b/inc/admin-pages/class-top-admin-nav-menu.php @@ -52,11 +52,11 @@ public function add_top_bar_menus($wp_admin_bar): void { // Add Parent element $parent = [ 'id' => 'wp-ultimo', - 'title' => __('Multisite Waas', 'multisite-ultimate'), + 'title' => __('Multisite Waas', 'ultimate-multisite'), 'href' => current_user_can('wu_read_dashboard') ? network_admin_url('admin.php?page=wp-ultimo') : '#', 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the dashboard', 'multisite-ultimate'), + 'title' => __('Go to the dashboard', 'ultimate-multisite'), ], ]; @@ -64,11 +64,11 @@ public function add_top_bar_menus($wp_admin_bar): void { $sites = [ 'id' => 'wp-ultimo-sites', 'parent' => 'wp-ultimo', - 'title' => __('Manage Sites', 'multisite-ultimate'), + 'title' => __('Manage Sites', 'ultimate-multisite'), 'href' => network_admin_url('admin.php?page=wp-ultimo-sites'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the sites page', 'multisite-ultimate'), + 'title' => __('Go to the sites page', 'ultimate-multisite'), ], ]; @@ -76,11 +76,11 @@ public function add_top_bar_menus($wp_admin_bar): void { $memberships = [ 'id' => 'wp-ultimo-memberships', 'parent' => 'wp-ultimo', - 'title' => __('Manage Memberships', 'multisite-ultimate'), + 'title' => __('Manage Memberships', 'ultimate-multisite'), 'href' => network_admin_url('admin.php?page=wp-ultimo-memberships'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the memberships page', 'multisite-ultimate'), + 'title' => __('Go to the memberships page', 'ultimate-multisite'), ], ]; @@ -88,11 +88,11 @@ public function add_top_bar_menus($wp_admin_bar): void { $customers = [ 'id' => 'wp-ultimo-customers', 'parent' => 'wp-ultimo', - 'title' => __('Customers', 'multisite-ultimate'), + 'title' => __('Customers', 'ultimate-multisite'), 'href' => network_admin_url('admin.php?page=wp-ultimo-customers'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the customers page', 'multisite-ultimate'), + 'title' => __('Go to the customers page', 'ultimate-multisite'), ], ]; @@ -100,11 +100,11 @@ public function add_top_bar_menus($wp_admin_bar): void { $products = [ 'id' => 'wp-ultimo-products', 'parent' => 'wp-ultimo', - 'title' => __('Products', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), 'href' => network_admin_url('admin.php?page=wp-ultimo-products'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the products page', 'multisite-ultimate'), + 'title' => __('Go to the products page', 'ultimate-multisite'), ], ]; @@ -112,11 +112,11 @@ public function add_top_bar_menus($wp_admin_bar): void { $payments = [ 'id' => 'wp-ultimo-payments', 'parent' => 'wp-ultimo', - 'title' => __('Payments', 'multisite-ultimate'), + 'title' => __('Payments', 'ultimate-multisite'), 'href' => network_admin_url('admin.php?page=wp-ultimo-payments'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the payments page', 'multisite-ultimate'), + 'title' => __('Go to the payments page', 'ultimate-multisite'), ], ]; @@ -124,11 +124,11 @@ public function add_top_bar_menus($wp_admin_bar): void { $discount_codes = [ 'id' => 'wp-ultimo-discount-codes', 'parent' => 'wp-ultimo', - 'title' => __('Discount Codes', 'multisite-ultimate'), + 'title' => __('Discount Codes', 'ultimate-multisite'), 'href' => network_admin_url('admin.php?page=wp-ultimo-discount-codes'), 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the discount codes page', 'multisite-ultimate'), + 'title' => __('Go to the discount codes page', 'ultimate-multisite'), ], ]; @@ -136,11 +136,11 @@ public function add_top_bar_menus($wp_admin_bar): void { 'id' => 'wp-ultimo-settings-group', 'parent' => 'wp-ultimo', 'group' => true, - 'title' => __('Settings Container', 'multisite-ultimate'), + 'title' => __('Settings Container', 'ultimate-multisite'), 'href' => '#', 'meta' => [ 'class' => 'wp-ultimo-top-menu ab-sub-secondary', - 'title' => __('Go to the settings page', 'multisite-ultimate'), + 'title' => __('Go to the settings page', 'ultimate-multisite'), ], ]; @@ -148,11 +148,11 @@ public function add_top_bar_menus($wp_admin_bar): void { $settings = [ 'id' => 'wp-ultimo-settings', 'parent' => 'wp-ultimo-settings-group', - 'title' => __('Settings', 'multisite-ultimate'), + 'title' => __('Settings', 'ultimate-multisite'), 'href' => network_admin_url('admin.php?page=wp-ultimo-settings'), 'meta' => [ 'class' => 'wp-ultimo-top-menu ab-sub-secondary', - 'title' => __('Go to the settings page', 'multisite-ultimate'), + 'title' => __('Go to the settings page', 'ultimate-multisite'), ], ]; @@ -215,7 +215,7 @@ public function add_top_bar_menus($wp_admin_bar): void { 'href' => network_admin_url('admin.php?page=wp-ultimo-settings&tab=') . $tab, 'meta' => [ 'class' => 'wp-ultimo-top-menu', - 'title' => __('Go to the settings page', 'multisite-ultimate'), + 'title' => __('Go to the settings page', 'ultimate-multisite'), ], ]; diff --git a/inc/admin-pages/class-view-logs-admin-page.php b/inc/admin-pages/class-view-logs-admin-page.php index a9fbad784..c324bea98 100644 --- a/inc/admin-pages/class-view-logs-admin-page.php +++ b/inc/admin-pages/class-view-logs-admin-page.php @@ -100,7 +100,7 @@ public function register_scripts(): void { 'wu_view_logs', [ 'i18n' => [ - 'copied' => __('Copied!', 'multisite-ultimate'), + 'copied' => __('Copied!', 'ultimate-multisite'), ], ] ); @@ -118,7 +118,7 @@ public function register_scripts(): void { */ public function get_title() { - return __('View Log', 'multisite-ultimate'); + return __('View Log', 'ultimate-multisite'); } /** @@ -129,7 +129,7 @@ public function get_title() { */ public function get_menu_title() { - return __('View Log', 'multisite-ultimate'); + return __('View Log', 'ultimate-multisite'); } /** @@ -152,7 +152,7 @@ public function handle_view_logs() { $logs_list = array_combine(array_values($logs_list), array_map(fn($file) => str_replace(Logger::get_logs_folder(), '', (string) $file), $logs_list)); if (empty($logs_list)) { - $logs_list[''] = __('No log files found', 'multisite-ultimate'); + $logs_list[''] = __('No log files found', 'ultimate-multisite'); } $file = wu_request('file'); @@ -163,7 +163,7 @@ public function handle_view_logs() { // Security check if ($file && ! stristr((string) $file, Logger::get_logs_folder())) { - wp_die(esc_html__('You can see files that are not Multisite Ultimate\'s logs', 'multisite-ultimate')); + wp_die(esc_html__('You can see files that are not Multisite Ultimate\'s logs', 'ultimate-multisite')); } if ( ! $file && ! empty($logs_list)) { @@ -172,7 +172,7 @@ public function handle_view_logs() { $file_name = str_replace(Logger::get_logs_folder(), '', (string) $file); - $default_content = wu_request('return_ascii', 'yes') === 'yes' ? wu_get_template_contents('events/ascii-badge') : __('No log entries found.', 'multisite-ultimate'); + $default_content = wu_request('return_ascii', 'yes') === 'yes' ? wu_get_template_contents('events/ascii-badge') : __('No log entries found.', 'ultimate-multisite'); $contents = $file && file_exists($file) ? file_get_contents($file) : $default_content; @@ -200,24 +200,24 @@ public function register_widgets(): void { $info = $this->handle_view_logs(); - add_meta_box('wp-ultimo-log-contents', __('Log Contents', 'multisite-ultimate'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', null, $info); + add_meta_box('wp-ultimo-log-contents', __('Log Contents', 'ultimate-multisite'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal', null, $info); $this->add_fields_widget( 'file-selector', [ - 'title' => __('Log Files', 'multisite-ultimate'), + 'title' => __('Log Files', 'ultimate-multisite'), 'fields' => [ 'log_file' => [ 'type' => 'select', - 'title' => __('Select Log File', 'multisite-ultimate'), - 'placeholder' => __('Select Log File', 'multisite-ultimate'), + 'title' => __('Select Log File', 'ultimate-multisite'), + 'placeholder' => __('Select Log File', 'ultimate-multisite'), 'value' => wu_request('file'), 'tooltip' => '', 'options' => $info['logs_list'], ], 'download' => [ 'type' => 'submit', - 'title' => __('Download Log', 'multisite-ultimate'), + 'title' => __('Download Log', 'ultimate-multisite'), 'value' => 'download', 'classes' => 'button button-primary wu-w-full', ], @@ -228,11 +228,11 @@ public function register_widgets(): void { $this->add_fields_widget( 'info', [ - 'title' => __('Timestamps', 'multisite-ultimate'), + 'title' => __('Timestamps', 'ultimate-multisite'), 'position' => 'side', 'fields' => [ 'date_modified' => [ - 'title' => __('Last Modified at', 'multisite-ultimate'), + 'title' => __('Last Modified at', 'ultimate-multisite'), 'type' => 'text-edit', 'date' => true, 'value' => date_i18n('Y-m-d H:i:s', filemtime($info['file'])), @@ -257,8 +257,8 @@ public function output_default_widget_payload($unused, $data): void { wu_get_template( 'events/widget-payload', [ - 'title' => __('Event Payload', 'multisite-ultimate'), - 'loading_text' => __('Loading Payload', 'multisite-ultimate'), + 'title' => __('Event Payload', 'ultimate-multisite'), + 'loading_text' => __('Loading Payload', 'ultimate-multisite'), 'payload' => $data['args']['contents'], ] ); @@ -273,12 +273,12 @@ public function output_default_widget_payload($unused, $data): void { public function get_labels() { return [ - 'edit_label' => __('View Log', 'multisite-ultimate'), - 'add_new_label' => __('View Log', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Customer', 'multisite-ultimate'), - 'title_description' => __('Viewing file: ', 'multisite-ultimate'), - 'delete_button_label' => __('Delete Log File', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'edit_label' => __('View Log', 'ultimate-multisite'), + 'add_new_label' => __('View Log', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Customer', 'ultimate-multisite'), + 'title_description' => __('Viewing file: ', 'ultimate-multisite'), + 'delete_button_label' => __('Delete Log File', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } @@ -323,7 +323,7 @@ public function handle_save(): void { $action = wu_request('submit_button', 'none'); if ('none' === $action) { - WP_Ultimo()->notices->add(__('Something wrong happened', 'multisite-ultimate'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Something wrong happened', 'ultimate-multisite'), 'error', 'network-admin'); return; } @@ -331,7 +331,7 @@ public function handle_save(): void { $file = wu_request('log_file', false); if ( ! file_exists($file)) { - WP_Ultimo()->notices->add(__('File not found', 'multisite-ultimate'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('File not found', 'ultimate-multisite'), 'error', 'network-admin'); return; } @@ -350,12 +350,12 @@ public function handle_save(): void { } if ( ! $wp_filesystem->exists($file) ) { - wp_die(esc_html__('Log file not found.', 'multisite-ultimate')); + wp_die(esc_html__('Log file not found.', 'ultimate-multisite')); } $content = $wp_filesystem->get_contents($file); if ( false === $content ) { - wp_die(esc_html__('Unable to read log file.', 'multisite-ultimate')); + wp_die(esc_html__('Unable to read log file.', 'ultimate-multisite')); } header('Content-Length: ' . strlen($content)); @@ -366,7 +366,7 @@ public function handle_save(): void { $status = wp_delete_file($file); if ( ! $status) { - WP_Ultimo()->notices->add(__('We were unable to delete file', 'multisite-ultimate'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('We were unable to delete file', 'ultimate-multisite'), 'error', 'network-admin'); return; } diff --git a/inc/admin-pages/class-webhook-edit-admin-page.php b/inc/admin-pages/class-webhook-edit-admin-page.php index 368e29483..740eb44bc 100644 --- a/inc/admin-pages/class-webhook-edit-admin-page.php +++ b/inc/admin-pages/class-webhook-edit-admin-page.php @@ -98,9 +98,9 @@ public function register_scripts(): void { [ 'nonce' => wp_create_nonce('wu_webhook_send_test'), 'i18n' => [ - 'error_title' => __('Webhook Test', 'multisite-ultimate'), - 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'multisite-ultimate'), - 'copied' => __('Copied!', 'multisite-ultimate'), + 'error_title' => __('Webhook Test', 'ultimate-multisite'), + 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'ultimate-multisite'), + 'copied' => __('Copied!', 'ultimate-multisite'), ], ] ); @@ -139,22 +139,22 @@ public function register_widgets(): void { $this->add_fields_widget( 'domain-url', [ - 'title' => __('Webhook URL', 'multisite-ultimate'), + 'title' => __('Webhook URL', 'ultimate-multisite'), 'position' => 'normal', 'fields' => [ 'webhook_url' => [ 'type' => 'url', - 'title' => __('Webhook URL', 'multisite-ultimate'), - 'desc' => __('The URL where we will send the payload when the event triggers.', 'multisite-ultimate'), - 'placeholder' => __('https://example.com', 'multisite-ultimate'), + 'title' => __('Webhook URL', 'ultimate-multisite'), + 'desc' => __('The URL where we will send the payload when the event triggers.', 'ultimate-multisite'), + 'placeholder' => __('https://example.com', 'ultimate-multisite'), 'value' => $this->get_object()->get_webhook_url(), ], 'actions' => [ 'type' => 'actions', - 'tooltip' => __('The event .', 'multisite-ultimate'), + 'tooltip' => __('The event .', 'ultimate-multisite'), 'actions' => [ 'send_test_event' => [ - 'title' => __('Send Test Event', 'multisite-ultimate'), + 'title' => __('Send Test Event', 'ultimate-multisite'), 'action' => 'wu_send_test_event', 'object_id' => $this->get_object()->get_id(), 'loading_text' => 'Sending Test...', @@ -169,12 +169,12 @@ public function register_widgets(): void { ] ); - add_meta_box('wp-ultimo-payload', __('Event Payload', 'multisite-ultimate'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal'); + add_meta_box('wp-ultimo-payload', __('Event Payload', 'ultimate-multisite'), [$this, 'output_default_widget_payload'], get_current_screen()->id, 'normal'); $this->add_list_table_widget( 'events', [ - 'title' => __('Events', 'multisite-ultimate'), + 'title' => __('Events', 'ultimate-multisite'), 'table' => new \WP_Ultimo\List_Tables\Inside_Events_List_Table(), 'query_filter' => [$this, 'query_filter'], ] @@ -192,9 +192,9 @@ public function register_widgets(): void { 'fields' => [ 'event' => [ 'type' => 'select', - 'title' => __('Event', 'multisite-ultimate'), - 'desc' => __('The event that triggers this webhook.', 'multisite-ultimate'), - 'placeholder' => __('Select Event', 'multisite-ultimate'), + 'title' => __('Event', 'ultimate-multisite'), + 'desc' => __('The event that triggers this webhook.', 'ultimate-multisite'), + 'placeholder' => __('Select Event', 'ultimate-multisite'), 'options' => $event_list, 'value' => $this->get_object()->get_event(), ], @@ -205,13 +205,13 @@ public function register_widgets(): void { $this->add_fields_widget( 'active', [ - 'title' => __('Active', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), 'fields' => [ 'active' => [ 'type' => 'toggle', - 'title' => __('Active', 'multisite-ultimate'), - 'tooltip' => __('Deactivate will end the event trigger for this webhook.', 'multisite-ultimate'), - 'desc' => __('Use this option to manually enable or disable this webhook.', 'multisite-ultimate'), + 'title' => __('Active', 'ultimate-multisite'), + 'tooltip' => __('Deactivate will end the event trigger for this webhook.', 'ultimate-multisite'), + 'desc' => __('Use this option to manually enable or disable this webhook.', 'ultimate-multisite'), 'value' => $this->get_object()->is_active(), ], ], @@ -221,27 +221,27 @@ public function register_widgets(): void { $this->add_fields_widget( 'options', [ - 'title' => __('Options', 'multisite-ultimate'), + 'title' => __('Options', 'ultimate-multisite'), 'fields' => [ 'integration' => [ 'edit' => true, - 'title' => __('Integration', 'multisite-ultimate'), + 'title' => __('Integration', 'ultimate-multisite'), 'type' => 'text-edit', 'placeholder' => 'manual', 'value' => $this->get_object()->get_integration(), 'display_value' => ucwords((string) $this->get_object()->get_integration()), - 'tooltip' => __('Name of the service responsible for creating this webhook. If you are manually creating this webhook, use the value "manual".', 'multisite-ultimate'), + 'tooltip' => __('Name of the service responsible for creating this webhook. If you are manually creating this webhook, use the value "manual".', 'ultimate-multisite'), ], 'event_count' => [ - 'title' => __('Run Count', 'multisite-ultimate'), + 'title' => __('Run Count', 'ultimate-multisite'), 'type' => 'text-edit', 'min' => 0, 'placeholder' => 0, 'edit' => true, 'value' => $this->get_object()->get_event_count(), // translators: %d is the number of times that this webhook was triggered. - 'display_value' => sprintf(__('This webhook was triggered %d time(s).', 'multisite-ultimate'), $this->get_object()->get_event_count()), - 'tooltip' => __('The number of times that this webhook was triggered so far. It includes test runs.', 'multisite-ultimate'), + 'display_value' => sprintf(__('This webhook was triggered %d time(s).', 'ultimate-multisite'), $this->get_object()->get_event_count()), + 'tooltip' => __('The number of times that this webhook was triggered so far. It includes test runs.', 'ultimate-multisite'), ], ], ] @@ -265,8 +265,8 @@ public function output_default_widget_payload(): void { wu_get_template( 'events/widget-payload', [ - 'title' => __('Event Payload', 'multisite-ultimate'), - 'loading_text' => __('Loading Payload', 'multisite-ultimate'), + 'title' => __('Event Payload', 'ultimate-multisite'), + 'loading_text' => __('Loading Payload', 'ultimate-multisite'), 'payload' => $payload, ] ); @@ -298,7 +298,7 @@ public function query_filter($args) { */ public function get_title() { - return $this->edit ? __('Edit Webhook', 'multisite-ultimate') : __('Add new Webhook', 'multisite-ultimate'); + return $this->edit ? __('Edit Webhook', 'ultimate-multisite') : __('Add new Webhook', 'ultimate-multisite'); } /** @@ -309,7 +309,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Edit Webhook', 'multisite-ultimate'); + return __('Edit Webhook', 'ultimate-multisite'); } /** @@ -332,15 +332,15 @@ public function action_links() { public function get_labels() { return [ - 'edit_label' => __('Edit Webhook', 'multisite-ultimate'), - 'add_new_label' => __('Add new Webhook', 'multisite-ultimate'), - 'updated_message' => __('Webhook updated successfully!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Webhook', 'multisite-ultimate'), + 'edit_label' => __('Edit Webhook', 'ultimate-multisite'), + 'add_new_label' => __('Add new Webhook', 'ultimate-multisite'), + 'updated_message' => __('Webhook updated successfully!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Webhook', 'ultimate-multisite'), 'title_description' => '', - 'save_button_label' => __('Save Webhook', 'multisite-ultimate'), + 'save_button_label' => __('Save Webhook', 'ultimate-multisite'), 'save_description' => '', - 'delete_button_label' => __('Delete Webhook', 'multisite-ultimate'), - 'delete_description' => __('Be careful. This action is irreversible.', 'multisite-ultimate'), + 'delete_button_label' => __('Delete Webhook', 'ultimate-multisite'), + 'delete_description' => __('Be careful. This action is irreversible.', 'ultimate-multisite'), ]; } diff --git a/inc/admin-pages/class-webhook-list-admin-page.php b/inc/admin-pages/class-webhook-list-admin-page.php index 537a3a07c..2b51d534c 100644 --- a/inc/admin-pages/class-webhook-list-admin-page.php +++ b/inc/admin-pages/class-webhook-list-admin-page.php @@ -72,9 +72,9 @@ public function register_scripts(): void { [ 'nonce' => wp_create_nonce('wu_webhook_send_test'), 'i18n' => [ - 'error_title' => __('Webhook Test', 'multisite-ultimate'), - 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'multisite-ultimate'), - 'copied' => __('Copied!', 'multisite-ultimate'), + 'error_title' => __('Webhook Test', 'ultimate-multisite'), + 'error_message' => __('An error occurred when sending the test webhook, please try again.', 'ultimate-multisite'), + 'copied' => __('Copied!', 'ultimate-multisite'), ], ] ); @@ -121,25 +121,25 @@ function render_add_new_webhook_modal(): void { $fields = [ 'name' => [ 'type' => 'text', - 'title' => __('Webhook Name', 'multisite-ultimate'), - 'desc' => __('A name to easily identify your webhook.', 'multisite-ultimate'), - 'placeholder' => __('E.g. Zapier Integration', 'multisite-ultimate'), + 'title' => __('Webhook Name', 'ultimate-multisite'), + 'desc' => __('A name to easily identify your webhook.', 'ultimate-multisite'), + 'placeholder' => __('E.g. Zapier Integration', 'ultimate-multisite'), ], 'event' => [ - 'title' => __('Event', 'multisite-ultimate'), + 'title' => __('Event', 'ultimate-multisite'), 'type' => 'select', - 'desc' => __('The event that will trigger the webhook.', 'multisite-ultimate'), + 'desc' => __('The event that will trigger the webhook.', 'ultimate-multisite'), 'options' => $event_options, ], 'webhook_url' => [ 'type' => 'url', - 'title' => __('Webhook Url', 'multisite-ultimate'), - 'desc' => __('The url of your webhook.', 'multisite-ultimate'), - 'placeholder' => __('E.g. https://example.com/', 'multisite-ultimate'), + 'title' => __('Webhook Url', 'ultimate-multisite'), + 'desc' => __('The url of your webhook.', 'ultimate-multisite'), + 'placeholder' => __('E.g. https://example.com/', 'ultimate-multisite'), ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Add New Webhook', 'multisite-ultimate'), + 'title' => __('Add New Webhook', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -225,8 +225,8 @@ public function register_widgets() {} public function get_labels() { return [ - 'deleted_message' => __('Webhook removed successfully.', 'multisite-ultimate'), - 'search_label' => __('Search Webhook', 'multisite-ultimate'), + 'deleted_message' => __('Webhook removed successfully.', 'ultimate-multisite'), + 'search_label' => __('Search Webhook', 'ultimate-multisite'), ]; } @@ -238,7 +238,7 @@ public function get_labels() { */ public function get_title() { - return __('Webhooks', 'multisite-ultimate'); + return __('Webhooks', 'ultimate-multisite'); } /** @@ -249,7 +249,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Webhooks', 'multisite-ultimate'); + return __('Webhooks', 'ultimate-multisite'); } /** @@ -260,7 +260,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Webhooks', 'multisite-ultimate'); + return __('Webhooks', 'ultimate-multisite'); } /** @@ -273,7 +273,7 @@ public function action_links() { return [ [ - 'label' => __('Add New Webhook', 'multisite-ultimate'), + 'label' => __('Add New Webhook', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('add_new_webhook_modal'), diff --git a/inc/admin-pages/class-wizard-admin-page.php b/inc/admin-pages/class-wizard-admin-page.php index 057b99dd3..355b8731d 100644 --- a/inc/admin-pages/class-wizard-admin-page.php +++ b/inc/admin-pages/class-wizard-admin-page.php @@ -124,12 +124,12 @@ final public function process_save() { public function get_labels() { return [ - 'edit_label' => __('Edit Object', 'multisite-ultimate'), - 'add_new_label' => __('Add New Object', 'multisite-ultimate'), - 'updated_message' => __('Object updated with success!', 'multisite-ultimate'), - 'title_placeholder' => __('Enter Object Name', 'multisite-ultimate'), + 'edit_label' => __('Edit Object', 'ultimate-multisite'), + 'add_new_label' => __('Add New Object', 'ultimate-multisite'), + 'updated_message' => __('Object updated with success!', 'ultimate-multisite'), + 'title_placeholder' => __('Enter Object Name', 'ultimate-multisite'), 'title_description' => '', - 'save_button_label' => __('Save', 'multisite-ultimate'), + 'save_button_label' => __('Save', 'ultimate-multisite'), 'save_description' => '', ]; } @@ -152,7 +152,7 @@ public function register_widgets() { return; } - add_meta_box('wp-ultimo-wizard-body', wu_get_isset($this->current_section, 'title', __('Section', 'multisite-ultimate')), [$this, 'output_default_widget_body'], $screen->id, 'normal', null); + add_meta_box('wp-ultimo-wizard-body', wu_get_isset($this->current_section, 'title', __('Section', 'ultimate-multisite')), [$this, 'output_default_widget_body'], $screen->id, 'normal', null); } /** @@ -319,9 +319,9 @@ public function default_view() { 'description' => '', 'content' => '', 'fields' => [], - 'next_label' => __('Continue →', 'multisite-ultimate'), - 'back_label' => __('← Go Back', 'multisite-ultimate'), - 'skip_label' => __('Skip this Step', 'multisite-ultimate'), + 'next_label' => __('Continue →', 'ultimate-multisite'), + 'back_label' => __('← Go Back', 'ultimate-multisite'), + 'skip_label' => __('Skip this Step', 'ultimate-multisite'), 'disable_next' => false, 'back' => false, 'skip' => false, diff --git a/inc/admin-pages/customer-panel/class-account-admin-page.php b/inc/admin-pages/customer-panel/class-account-admin-page.php index 1014bc60c..53d2105b5 100644 --- a/inc/admin-pages/customer-panel/class-account-admin-page.php +++ b/inc/admin-pages/customer-panel/class-account-admin-page.php @@ -138,7 +138,7 @@ protected function add_notices() { return; } - $update_message = apply_filters('wu_account_update_message', __('Your account was successfully updated.', 'multisite-ultimate'), $update_type); + $update_message = apply_filters('wu_account_update_message', __('Your account was successfully updated.', 'ultimate-multisite'), $update_type); WP_Ultimo()->notices->add($update_message); } @@ -197,7 +197,7 @@ public function register_widgets(): void { */ public function get_title() { - return __('Account', 'multisite-ultimate'); + return __('Account', 'ultimate-multisite'); } /** @@ -208,7 +208,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Account', 'multisite-ultimate'); + return __('Account', 'ultimate-multisite'); } /** @@ -219,7 +219,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Account', 'multisite-ultimate'); + return __('Account', 'ultimate-multisite'); } /** diff --git a/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php b/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php index 78c915f6b..e4cd411f6 100644 --- a/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php +++ b/inc/admin-pages/customer-panel/class-add-new-site-admin-page.php @@ -209,7 +209,7 @@ public function register_widgets(): void { */ public function get_title() { - return __('Add New Site', 'multisite-ultimate'); + return __('Add New Site', 'ultimate-multisite'); } /** @@ -220,7 +220,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Add New Site', 'multisite-ultimate'); + return __('Add New Site', 'ultimate-multisite'); } /** @@ -231,7 +231,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Add New Site', 'multisite-ultimate'); + return __('Add New Site', 'ultimate-multisite'); } /** diff --git a/inc/admin-pages/customer-panel/class-checkout-admin-page.php b/inc/admin-pages/customer-panel/class-checkout-admin-page.php index 7c23b7f43..7d0bc8416 100644 --- a/inc/admin-pages/customer-panel/class-checkout-admin-page.php +++ b/inc/admin-pages/customer-panel/class-checkout-admin-page.php @@ -95,7 +95,7 @@ class Checkout_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Ad */ public function get_title() { - return __('Checkout', 'multisite-ultimate'); + return __('Checkout', 'ultimate-multisite'); } /** @@ -106,7 +106,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Checkout', 'multisite-ultimate'); + return __('Checkout', 'ultimate-multisite'); } /** @@ -143,7 +143,7 @@ public function get_sections() { $sections = [ 'plan' => [ - 'title' => __('Change Membership', 'multisite-ultimate'), + 'title' => __('Change Membership', 'ultimate-multisite'), 'view' => [$this, 'display_checkout_form'], ], ]; diff --git a/inc/admin-pages/customer-panel/class-my-sites-admin-page.php b/inc/admin-pages/customer-panel/class-my-sites-admin-page.php index 4bebc101b..99437daed 100644 --- a/inc/admin-pages/customer-panel/class-my-sites-admin-page.php +++ b/inc/admin-pages/customer-panel/class-my-sites-admin-page.php @@ -232,7 +232,7 @@ public function register_widgets(): void { */ public function get_title() { - return __('My Sites', 'multisite-ultimate'); + return __('My Sites', 'ultimate-multisite'); } /** @@ -243,7 +243,7 @@ public function get_title() { */ public function get_menu_title() { - return __('My Sites', 'multisite-ultimate'); + return __('My Sites', 'ultimate-multisite'); } /** @@ -254,7 +254,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('My Sites', 'multisite-ultimate'); + return __('My Sites', 'ultimate-multisite'); } /** diff --git a/inc/admin-pages/customer-panel/class-template-switching-admin-page.php b/inc/admin-pages/customer-panel/class-template-switching-admin-page.php index 1781de2d6..8efe1f7d8 100644 --- a/inc/admin-pages/customer-panel/class-template-switching-admin-page.php +++ b/inc/admin-pages/customer-panel/class-template-switching-admin-page.php @@ -103,7 +103,7 @@ class Template_Switching_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer */ public function get_title() { - return __('Switch Template', 'multisite-ultimate'); + return __('Switch Template', 'ultimate-multisite'); } /** @@ -114,7 +114,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Switch Template', 'multisite-ultimate'); + return __('Switch Template', 'ultimate-multisite'); } /** @@ -158,7 +158,7 @@ public function output(): void { 'page' => $this, 'content' => '', 'labels' => [ - 'updated_message' => __('Template switched successfully!', 'multisite-ultimate'), + 'updated_message' => __('Template switched successfully!', 'ultimate-multisite'), ], ] ); diff --git a/inc/admin-pages/debug/class-debug-admin-page.php b/inc/admin-pages/debug/class-debug-admin-page.php index 1970b8673..fefeed311 100644 --- a/inc/admin-pages/debug/class-debug-admin-page.php +++ b/inc/admin-pages/debug/class-debug-admin-page.php @@ -83,7 +83,7 @@ public function register_widgets(): void { add_meta_box( 'wp-ultimo-debug-pages', - __('All Registered Pages', 'multisite-ultimate'), + __('All Registered Pages', 'ultimate-multisite'), [$this, 'render_debug_pages'], get_current_screen()->id, 'normal', @@ -126,7 +126,7 @@ public function render_debug_pages(): void { */ public function get_title() { - return __('Registered Pages', 'multisite-ultimate'); + return __('Registered Pages', 'ultimate-multisite'); } /** @@ -137,7 +137,7 @@ public function get_title() { */ public function get_menu_title() { - return __('Registered Pages', 'multisite-ultimate'); + return __('Registered Pages', 'ultimate-multisite'); } /** @@ -148,7 +148,7 @@ public function get_menu_title() { */ public function get_submenu_title() { - return __('Registered Pages', 'multisite-ultimate'); + return __('Registered Pages', 'ultimate-multisite'); } /** diff --git a/inc/api/class-register-endpoint.php b/inc/api/class-register-endpoint.php index a7b32f2a1..48426ae8d 100644 --- a/inc/api/class-register-endpoint.php +++ b/inc/api/class-register-endpoint.php @@ -130,7 +130,7 @@ public function handle_endpoint($request) { $customer->add_note( [ - 'text' => __('Created via REST API', 'multisite-ultimate'), + 'text' => __('Created via REST API', 'ultimate-multisite'), 'author_id' => $customer->get_user_id(), ] ); @@ -168,7 +168,7 @@ public function handle_endpoint($request) { if ($cart->is_valid() && count($cart->get_line_items()) === 0) { return new \WP_Error( 'invalid_cart', - __('Products are required.', 'multisite-ultimate'), + __('Products are required.', 'ultimate-multisite'), array_merge( (array) $cart->done(), [ @@ -215,7 +215,7 @@ public function handle_endpoint($request) { $membership->add_note( [ - 'text' => __('Created via REST API', 'multisite-ultimate'), + 'text' => __('Created via REST API', 'ultimate-multisite'), 'author_id' => $customer->get_user_id(), ] ); @@ -253,7 +253,7 @@ public function handle_endpoint($request) { $payment->add_note( [ - 'text' => __('Created via REST API', 'multisite-ultimate'), + 'text' => __('Created via REST API', 'ultimate-multisite'), 'author_id' => $customer->get_user_id(), ] ); @@ -333,29 +333,29 @@ public function get_rest_args() { $customer_args = [ 'customer_id' => [ - 'description' => __('The customer ID, if the customer already exists. If you also need to create a customer/wp user, use the "customer" property.', 'multisite-ultimate'), + 'description' => __('The customer ID, if the customer already exists. If you also need to create a customer/wp user, use the "customer" property.', 'ultimate-multisite'), 'type' => 'integer', ], 'customer' => [ - 'description' => __('Customer data. Needs to be present when customer id is not.', 'multisite-ultimate'), + 'description' => __('Customer data. Needs to be present when customer id is not.', 'ultimate-multisite'), 'type' => 'object', 'properties' => [ 'user_id' => [ - 'description' => __('Existing WordPress user id to attach this customer to. If you also need to create a WordPress user, pass the properties "username", "password", and "email".', 'multisite-ultimate'), + 'description' => __('Existing WordPress user id to attach this customer to. If you also need to create a WordPress user, pass the properties "username", "password", and "email".', 'ultimate-multisite'), 'type' => 'integer', ], 'username' => [ - 'description' => __('The customer username. This is used to create the WordPress user.', 'multisite-ultimate'), + 'description' => __('The customer username. This is used to create the WordPress user.', 'ultimate-multisite'), 'type' => 'string', 'minLength' => 4, ], 'password' => [ - 'description' => __('The customer password. This is used to create the WordPress user. Note that no validation is performed here to enforce strength.', 'multisite-ultimate'), + 'description' => __('The customer password. This is used to create the WordPress user. Note that no validation is performed here to enforce strength.', 'ultimate-multisite'), 'type' => 'string', 'minLength' => 6, ], 'email' => [ - 'description' => __('The customer email address. This is used to create the WordPress user.', 'multisite-ultimate'), + 'description' => __('The customer email address. This is used to create the WordPress user.', 'ultimate-multisite'), 'type' => 'string', 'format' => 'email', ], @@ -369,42 +369,42 @@ public function get_rest_args() { $membership_args = [ 'membership' => [ - 'description' => __('The membership data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'multisite-ultimate'), + 'description' => __('The membership data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'ultimate-multisite'), 'type' => 'object', 'properties' => [ 'status' => [ - 'description' => __('The membership status.', 'multisite-ultimate'), + 'description' => __('The membership status.', 'ultimate-multisite'), 'type' => 'string', 'enum' => array_values(Membership_Status::get_allowed_list()), 'default' => Membership_Status::PENDING, ], 'date_expiration' => [ - 'description' => __('The membership expiration date. Must be a valid PHP date format.', 'multisite-ultimate'), + 'description' => __('The membership expiration date. Must be a valid PHP date format.', 'ultimate-multisite'), 'type' => 'string', 'format' => 'date-time', ], 'date_trial_end' => [ - 'description' => __('The membership trial end date. Must be a valid PHP date format.', 'multisite-ultimate'), + 'description' => __('The membership trial end date. Must be a valid PHP date format.', 'ultimate-multisite'), 'type' => 'string', 'format' => 'date-time', ], 'date_activated' => [ - 'description' => __('The membership activation date. Must be a valid PHP date format.', 'multisite-ultimate'), + 'description' => __('The membership activation date. Must be a valid PHP date format.', 'ultimate-multisite'), 'type' => 'string', 'format' => 'date-time', ], 'date_renewed' => [ - 'description' => __('The membership last renewed date. Must be a valid PHP date format.', 'multisite-ultimate'), + 'description' => __('The membership last renewed date. Must be a valid PHP date format.', 'ultimate-multisite'), 'type' => 'string', 'format' => 'date-time', ], 'date_cancellation' => [ - 'description' => __('The membership cancellation date. Must be a valid PHP date format.', 'multisite-ultimate'), + 'description' => __('The membership cancellation date. Must be a valid PHP date format.', 'ultimate-multisite'), 'type' => 'string', 'format' => 'date-time', ], 'date_payment_plan_completed' => [ - 'description' => __('The membership completion date. Used when the membership is limited to a limited number of billing cycles. Must be a valid PHP date format.', 'multisite-ultimate'), + 'description' => __('The membership completion date. Used when the membership is limited to a limited number of billing cycles. Must be a valid PHP date format.', 'ultimate-multisite'), 'type' => 'string', 'format' => 'date-time', ], @@ -414,11 +414,11 @@ public function get_rest_args() { $payment_args = [ 'payment' => [ - 'description' => __('The payment data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'multisite-ultimate'), + 'description' => __('The payment data is automatically generated based on the cart info passed (e.g. products) but can be overridden with this property.', 'ultimate-multisite'), 'type' => 'object', 'properties' => [ 'status' => [ - 'description' => __('The payment status.', 'multisite-ultimate'), + 'description' => __('The payment status.', 'ultimate-multisite'), 'type' => 'string', 'enum' => array_values(Payment_Status::get_allowed_list()), 'default' => Payment_Status::PENDING, @@ -426,23 +426,23 @@ public function get_rest_args() { ], ], 'payment_method' => [ - 'description' => __('Payment method information. Useful when using the REST API to integrate other payment methods.', 'multisite-ultimate'), + 'description' => __('Payment method information. Useful when using the REST API to integrate other payment methods.', 'ultimate-multisite'), 'type' => 'object', 'properties' => [ 'gateway' => [ - 'description' => __('The gateway name. E.g. stripe.', 'multisite-ultimate'), + 'description' => __('The gateway name. E.g. stripe.', 'ultimate-multisite'), 'type' => 'string', ], 'gateway_customer_id' => [ - 'description' => __('The customer ID on the gateway system.', 'multisite-ultimate'), + 'description' => __('The customer ID on the gateway system.', 'ultimate-multisite'), 'type' => 'string', ], 'gateway_subscription_id' => [ - 'description' => __('The subscription ID on the gateway system.', 'multisite-ultimate'), + 'description' => __('The subscription ID on the gateway system.', 'ultimate-multisite'), 'type' => 'string', ], 'gateway_payment_id' => [ - 'description' => __('The payment ID on the gateway system.', 'multisite-ultimate'), + 'description' => __('The payment ID on the gateway system.', 'ultimate-multisite'), 'type' => 'string', ], ], @@ -455,31 +455,31 @@ public function get_rest_args() { 'properties' => [ 'site_url' => [ 'type' => 'string', - 'description' => __('The site subdomain or subdirectory (depending on your Multisite install). This would be "test" in "test.your-network.com".', 'multisite-ultimate'), + 'description' => __('The site subdomain or subdirectory (depending on your Multisite install). This would be "test" in "test.your-network.com".', 'ultimate-multisite'), 'minLength' => 4, 'required' => true, ], 'site_title' => [ 'type' => 'string', - 'description' => __('The site title. E.g. My Amazing Site', 'multisite-ultimate'), + 'description' => __('The site title. E.g. My Amazing Site', 'ultimate-multisite'), 'minLength' => 4, 'required' => true, ], 'publish' => [ - 'description' => __('If we should publish this site regardless of membership/payment status. Sites are created as pending by default, and are only published when a payment is received or the status of the membership changes to "active". This flag allows you to bypass the pending state.', 'multisite-ultimate'), + 'description' => __('If we should publish this site regardless of membership/payment status. Sites are created as pending by default, and are only published when a payment is received or the status of the membership changes to "active". This flag allows you to bypass the pending state.', 'ultimate-multisite'), 'type' => 'boolean', 'default' => false, ], 'template_id' => [ - 'description' => __('The template ID we should copy when creating this site. If left empty, the value dictated by the products will be used.', 'multisite-ultimate'), + 'description' => __('The template ID we should copy when creating this site. If left empty, the value dictated by the products will be used.', 'ultimate-multisite'), 'type' => 'integer', ], 'site_meta' => [ - 'description' => __('An associative array of key values to be saved as site_meta.', 'multisite-ultimate'), + 'description' => __('An associative array of key values to be saved as site_meta.', 'ultimate-multisite'), 'type' => 'object', ], 'site_option' => [ - 'description' => __('An associative array of key values to be saved as site_options. Useful for changing plugin settings and other site configurations.', 'multisite-ultimate'), + 'description' => __('An associative array of key values to be saved as site_options. Useful for changing plugin settings and other site configurations.', 'ultimate-multisite'), 'type' => 'object', ], ], @@ -488,17 +488,17 @@ public function get_rest_args() { $cart_args = [ 'products' => [ - 'description' => __('The products to be added to this membership. Takes an array of product ids or slugs.', 'multisite-ultimate'), + 'description' => __('The products to be added to this membership. Takes an array of product ids or slugs.', 'ultimate-multisite'), 'uniqueItems' => true, 'type' => 'array', ], 'duration' => [ - 'description' => __('The membership duration.', 'multisite-ultimate'), + 'description' => __('The membership duration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __('The membership duration unit.', 'multisite-ultimate'), + 'description' => __('The membership duration unit.', 'ultimate-multisite'), 'type' => 'string', 'default' => 'month', 'enum' => [ @@ -509,22 +509,22 @@ public function get_rest_args() { ], ], 'discount_code' => [ - 'description' => __('A discount code. E.g. PROMO10.', 'multisite-ultimate'), + 'description' => __('A discount code. E.g. PROMO10.', 'ultimate-multisite'), 'type' => 'string', ], 'auto_renew' => [ - 'description' => __('The membership auto-renew status. Useful when integrating with other payment options via this REST API.', 'multisite-ultimate'), + 'description' => __('The membership auto-renew status. Useful when integrating with other payment options via this REST API.', 'ultimate-multisite'), 'type' => 'boolean', 'default' => false, 'required' => true, ], 'country' => [ - 'description' => __('The customer country. Used to calculate taxes and check if registration is allowed for that country.', 'multisite-ultimate'), + 'description' => __('The customer country. Used to calculate taxes and check if registration is allowed for that country.', 'ultimate-multisite'), 'type' => 'string', 'default' => '', ], 'currency' => [ - 'description' => __('The currency to be used.', 'multisite-ultimate'), + 'description' => __('The currency to be used.', 'ultimate-multisite'), 'type' => 'string', ], ]; @@ -550,7 +550,7 @@ public function maybe_create_customer($p) { $customer = wu_get_customer($customer_id); if ( ! $customer) { - return new \WP_Error('customer_not_found', __('The customer id sent does not correspond to a valid customer.', 'multisite-ultimate')); + return new \WP_Error('customer_not_found', __('The customer id sent does not correspond to a valid customer.', 'ultimate-multisite')); } } else { $customer = wu_create_customer($p['customer']); diff --git a/inc/api/schemas/broadcast-create.php b/inc/api/schemas/broadcast-create.php index 655f36322..dafb88f9b 100644 --- a/inc/api/schemas/broadcast-create.php +++ b/inc/api/schemas/broadcast-create.php @@ -20,12 +20,12 @@ */ return [ 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'notice_type' => [ - 'description' => __('Can be info, success, warning or error.', 'multisite-ultimate'), + 'description' => __('Can be info, success, warning or error.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -36,57 +36,57 @@ ], ], 'name' => [ - 'description' => __('This broadcast name, which is used as broadcast title as well.', 'multisite-ultimate'), + 'description' => __('This broadcast name, which is used as broadcast title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'multisite-ultimate'), + 'description' => __('The type being set.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'status' => [ - 'description' => __('The status being set.', 'multisite-ultimate'), + 'description' => __('The status being set.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'author_id' => [ - 'description' => __('The author ID.', 'multisite-ultimate'), + 'description' => __('The author ID.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'multisite-ultimate'), + 'description' => __('Post title.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'content' => [ - 'description' => __('Post content.', 'multisite-ultimate'), + 'description' => __('Post content.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'multisite-ultimate'), + 'description' => __('Post excerpt.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'multisite-ultimate'), + 'description' => __('Post creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'multisite-ultimate'), + 'description' => __('Post last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'slug' => [ - 'description' => __('The slug.', 'multisite-ultimate'), + 'description' => __('The slug.', 'ultimate-multisite'), 'type' => 'mixed', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/broadcast-update.php b/inc/api/schemas/broadcast-update.php index 9a3716be4..92eb88225 100644 --- a/inc/api/schemas/broadcast-update.php +++ b/inc/api/schemas/broadcast-update.php @@ -20,12 +20,12 @@ */ return [ 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'notice_type' => [ - 'description' => __('Can be info, success, warning or error.', 'multisite-ultimate'), + 'description' => __('Can be info, success, warning or error.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -36,57 +36,57 @@ ], ], 'name' => [ - 'description' => __('This broadcast name, which is used as broadcast title as well.', 'multisite-ultimate'), + 'description' => __('This broadcast name, which is used as broadcast title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'multisite-ultimate'), + 'description' => __('The type being set.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'status' => [ - 'description' => __('The status being set.', 'multisite-ultimate'), + 'description' => __('The status being set.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'author_id' => [ - 'description' => __('The author ID.', 'multisite-ultimate'), + 'description' => __('The author ID.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'multisite-ultimate'), + 'description' => __('Post title.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'content' => [ - 'description' => __('Post content.', 'multisite-ultimate'), + 'description' => __('Post content.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'multisite-ultimate'), + 'description' => __('Post excerpt.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'multisite-ultimate'), + 'description' => __('Post creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'multisite-ultimate'), + 'description' => __('Post last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'slug' => [ - 'description' => __('The slug.', 'multisite-ultimate'), + 'description' => __('The slug.', 'ultimate-multisite'), 'type' => 'mixed', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/checkout-form-create.php b/inc/api/schemas/checkout-form-create.php index 6779dc2f5..ff8a9b512 100644 --- a/inc/api/schemas/checkout-form-create.php +++ b/inc/api/schemas/checkout-form-create.php @@ -20,47 +20,47 @@ */ return [ 'slug' => [ - 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'multisite-ultimate'), + 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'name' => [ - 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'multisite-ultimate'), + 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'active' => [ - 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => true, ], 'custom_css' => [ - 'description' => __('Custom CSS code for the checkout form.', 'multisite-ultimate'), + 'description' => __('Custom CSS code for the checkout form.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'settings' => [ - 'description' => __('The checkout form settings and configurations.', 'multisite-ultimate'), + 'description' => __('The checkout form settings and configurations.', 'ultimate-multisite'), 'type' => 'object', 'required' => false, ], 'allowed_countries' => [ - 'description' => __('The allowed countries that can access this checkout.', 'multisite-ultimate'), + 'description' => __('The allowed countries that can access this checkout.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'thank_you_page_id' => [ - 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'multisite-ultimate'), + 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'conversion_snippets' => [ - 'description' => __('Snippets to run on thank you page.', 'multisite-ultimate'), + 'description' => __('Snippets to run on thank you page.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'template' => [ - 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'multisite-ultimate'), + 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -70,22 +70,22 @@ ], ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/checkout-form-update.php b/inc/api/schemas/checkout-form-update.php index 649b0bfb1..ca206765b 100644 --- a/inc/api/schemas/checkout-form-update.php +++ b/inc/api/schemas/checkout-form-update.php @@ -20,47 +20,47 @@ */ return [ 'slug' => [ - 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'multisite-ultimate'), + 'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'name' => [ - 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'multisite-ultimate'), + 'description' => __('Your checkout form name, which is used as checkout form title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'active' => [ - 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'custom_css' => [ - 'description' => __('Custom CSS code for the checkout form.', 'multisite-ultimate'), + 'description' => __('Custom CSS code for the checkout form.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'settings' => [ - 'description' => __('The checkout form settings and configurations.', 'multisite-ultimate'), + 'description' => __('The checkout form settings and configurations.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'allowed_countries' => [ - 'description' => __('The allowed countries that can access this checkout.', 'multisite-ultimate'), + 'description' => __('The allowed countries that can access this checkout.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'thank_you_page_id' => [ - 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'multisite-ultimate'), + 'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'conversion_snippets' => [ - 'description' => __('Snippets to run on thank you page.', 'multisite-ultimate'), + 'description' => __('Snippets to run on thank you page.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'template' => [ - 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'multisite-ultimate'), + 'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -70,22 +70,22 @@ ], ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/customer-create.php b/inc/api/schemas/customer-create.php index 75b17e12e..f7ba81e21 100644 --- a/inc/api/schemas/customer-create.php +++ b/inc/api/schemas/customer-create.php @@ -20,17 +20,17 @@ */ return [ 'user_id' => [ - 'description' => __('The WordPress user ID attached to this customer.', 'multisite-ultimate'), + 'description' => __('The WordPress user ID attached to this customer.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'date_registered' => [ - 'description' => __('Date when the customer was created.', 'multisite-ultimate'), + 'description' => __('Date when the customer was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'email_verification' => [ - 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'multisite-ultimate'), + 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -40,32 +40,32 @@ ], ], 'last_login' => [ - 'description' => __('Date this customer last logged in.', 'multisite-ultimate'), + 'description' => __('Date this customer last logged in.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'has_trialed' => [ - 'description' => __('Whether or not the customer has trialed before.', 'multisite-ultimate'), + 'description' => __('Whether or not the customer has trialed before.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'vip' => [ - 'description' => __('If this customer is a VIP customer or not.', 'multisite-ultimate'), + 'description' => __('If this customer is a VIP customer or not.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'ips' => [ - 'description' => __('List of IP addresses used by this customer.', 'multisite-ultimate'), + 'description' => __('List of IP addresses used by this customer.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'extra_information' => [ - 'description' => __('Any extra information related to this customer.', 'multisite-ultimate'), + 'description' => __('Any extra information related to this customer.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __("The customer type. Can be 'customer'.", 'multisite-ultimate'), + 'description' => __("The customer type. Can be 'customer'.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -73,27 +73,27 @@ ], ], 'signup_form' => [ - 'description' => __('The form used to signup.', 'multisite-ultimate'), + 'description' => __('The form used to signup.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/customer-update.php b/inc/api/schemas/customer-update.php index ec68d764b..c881c07af 100644 --- a/inc/api/schemas/customer-update.php +++ b/inc/api/schemas/customer-update.php @@ -20,17 +20,17 @@ */ return [ 'user_id' => [ - 'description' => __('The WordPress user ID attached to this customer.', 'multisite-ultimate'), + 'description' => __('The WordPress user ID attached to this customer.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_registered' => [ - 'description' => __('Date when the customer was created.', 'multisite-ultimate'), + 'description' => __('Date when the customer was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'email_verification' => [ - 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'multisite-ultimate'), + 'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -40,32 +40,32 @@ ], ], 'last_login' => [ - 'description' => __('Date this customer last logged in.', 'multisite-ultimate'), + 'description' => __('Date this customer last logged in.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'has_trialed' => [ - 'description' => __('Whether or not the customer has trialed before.', 'multisite-ultimate'), + 'description' => __('Whether or not the customer has trialed before.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'vip' => [ - 'description' => __('If this customer is a VIP customer or not.', 'multisite-ultimate'), + 'description' => __('If this customer is a VIP customer or not.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'ips' => [ - 'description' => __('List of IP addresses used by this customer.', 'multisite-ultimate'), + 'description' => __('List of IP addresses used by this customer.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'extra_information' => [ - 'description' => __('Any extra information related to this customer.', 'multisite-ultimate'), + 'description' => __('Any extra information related to this customer.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'type' => [ - 'description' => __("The customer type. Can be 'customer'.", 'multisite-ultimate'), + 'description' => __("The customer type. Can be 'customer'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -73,27 +73,27 @@ ], ], 'signup_form' => [ - 'description' => __('The form used to signup.', 'multisite-ultimate'), + 'description' => __('The form used to signup.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/discount-code-create.php b/inc/api/schemas/discount-code-create.php index 54219ab1f..d46ee9278 100644 --- a/inc/api/schemas/discount-code-create.php +++ b/inc/api/schemas/discount-code-create.php @@ -20,37 +20,37 @@ */ return [ 'name' => [ - 'description' => __('Your discount code name, which is used as discount code title as well.', 'multisite-ultimate'), + 'description' => __('Your discount code name, which is used as discount code title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'code' => [ - 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'multisite-ultimate'), + 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'description' => [ - 'description' => __('A description for the discount code, usually a short text.', 'multisite-ultimate'), + 'description' => __('A description for the discount code, usually a short text.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'uses' => [ - 'description' => __('Number of times this discount was applied.', 'multisite-ultimate'), + 'description' => __('Number of times this discount was applied.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'max_uses' => [ - 'description' => __('The number of times this discount can be used before becoming inactive.', 'multisite-ultimate'), + 'description' => __('The number of times this discount can be used before becoming inactive.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'apply_to_renewals' => [ - 'description' => __('Wether or not we should apply the discount to membership renewals.', 'multisite-ultimate'), + 'description' => __('Wether or not we should apply the discount to membership renewals.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'multisite-ultimate'), + 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -59,12 +59,12 @@ ], ], 'value' => [ - 'description' => __('Amount discounted in cents.', 'multisite-ultimate'), + 'description' => __('Amount discounted in cents.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'setup_fee_type' => [ - 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'multisite-ultimate'), + 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -73,52 +73,52 @@ ], ], 'setup_fee_value' => [ - 'description' => __('Amount discounted for setup fees in cents.', 'multisite-ultimate'), + 'description' => __('Amount discounted for setup fees in cents.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_start' => [ - 'description' => __('Start date for the coupon code to be considered valid.', 'multisite-ultimate'), + 'description' => __('Start date for the coupon code to be considered valid.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Expiration date for the coupon code.', 'multisite-ultimate'), + 'description' => __('Expiration date for the coupon code.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this discount code was created.', 'multisite-ultimate'), + 'description' => __('Date when this discount code was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'allowed_products' => [ - 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'multisite-ultimate'), + 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'limit_products' => [ - 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'multisite-ultimate'), + 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/discount-code-update.php b/inc/api/schemas/discount-code-update.php index 7ff499076..b693838ee 100644 --- a/inc/api/schemas/discount-code-update.php +++ b/inc/api/schemas/discount-code-update.php @@ -20,37 +20,37 @@ */ return [ 'name' => [ - 'description' => __('Your discount code name, which is used as discount code title as well.', 'multisite-ultimate'), + 'description' => __('Your discount code name, which is used as discount code title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'code' => [ - 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'multisite-ultimate'), + 'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the discount code, usually a short text.', 'multisite-ultimate'), + 'description' => __('A description for the discount code, usually a short text.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'uses' => [ - 'description' => __('Number of times this discount was applied.', 'multisite-ultimate'), + 'description' => __('Number of times this discount was applied.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'max_uses' => [ - 'description' => __('The number of times this discount can be used before becoming inactive.', 'multisite-ultimate'), + 'description' => __('The number of times this discount can be used before becoming inactive.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'apply_to_renewals' => [ - 'description' => __('Wether or not we should apply the discount to membership renewals.', 'multisite-ultimate'), + 'description' => __('Wether or not we should apply the discount to membership renewals.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'multisite-ultimate'), + 'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -59,12 +59,12 @@ ], ], 'value' => [ - 'description' => __('Amount discounted in cents.', 'multisite-ultimate'), + 'description' => __('Amount discounted in cents.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'setup_fee_type' => [ - 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'multisite-ultimate'), + 'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -73,52 +73,52 @@ ], ], 'setup_fee_value' => [ - 'description' => __('Amount discounted for setup fees in cents.', 'multisite-ultimate'), + 'description' => __('Amount discounted for setup fees in cents.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_start' => [ - 'description' => __('Start date for the coupon code to be considered valid.', 'multisite-ultimate'), + 'description' => __('Start date for the coupon code to be considered valid.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Expiration date for the coupon code.', 'multisite-ultimate'), + 'description' => __('Expiration date for the coupon code.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this discount code was created.', 'multisite-ultimate'), + 'description' => __('Date when this discount code was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'allowed_products' => [ - 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'multisite-ultimate'), + 'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'limit_products' => [ - 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'multisite-ultimate'), + 'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/domain-create.php b/inc/api/schemas/domain-create.php index 358198610..16762ae9f 100644 --- a/inc/api/schemas/domain-create.php +++ b/inc/api/schemas/domain-create.php @@ -20,32 +20,32 @@ */ return [ 'domain' => [ - 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'multisite-ultimate'), + 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'blog_id' => [ - 'description' => __('The blog ID attached to this domain.', 'multisite-ultimate'), + 'description' => __('The blog ID attached to this domain.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'active' => [ - 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'primary_domain' => [ - 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'multisite-ultimate'), + 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'secure' => [ - 'description' => __('If this domain has some SSL security or not.', 'multisite-ultimate'), + 'description' => __('If this domain has some SSL security or not.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'stage' => [ - 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'multisite-ultimate'), + 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -57,22 +57,22 @@ ], ], 'date_created' => [ - 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'multisite-ultimate'), + 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/domain-update.php b/inc/api/schemas/domain-update.php index 7d3f92021..46e663a1a 100644 --- a/inc/api/schemas/domain-update.php +++ b/inc/api/schemas/domain-update.php @@ -20,32 +20,32 @@ */ return [ 'domain' => [ - 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'multisite-ultimate'), + 'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'blog_id' => [ - 'description' => __('The blog ID attached to this domain.', 'multisite-ultimate'), + 'description' => __('The blog ID attached to this domain.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'primary_domain' => [ - 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'multisite-ultimate'), + 'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'secure' => [ - 'description' => __('If this domain has some SSL security or not.', 'multisite-ultimate'), + 'description' => __('If this domain has some SSL security or not.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'stage' => [ - 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'multisite-ultimate'), + 'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -57,22 +57,22 @@ ], ], 'date_created' => [ - 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'multisite-ultimate'), + 'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/email-create.php b/inc/api/schemas/email-create.php index c94adc60d..dd8b973bd 100644 --- a/inc/api/schemas/email-create.php +++ b/inc/api/schemas/email-create.php @@ -20,7 +20,7 @@ */ return [ 'style' => [ - 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'multisite-ultimate'), + 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -29,32 +29,32 @@ ], ], 'schedule' => [ - 'description' => __('Whether or not this is a scheduled email.', 'multisite-ultimate'), + 'description' => __('Whether or not this is a scheduled email.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'multisite-ultimate'), + 'description' => __('The type being set.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'event' => [ - 'description' => __('The event that needs to be fired for this email to be sent.', 'multisite-ultimate'), + 'description' => __('The event that needs to be fired for this email to be sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'send_hours' => [ - 'description' => __('The amount of hours that the email will wait before is sent.', 'multisite-ultimate'), + 'description' => __('The amount of hours that the email will wait before is sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'send_days' => [ - 'description' => __('The amount of days that the email will wait before is sent.', 'multisite-ultimate'), + 'description' => __('The amount of days that the email will wait before is sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'schedule_type' => [ - 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'multisite-ultimate'), + 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,27 +63,27 @@ ], ], 'name' => [ - 'description' => __('The name being set as title.', 'multisite-ultimate'), + 'description' => __('The name being set as title.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'custom_sender' => [ - 'description' => __('If has a custom sender.', 'multisite-ultimate'), + 'description' => __('If has a custom sender.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'custom_sender_name' => [ - 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'multisite-ultimate'), + 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'custom_sender_email' => [ - 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'multisite-ultimate'), + 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'target' => [ - 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'multisite-ultimate'), + 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -92,52 +92,52 @@ ], ], 'send_copy_to_admin' => [ - 'description' => __('Checks if we should send a copy of the email to the admin.', 'multisite-ultimate'), + 'description' => __('Checks if we should send a copy of the email to the admin.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'active' => [ - 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'legacy' => [ - 'description' => __('Whether or not this is a legacy email.', 'multisite-ultimate'), + 'description' => __('Whether or not this is a legacy email.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'multisite-ultimate'), + 'description' => __('Post title.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'content' => [ - 'description' => __('Post content.', 'multisite-ultimate'), + 'description' => __('Post content.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'multisite-ultimate'), + 'description' => __('Post excerpt.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'multisite-ultimate'), + 'description' => __('Post creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'multisite-ultimate'), + 'description' => __('Post last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/email-update.php b/inc/api/schemas/email-update.php index 72d7b60c6..6bd298964 100644 --- a/inc/api/schemas/email-update.php +++ b/inc/api/schemas/email-update.php @@ -20,7 +20,7 @@ */ return [ 'style' => [ - 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'multisite-ultimate'), + 'description' => __("The email style. Can be 'html' or 'plain-text'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -29,32 +29,32 @@ ], ], 'schedule' => [ - 'description' => __('Whether or not this is a scheduled email.', 'multisite-ultimate'), + 'description' => __('Whether or not this is a scheduled email.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __('The type being set.', 'multisite-ultimate'), + 'description' => __('The type being set.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'event' => [ - 'description' => __('The event that needs to be fired for this email to be sent.', 'multisite-ultimate'), + 'description' => __('The event that needs to be fired for this email to be sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'send_hours' => [ - 'description' => __('The amount of hours that the email will wait before is sent.', 'multisite-ultimate'), + 'description' => __('The amount of hours that the email will wait before is sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'send_days' => [ - 'description' => __('The amount of days that the email will wait before is sent.', 'multisite-ultimate'), + 'description' => __('The amount of days that the email will wait before is sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'schedule_type' => [ - 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'multisite-ultimate'), + 'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,27 +63,27 @@ ], ], 'name' => [ - 'description' => __('The name being set as title.', 'multisite-ultimate'), + 'description' => __('The name being set as title.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'custom_sender' => [ - 'description' => __('If has a custom sender.', 'multisite-ultimate'), + 'description' => __('If has a custom sender.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'custom_sender_name' => [ - 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'multisite-ultimate'), + 'description' => __('The name of the custom sender. E.g. From: John Doe.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'custom_sender_email' => [ - 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'multisite-ultimate'), + 'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'target' => [ - 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'multisite-ultimate'), + 'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -92,52 +92,52 @@ ], ], 'send_copy_to_admin' => [ - 'description' => __('Checks if we should send a copy of the email to the admin.', 'multisite-ultimate'), + 'description' => __('Checks if we should send a copy of the email to the admin.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'active' => [ - 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'legacy' => [ - 'description' => __('Whether or not this is a legacy email.', 'multisite-ultimate'), + 'description' => __('Whether or not this is a legacy email.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'title' => [ - 'description' => __('Post title.', 'multisite-ultimate'), + 'description' => __('Post title.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'content' => [ - 'description' => __('Post content.', 'multisite-ultimate'), + 'description' => __('Post content.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'excerpt' => [ - 'description' => __('Post excerpt.', 'multisite-ultimate'), + 'description' => __('Post excerpt.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_created' => [ - 'description' => __('Post creation date.', 'multisite-ultimate'), + 'description' => __('Post creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Post last modification date.', 'multisite-ultimate'), + 'description' => __('Post last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/event-create.php b/inc/api/schemas/event-create.php index dab185747..2a26de139 100644 --- a/inc/api/schemas/event-create.php +++ b/inc/api/schemas/event-create.php @@ -20,22 +20,22 @@ */ return [ 'severity' => [ - 'description' => __('Severity of the problem.', 'multisite-ultimate'), + 'description' => __('Severity of the problem.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'date_created' => [ - 'description' => __('Date when the event was created.', 'multisite-ultimate'), + 'description' => __('Date when the event was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'payload' => [ - 'description' => __('Payload of the event.', 'multisite-ultimate'), + 'description' => __('Payload of the event.', 'ultimate-multisite'), 'type' => 'object', 'required' => true, ], 'initiator' => [ - 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'multisite-ultimate'), + 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -44,32 +44,32 @@ ], ], 'object_type' => [ - 'description' => __("The type of object related to this event. It's usually the model name.", 'multisite-ultimate'), + 'description' => __("The type of object related to this event. It's usually the model name.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'slug' => [ - 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'multisite-ultimate'), + 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'object_id' => [ - 'description' => __('The ID of the related objects.', 'multisite-ultimate'), + 'description' => __('The ID of the related objects.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/event-update.php b/inc/api/schemas/event-update.php index 3b8a287ac..c32e01134 100644 --- a/inc/api/schemas/event-update.php +++ b/inc/api/schemas/event-update.php @@ -20,22 +20,22 @@ */ return [ 'severity' => [ - 'description' => __('Severity of the problem.', 'multisite-ultimate'), + 'description' => __('Severity of the problem.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when the event was created.', 'multisite-ultimate'), + 'description' => __('Date when the event was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'payload' => [ - 'description' => __('Payload of the event.', 'multisite-ultimate'), + 'description' => __('Payload of the event.', 'ultimate-multisite'), 'type' => 'object', 'required' => false, ], 'initiator' => [ - 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'multisite-ultimate'), + 'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -44,32 +44,32 @@ ], ], 'object_type' => [ - 'description' => __("The type of object related to this event. It's usually the model name.", 'multisite-ultimate'), + 'description' => __("The type of object related to this event. It's usually the model name.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'slug' => [ - 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'multisite-ultimate'), + 'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'object_id' => [ - 'description' => __('The ID of the related objects.', 'multisite-ultimate'), + 'description' => __('The ID of the related objects.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/membership-create.php b/inc/api/schemas/membership-create.php index 5bc8f7a67..a91ab2f6e 100644 --- a/inc/api/schemas/membership-create.php +++ b/inc/api/schemas/membership-create.php @@ -22,37 +22,37 @@ */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this membership.', 'multisite-ultimate'), + 'description' => __('The ID of the customer attached to this membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'user_id' => [ - 'description' => __('The user ID attached to this membership.', 'multisite-ultimate'), + 'description' => __('The user ID attached to this membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'plan_id' => [ - 'description' => __('The plan ID associated with the membership.', 'multisite-ultimate'), + 'description' => __('The plan ID associated with the membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'addon_products' => [ - 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'multisite-ultimate'), + 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'ultimate-multisite'), 'type' => 'mixed', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'multisite-ultimate'), + 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'duration' => [ - 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'multisite-ultimate'), + 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'multisite-ultimate'), + 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,118 +63,118 @@ ], ], 'amount' => [ - 'description' => __('The product amount.', 'multisite-ultimate'), + 'description' => __('The product amount.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'initial_amount' => [ - 'description' => __('The initial amount charged for this membership, including the setup fee.', 'multisite-ultimate'), + 'description' => __('The initial amount charged for this membership, including the setup fee.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date of creation of this membership.', 'multisite-ultimate'), + 'description' => __('Date of creation of this membership.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_activated' => [ - 'description' => __('Date when this membership was activated.', 'multisite-ultimate'), + 'description' => __('Date when this membership was activated.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_trial_end' => [ - 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'multisite-ultimate'), + 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_renewed' => [ - 'description' => __('Date when the membership was cancelled.', 'multisite-ultimate'), + 'description' => __('Date when the membership was cancelled.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_cancellation' => [ - 'description' => __('Date when the membership was cancelled.', 'multisite-ultimate'), + 'description' => __('Date when the membership was cancelled.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Date when the membership will expiry.', 'multisite-ultimate'), + 'description' => __('Date when the membership will expiry.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_payment_plan_completed' => [ - 'description' => __('Change of the payment completion for the plan value.', 'multisite-ultimate'), + 'description' => __('Change of the payment completion for the plan value.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'auto_renew' => [ - 'description' => __('If this membership should auto-renewal.', 'multisite-ultimate'), + 'description' => __('If this membership should auto-renewal.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'times_billed' => [ - 'description' => __('Amount of times this membership got billed.', 'multisite-ultimate'), + 'description' => __('Amount of times this membership got billed.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('Maximum times we should charge this membership.', 'multisite-ultimate'), + 'description' => __('Maximum times we should charge this membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'status' => [ - 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'multisite-ultimate'), + 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => Membership_Status::get_allowed_list(), ], 'gateway_customer_id' => [ - 'description' => __('The ID of the customer on the payment gateway database.', 'multisite-ultimate'), + 'description' => __('The ID of the customer on the payment gateway database.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'gateway_subscription_id' => [ - 'description' => __('The ID of the subscription on the payment gateway database.', 'multisite-ultimate'), + 'description' => __('The ID of the subscription on the payment gateway database.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this subscription.', 'multisite-ultimate'), + 'description' => __('ID of the gateway being used on this subscription.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'signup_method' => [ - 'description' => __('Signup method used to create this membership.', 'multisite-ultimate'), + 'description' => __('Signup method used to create this membership.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'upgraded_from' => [ - 'description' => __('Plan that this membership upgraded from.', 'multisite-ultimate'), + 'description' => __('Plan that this membership upgraded from.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date this membership was last modified.', 'multisite-ultimate'), + 'description' => __('Date this membership was last modified.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'disabled' => [ - 'description' => __('If this membership is a disabled one.', 'multisite-ultimate'), + 'description' => __('If this membership is a disabled one.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'recurring' => [ - 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'multisite-ultimate'), + 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/membership-update.php b/inc/api/schemas/membership-update.php index c61a9e605..41562b549 100644 --- a/inc/api/schemas/membership-update.php +++ b/inc/api/schemas/membership-update.php @@ -22,37 +22,37 @@ */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this membership.', 'multisite-ultimate'), + 'description' => __('The ID of the customer attached to this membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'user_id' => [ - 'description' => __('The user ID attached to this membership.', 'multisite-ultimate'), + 'description' => __('The user ID attached to this membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'plan_id' => [ - 'description' => __('The plan ID associated with the membership.', 'multisite-ultimate'), + 'description' => __('The plan ID associated with the membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'addon_products' => [ - 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'multisite-ultimate'), + 'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'ultimate-multisite'), 'type' => 'mixed', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'multisite-ultimate'), + 'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'duration' => [ - 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'multisite-ultimate'), + 'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'multisite-ultimate'), + 'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -63,118 +63,118 @@ ], ], 'amount' => [ - 'description' => __('The product amount.', 'multisite-ultimate'), + 'description' => __('The product amount.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'initial_amount' => [ - 'description' => __('The initial amount charged for this membership, including the setup fee.', 'multisite-ultimate'), + 'description' => __('The initial amount charged for this membership, including the setup fee.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date of creation of this membership.', 'multisite-ultimate'), + 'description' => __('Date of creation of this membership.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_activated' => [ - 'description' => __('Date when this membership was activated.', 'multisite-ultimate'), + 'description' => __('Date when this membership was activated.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_trial_end' => [ - 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'multisite-ultimate'), + 'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_renewed' => [ - 'description' => __('Date when the membership was cancelled.', 'multisite-ultimate'), + 'description' => __('Date when the membership was cancelled.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_cancellation' => [ - 'description' => __('Date when the membership was cancelled.', 'multisite-ultimate'), + 'description' => __('Date when the membership was cancelled.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_expiration' => [ - 'description' => __('Date when the membership will expiry.', 'multisite-ultimate'), + 'description' => __('Date when the membership will expiry.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_payment_plan_completed' => [ - 'description' => __('Change of the payment completion for the plan value.', 'multisite-ultimate'), + 'description' => __('Change of the payment completion for the plan value.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'auto_renew' => [ - 'description' => __('If this membership should auto-renewal.', 'multisite-ultimate'), + 'description' => __('If this membership should auto-renewal.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'times_billed' => [ - 'description' => __('Amount of times this membership got billed.', 'multisite-ultimate'), + 'description' => __('Amount of times this membership got billed.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('Maximum times we should charge this membership.', 'multisite-ultimate'), + 'description' => __('Maximum times we should charge this membership.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'status' => [ - 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'multisite-ultimate'), + 'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => Membership_Status::get_allowed_list(), ], 'gateway_customer_id' => [ - 'description' => __('The ID of the customer on the payment gateway database.', 'multisite-ultimate'), + 'description' => __('The ID of the customer on the payment gateway database.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'gateway_subscription_id' => [ - 'description' => __('The ID of the subscription on the payment gateway database.', 'multisite-ultimate'), + 'description' => __('The ID of the subscription on the payment gateway database.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this subscription.', 'multisite-ultimate'), + 'description' => __('ID of the gateway being used on this subscription.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'signup_method' => [ - 'description' => __('Signup method used to create this membership.', 'multisite-ultimate'), + 'description' => __('Signup method used to create this membership.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'upgraded_from' => [ - 'description' => __('Plan that this membership upgraded from.', 'multisite-ultimate'), + 'description' => __('Plan that this membership upgraded from.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date this membership was last modified.', 'multisite-ultimate'), + 'description' => __('Date this membership was last modified.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'disabled' => [ - 'description' => __('If this membership is a disabled one.', 'multisite-ultimate'), + 'description' => __('If this membership is a disabled one.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'recurring' => [ - 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'multisite-ultimate'), + 'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/payment-create.php b/inc/api/schemas/payment-create.php index d64b347d9..408285ced 100644 --- a/inc/api/schemas/payment-create.php +++ b/inc/api/schemas/payment-create.php @@ -22,103 +22,103 @@ */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this payment.', 'multisite-ultimate'), + 'description' => __('The ID of the customer attached to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'membership_id' => [ - 'description' => __('The ID of the membership attached to this payment.', 'multisite-ultimate'), + 'description' => __('The ID of the membership attached to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'parent_id' => [ - 'description' => __('The ID from another payment that this payment is related to.', 'multisite-ultimate'), + 'description' => __('The ID from another payment that this payment is related to.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'currency' => [ - 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'multisite-ultimate'), + 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'subtotal' => [ - 'description' => __('Value before taxes, discounts, fees and other changes.', 'multisite-ultimate'), + 'description' => __('Value before taxes, discounts, fees and other changes.', 'ultimate-multisite'), 'type' => 'number', 'required' => true, ], 'refund_total' => [ - 'description' => __('Total amount refunded.', 'multisite-ultimate'), + 'description' => __('Total amount refunded.', 'ultimate-multisite'), 'type' => 'number', 'required' => false, ], 'tax_total' => [ - 'description' => __('The amount, in currency, of the tax.', 'multisite-ultimate'), + 'description' => __('The amount, in currency, of the tax.', 'ultimate-multisite'), 'type' => 'number', 'required' => false, ], 'discount_code' => [ - 'description' => __('Discount code used.', 'multisite-ultimate'), + 'description' => __('Discount code used.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'total' => [ - 'description' => __('This takes into account fees, discounts and credits.', 'multisite-ultimate'), + 'description' => __('This takes into account fees, discounts and credits.', 'ultimate-multisite'), 'type' => 'number', 'required' => true, ], 'status' => [ - 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'multisite-ultimate'), + 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => Payment_Status::get_allowed_list(), ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this payment.', 'multisite-ultimate'), + 'description' => __('ID of the gateway being used on this payment.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'product_id' => [ - 'description' => __('The ID of the product of this payment.', 'multisite-ultimate'), + 'description' => __('The ID of the product of this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'gateway_payment_id' => [ - 'description' => __('The ID of the payment on the gateway, if it exists.', 'multisite-ultimate'), + 'description' => __('The ID of the payment on the gateway, if it exists.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'discount_total' => [ - 'description' => __('The total value of the discounts applied to this payment.', 'multisite-ultimate'), + 'description' => __('The total value of the discounts applied to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'invoice_number' => [ - 'description' => __('Sequential invoice number assigned to this payment.', 'multisite-ultimate'), + 'description' => __('Sequential invoice number assigned to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'cancel_membership_on_refund' => [ - 'description' => __('Holds if we need to cancel the membership on refund.', 'multisite-ultimate'), + 'description' => __('Holds if we need to cancel the membership on refund.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/payment-update.php b/inc/api/schemas/payment-update.php index 8d21f1f48..872554d43 100644 --- a/inc/api/schemas/payment-update.php +++ b/inc/api/schemas/payment-update.php @@ -22,103 +22,103 @@ */ return [ 'customer_id' => [ - 'description' => __('The ID of the customer attached to this payment.', 'multisite-ultimate'), + 'description' => __('The ID of the customer attached to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'membership_id' => [ - 'description' => __('The ID of the membership attached to this payment.', 'multisite-ultimate'), + 'description' => __('The ID of the membership attached to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'parent_id' => [ - 'description' => __('The ID from another payment that this payment is related to.', 'multisite-ultimate'), + 'description' => __('The ID from another payment that this payment is related to.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'currency' => [ - 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'multisite-ultimate'), + 'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'subtotal' => [ - 'description' => __('Value before taxes, discounts, fees and other changes.', 'multisite-ultimate'), + 'description' => __('Value before taxes, discounts, fees and other changes.', 'ultimate-multisite'), 'type' => 'number', 'required' => false, ], 'refund_total' => [ - 'description' => __('Total amount refunded.', 'multisite-ultimate'), + 'description' => __('Total amount refunded.', 'ultimate-multisite'), 'type' => 'number', 'required' => false, ], 'tax_total' => [ - 'description' => __('The amount, in currency, of the tax.', 'multisite-ultimate'), + 'description' => __('The amount, in currency, of the tax.', 'ultimate-multisite'), 'type' => 'number', 'required' => false, ], 'discount_code' => [ - 'description' => __('Discount code used.', 'multisite-ultimate'), + 'description' => __('Discount code used.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'total' => [ - 'description' => __('This takes into account fees, discounts and credits.', 'multisite-ultimate'), + 'description' => __('This takes into account fees, discounts and credits.', 'ultimate-multisite'), 'type' => 'number', 'required' => false, ], 'status' => [ - 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'multisite-ultimate'), + 'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => Payment_Status::get_allowed_list(), ], 'gateway' => [ - 'description' => __('ID of the gateway being used on this payment.', 'multisite-ultimate'), + 'description' => __('ID of the gateway being used on this payment.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'product_id' => [ - 'description' => __('The ID of the product of this payment.', 'multisite-ultimate'), + 'description' => __('The ID of the product of this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'gateway_payment_id' => [ - 'description' => __('The ID of the payment on the gateway, if it exists.', 'multisite-ultimate'), + 'description' => __('The ID of the payment on the gateway, if it exists.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'discount_total' => [ - 'description' => __('The total value of the discounts applied to this payment.', 'multisite-ultimate'), + 'description' => __('The total value of the discounts applied to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'invoice_number' => [ - 'description' => __('Sequential invoice number assigned to this payment.', 'multisite-ultimate'), + 'description' => __('Sequential invoice number assigned to this payment.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'cancel_membership_on_refund' => [ - 'description' => __('Holds if we need to cancel the membership on refund.', 'multisite-ultimate'), + 'description' => __('Holds if we need to cancel the membership on refund.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/product-create.php b/inc/api/schemas/product-create.php index 6399e8b1b..7e9aa3ae1 100644 --- a/inc/api/schemas/product-create.php +++ b/inc/api/schemas/product-create.php @@ -20,32 +20,32 @@ */ return [ 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the product.', 'multisite-ultimate'), + 'description' => __('The ID of the feature image of the product.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'slug' => [ - 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'multisite-ultimate'), + 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'name' => [ - 'description' => __('Your product name, which is used as product title as well.', 'multisite-ultimate'), + 'description' => __('Your product name, which is used as product title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the product, usually a short text.', 'multisite-ultimate'), + 'description' => __('A description for the product, usually a short text.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'multisite-ultimate'), + 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'pricing_type' => [ - 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'multisite-ultimate'), + 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -55,12 +55,12 @@ ], ], 'trial_duration' => [ - 'description' => __('The duration of the trial period of this product, if the product has one.', 'multisite-ultimate'), + 'description' => __('The duration of the trial period of this product, if the product has one.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'trial_duration_unit' => [ - 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'multisite-ultimate'), + 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -71,12 +71,12 @@ ], ], 'duration' => [ - 'description' => __('Time interval between charges.', 'multisite-ultimate'), + 'description' => __('Time interval between charges.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __('Time interval unit between charges.', 'multisite-ultimate'), + 'description' => __('Time interval unit between charges.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -87,22 +87,22 @@ ], ], 'amount' => [ - 'description' => __('The value of this product. E.g. 19.99.', 'multisite-ultimate'), + 'description' => __('The value of this product. E.g. 19.99.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'setup_fee' => [ - 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'multisite-ultimate'), + 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'multisite-ultimate'), + 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -112,87 +112,87 @@ ], ], 'parent_id' => [ - 'description' => __('The ID from another Product that this product is related to.', 'multisite-ultimate'), + 'description' => __('The ID from another Product that this product is related to.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'recurring' => [ - 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'multisite-ultimate'), + 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('The number of times we should charge this product.', 'multisite-ultimate'), + 'description' => __('The number of times we should charge this product.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'multisite-ultimate'), + 'description' => __('Date when this was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date when this was last modified.', 'multisite-ultimate'), + 'description' => __('Date when this was last modified.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'taxable' => [ - 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'multisite-ultimate'), + 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'tax_category' => [ - 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'multisite-ultimate'), + 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'contact_us_label' => [ - 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'multisite-ultimate'), + 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'contact_us_link' => [ - 'description' => __('The url where the contact us button will lead to.', 'multisite-ultimate'), + 'description' => __('The url where the contact us button will lead to.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'feature_list' => [ - 'description' => __('A list (array) of features of the product.', 'multisite-ultimate'), + 'description' => __('A list (array) of features of the product.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'customer_role' => [ - 'description' => __('The customer role of this product.', 'multisite-ultimate'), + 'description' => __('The customer role of this product.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'available_addons' => [ - 'description' => __('The available addons of this product.', 'multisite-ultimate'), + 'description' => __('The available addons of this product.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'group' => [ - 'description' => __('The group of this product, if has any.', 'multisite-ultimate'), + 'description' => __('The group of this product, if has any.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'legacy_options' => [ - 'description' => __('If the legacy options are enabled.', 'multisite-ultimate'), + 'description' => __('If the legacy options are enabled.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'featured_plan' => [ - 'description' => __('Feature list for pricing tables.', 'multisite-ultimate'), + 'description' => __('Feature list for pricing tables.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], diff --git a/inc/api/schemas/product-update.php b/inc/api/schemas/product-update.php index bc09a4eec..7ec721a8c 100644 --- a/inc/api/schemas/product-update.php +++ b/inc/api/schemas/product-update.php @@ -20,32 +20,32 @@ */ return [ 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the product.', 'multisite-ultimate'), + 'description' => __('The ID of the feature image of the product.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'slug' => [ - 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'multisite-ultimate'), + 'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'name' => [ - 'description' => __('Your product name, which is used as product title as well.', 'multisite-ultimate'), + 'description' => __('Your product name, which is used as product title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the product, usually a short text.', 'multisite-ultimate'), + 'description' => __('A description for the product, usually a short text.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'currency' => [ - 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'multisite-ultimate'), + 'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'pricing_type' => [ - 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'multisite-ultimate'), + 'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -55,12 +55,12 @@ ], ], 'trial_duration' => [ - 'description' => __('The duration of the trial period of this product, if the product has one.', 'multisite-ultimate'), + 'description' => __('The duration of the trial period of this product, if the product has one.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'trial_duration_unit' => [ - 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'multisite-ultimate'), + 'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -71,12 +71,12 @@ ], ], 'duration' => [ - 'description' => __('Time interval between charges.', 'multisite-ultimate'), + 'description' => __('Time interval between charges.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'duration_unit' => [ - 'description' => __('Time interval unit between charges.', 'multisite-ultimate'), + 'description' => __('Time interval unit between charges.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -87,22 +87,22 @@ ], ], 'amount' => [ - 'description' => __('The value of this product. E.g. 19.99.', 'multisite-ultimate'), + 'description' => __('The value of this product. E.g. 19.99.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'setup_fee' => [ - 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'multisite-ultimate'), + 'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'type' => [ - 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'multisite-ultimate'), + 'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -112,87 +112,87 @@ ], ], 'parent_id' => [ - 'description' => __('The ID from another Product that this product is related to.', 'multisite-ultimate'), + 'description' => __('The ID from another Product that this product is related to.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'recurring' => [ - 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'multisite-ultimate'), + 'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'billing_cycles' => [ - 'description' => __('The number of times we should charge this product.', 'multisite-ultimate'), + 'description' => __('The number of times we should charge this product.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'multisite-ultimate'), + 'description' => __('Date when this was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Date when this was last modified.', 'multisite-ultimate'), + 'description' => __('Date when this was last modified.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'taxable' => [ - 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'multisite-ultimate'), + 'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'tax_category' => [ - 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'multisite-ultimate'), + 'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'contact_us_label' => [ - 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'multisite-ultimate'), + 'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'contact_us_link' => [ - 'description' => __('The url where the contact us button will lead to.', 'multisite-ultimate'), + 'description' => __('The url where the contact us button will lead to.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'feature_list' => [ - 'description' => __('A list (array) of features of the product.', 'multisite-ultimate'), + 'description' => __('A list (array) of features of the product.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'customer_role' => [ - 'description' => __('The customer role of this product.', 'multisite-ultimate'), + 'description' => __('The customer role of this product.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'available_addons' => [ - 'description' => __('The available addons of this product.', 'multisite-ultimate'), + 'description' => __('The available addons of this product.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'group' => [ - 'description' => __('The group of this product, if has any.', 'multisite-ultimate'), + 'description' => __('The group of this product, if has any.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'legacy_options' => [ - 'description' => __('If the legacy options are enabled.', 'multisite-ultimate'), + 'description' => __('If the legacy options are enabled.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'featured_plan' => [ - 'description' => __('Feature list for pricing tables.', 'multisite-ultimate'), + 'description' => __('Feature list for pricing tables.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], diff --git a/inc/api/schemas/site-create.php b/inc/api/schemas/site-create.php index 24d1854ea..e5be7889e 100644 --- a/inc/api/schemas/site-create.php +++ b/inc/api/schemas/site-create.php @@ -20,107 +20,107 @@ */ return [ 'categories' => [ - 'description' => __('The categories this site belongs to.', 'multisite-ultimate'), + 'description' => __('The categories this site belongs to.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the site.', 'multisite-ultimate'), + 'description' => __('The ID of the feature image of the site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'site_id' => [ - 'description' => __('The network ID for this site.', 'multisite-ultimate'), + 'description' => __('The network ID for this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'title' => [ - 'description' => __('The site title.', 'multisite-ultimate'), + 'description' => __('The site title.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'name' => [ - 'description' => __('The site name.', 'multisite-ultimate'), + 'description' => __('The site name.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'description' => [ - 'description' => __('A description for the site, usually a short text.', 'multisite-ultimate'), + 'description' => __('A description for the site, usually a short text.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'domain' => [ - 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'multisite-ultimate'), + 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'path' => [ - 'description' => __('Path of the site. Used when in sub-directory mode.', 'multisite-ultimate'), + 'description' => __('Path of the site. Used when in sub-directory mode.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'registered' => [ - 'description' => __('Date when the site was registered.', 'multisite-ultimate'), + 'description' => __('Date when the site was registered.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'last_updated' => [ - 'description' => __('Date of the last update on this site.', 'multisite-ultimate'), + 'description' => __('Date of the last update on this site.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'active' => [ - 'description' => __('Holds the ID of the customer that owns this site.', 'multisite-ultimate'), + 'description' => __('Holds the ID of the customer that owns this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'public' => [ - 'description' => __('Set true if this site is a public one, false if not.', 'multisite-ultimate'), + 'description' => __('Set true if this site is a public one, false if not.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'archived' => [ - 'description' => __('Is this an archived site.', 'multisite-ultimate'), + 'description' => __('Is this an archived site.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'mature' => [ - 'description' => __('Is this a site with mature content.', 'multisite-ultimate'), + 'description' => __('Is this a site with mature content.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'spam' => [ - 'description' => __('Is this an spam site.', 'multisite-ultimate'), + 'description' => __('Is this an spam site.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'deleted' => [ - 'description' => __('Is this site deleted.', 'multisite-ultimate'), + 'description' => __('Is this site deleted.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'lang_id' => [ - 'description' => __('The ID of the language being used on this site.', 'multisite-ultimate'), + 'description' => __('The ID of the language being used on this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'customer_id' => [ - 'description' => __('The ID of the customer that owns this site.', 'multisite-ultimate'), + 'description' => __('The ID of the customer that owns this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'membership_id' => [ - 'description' => __('The ID of the membership associated with this site, if any.', 'multisite-ultimate'), + 'description' => __('The ID of the membership associated with this site, if any.', 'ultimate-multisite'), 'type' => 'integer', 'required' => true, ], 'template_id' => [ - 'description' => __('The ID of the templated used to create this site.', 'multisite-ultimate'), + 'description' => __('The ID of the templated used to create this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'type' => [ - 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'multisite-ultimate'), + 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, 'enum' => [ @@ -133,32 +133,32 @@ ], ], 'signup_options' => [ - 'description' => __('Keeps signup options for the site.', 'multisite-ultimate'), + 'description' => __('Keeps signup options for the site.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'signup_meta' => [ - 'description' => __('Keeps signup meta for the site.', 'multisite-ultimate'), + 'description' => __('Keeps signup meta for the site.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/site-update.php b/inc/api/schemas/site-update.php index 3d3373e25..fb04f06f8 100644 --- a/inc/api/schemas/site-update.php +++ b/inc/api/schemas/site-update.php @@ -20,107 +20,107 @@ */ return [ 'categories' => [ - 'description' => __('The categories this site belongs to.', 'multisite-ultimate'), + 'description' => __('The categories this site belongs to.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'featured_image_id' => [ - 'description' => __('The ID of the feature image of the site.', 'multisite-ultimate'), + 'description' => __('The ID of the feature image of the site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'site_id' => [ - 'description' => __('The network ID for this site.', 'multisite-ultimate'), + 'description' => __('The network ID for this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'title' => [ - 'description' => __('The site title.', 'multisite-ultimate'), + 'description' => __('The site title.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'name' => [ - 'description' => __('The site name.', 'multisite-ultimate'), + 'description' => __('The site name.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'description' => [ - 'description' => __('A description for the site, usually a short text.', 'multisite-ultimate'), + 'description' => __('A description for the site, usually a short text.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'domain' => [ - 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'multisite-ultimate'), + 'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'path' => [ - 'description' => __('Path of the site. Used when in sub-directory mode.', 'multisite-ultimate'), + 'description' => __('Path of the site. Used when in sub-directory mode.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'registered' => [ - 'description' => __('Date when the site was registered.', 'multisite-ultimate'), + 'description' => __('Date when the site was registered.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'last_updated' => [ - 'description' => __('Date of the last update on this site.', 'multisite-ultimate'), + 'description' => __('Date of the last update on this site.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'active' => [ - 'description' => __('Holds the ID of the customer that owns this site.', 'multisite-ultimate'), + 'description' => __('Holds the ID of the customer that owns this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'public' => [ - 'description' => __('Set true if this site is a public one, false if not.', 'multisite-ultimate'), + 'description' => __('Set true if this site is a public one, false if not.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'archived' => [ - 'description' => __('Is this an archived site.', 'multisite-ultimate'), + 'description' => __('Is this an archived site.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'mature' => [ - 'description' => __('Is this a site with mature content.', 'multisite-ultimate'), + 'description' => __('Is this a site with mature content.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'spam' => [ - 'description' => __('Is this an spam site.', 'multisite-ultimate'), + 'description' => __('Is this an spam site.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'deleted' => [ - 'description' => __('Is this site deleted.', 'multisite-ultimate'), + 'description' => __('Is this site deleted.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'lang_id' => [ - 'description' => __('The ID of the language being used on this site.', 'multisite-ultimate'), + 'description' => __('The ID of the language being used on this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'customer_id' => [ - 'description' => __('The ID of the customer that owns this site.', 'multisite-ultimate'), + 'description' => __('The ID of the customer that owns this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'membership_id' => [ - 'description' => __('The ID of the membership associated with this site, if any.', 'multisite-ultimate'), + 'description' => __('The ID of the membership associated with this site, if any.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'template_id' => [ - 'description' => __('The ID of the templated used to create this site.', 'multisite-ultimate'), + 'description' => __('The ID of the templated used to create this site.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'type' => [ - 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'multisite-ultimate'), + 'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, 'enum' => [ @@ -133,32 +133,32 @@ ], ], 'signup_options' => [ - 'description' => __('Keeps signup options for the site.', 'multisite-ultimate'), + 'description' => __('Keeps signup options for the site.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'signup_meta' => [ - 'description' => __('Keeps signup meta for the site.', 'multisite-ultimate'), + 'description' => __('Keeps signup meta for the site.', 'ultimate-multisite'), 'type' => 'array', 'required' => false, ], 'date_created' => [ - 'description' => __('Model creation date.', 'multisite-ultimate'), + 'description' => __('Model creation date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/webhook-create.php b/inc/api/schemas/webhook-create.php index 87a7dfc27..44e67143f 100644 --- a/inc/api/schemas/webhook-create.php +++ b/inc/api/schemas/webhook-create.php @@ -20,62 +20,62 @@ */ return [ 'name' => [ - 'description' => __('Webhook name, which is used as product title as well.', 'multisite-ultimate'), + 'description' => __('Webhook name, which is used as product title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'webhook_url' => [ - 'description' => __('The URL used for the webhook call.', 'multisite-ultimate'), + 'description' => __('The URL used for the webhook call.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'event' => [ - 'description' => __('The event that needs to be fired for this webhook to be sent.', 'multisite-ultimate'), + 'description' => __('The event that needs to be fired for this webhook to be sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'event_count' => [ - 'description' => __('How many times this webhook was sent.', 'multisite-ultimate'), + 'description' => __('How many times this webhook was sent.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'hidden' => [ - 'description' => __('Is this webhook hidden.', 'multisite-ultimate'), + 'description' => __('Is this webhook hidden.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'multisite-ultimate'), + 'description' => __('Date when this was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'integration' => [ - 'description' => __('The integration that created this webhook.', 'multisite-ultimate'), + 'description' => __('The integration that created this webhook.', 'ultimate-multisite'), 'type' => 'string', 'required' => true, ], 'date_last_failed' => [ - 'description' => __('The date when this webhook last fail.', 'multisite-ultimate'), + 'description' => __('The date when this webhook last fail.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/schemas/webhook-update.php b/inc/api/schemas/webhook-update.php index 10128453f..55986de88 100644 --- a/inc/api/schemas/webhook-update.php +++ b/inc/api/schemas/webhook-update.php @@ -20,62 +20,62 @@ */ return [ 'name' => [ - 'description' => __('Webhook name, which is used as product title as well.', 'multisite-ultimate'), + 'description' => __('Webhook name, which is used as product title as well.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'webhook_url' => [ - 'description' => __('The URL used for the webhook call.', 'multisite-ultimate'), + 'description' => __('The URL used for the webhook call.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'event' => [ - 'description' => __('The event that needs to be fired for this webhook to be sent.', 'multisite-ultimate'), + 'description' => __('The event that needs to be fired for this webhook to be sent.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'event_count' => [ - 'description' => __('How many times this webhook was sent.', 'multisite-ultimate'), + 'description' => __('How many times this webhook was sent.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'active' => [ - 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'multisite-ultimate'), + 'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'hidden' => [ - 'description' => __('Is this webhook hidden.', 'multisite-ultimate'), + 'description' => __('Is this webhook hidden.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], 'date_created' => [ - 'description' => __('Date when this was created.', 'multisite-ultimate'), + 'description' => __('Date when this was created.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'integration' => [ - 'description' => __('The integration that created this webhook.', 'multisite-ultimate'), + 'description' => __('The integration that created this webhook.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_last_failed' => [ - 'description' => __('The date when this webhook last fail.', 'multisite-ultimate'), + 'description' => __('The date when this webhook last fail.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'date_modified' => [ - 'description' => __('Model last modification date.', 'multisite-ultimate'), + 'description' => __('Model last modification date.', 'ultimate-multisite'), 'type' => 'string', 'required' => false, ], 'migrated_from_id' => [ - 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'multisite-ultimate'), + 'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'ultimate-multisite'), 'type' => 'integer', 'required' => false, ], 'skip_validation' => [ - 'description' => __('Set true to have field information validation bypassed when saving this event.', 'multisite-ultimate'), + 'description' => __('Set true to have field information validation bypassed when saving this event.', 'ultimate-multisite'), 'type' => 'boolean', 'required' => false, ], diff --git a/inc/api/trait-rest-api.php b/inc/api/trait-rest-api.php index 107b3a483..ad7ebc933 100644 --- a/inc/api/trait-rest-api.php +++ b/inc/api/trait-rest-api.php @@ -171,7 +171,7 @@ public function get_item_rest($request) { $item = $this->model_class::get_by_id($request['id']); if (empty($item)) { - return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'multisite-ultimate'), ['status' => 404]); + return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'ultimate-multisite'), ['status' => 404]); } return rest_ensure_response($item); @@ -223,7 +223,7 @@ public function create_item_rest($request) { } if ( ! $saved) { - return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 1).', 'multisite-ultimate'), ['status' => 400]); + return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 1).', 'ultimate-multisite'), ['status' => 400]); } return rest_ensure_response($item); @@ -244,7 +244,7 @@ public function update_item_rest($request) { $item = $this->model_class::get_by_id($id); if (empty($item)) { - return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'multisite-ultimate'), ['status' => 404]); + return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'ultimate-multisite'), ['status' => 404]); } $params = array_filter( @@ -263,7 +263,7 @@ public function update_item_rest($request) { } else { $error_message = sprintf( /* translators: 1. Object class name; 2. Set method name */ - __('The %1$s object does not have a %2$s method', 'multisite-ultimate'), + __('The %1$s object does not have a %2$s method', 'ultimate-multisite'), get_class($item), $set_method ); @@ -283,7 +283,7 @@ public function update_item_rest($request) { } if ( ! $saved) { - return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 2).', 'multisite-ultimate')); + return new \WP_Error("wu_rest_{$this->slug}", __('Something went wrong (Code 2).', 'ultimate-multisite')); } return rest_ensure_response($item); @@ -302,7 +302,7 @@ public function delete_item_rest($request) { $item = $this->model_class::get_by_id($request['id']); if (empty($item)) { - return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'multisite-ultimate'), ['status' => 404]); + return new \WP_Error("wu_rest_{$this->slug}_invalid_id", __('Item not found.', 'ultimate-multisite'), ['status' => 404]); } $result = $item->delete(); diff --git a/inc/api/trait-wp-cli.php b/inc/api/trait-wp-cli.php index 4f356dd11..26d8a9f50 100644 --- a/inc/api/trait-wp-cli.php +++ b/inc/api/trait-wp-cli.php @@ -118,7 +118,7 @@ public function set_wp_cli_enabled_sub_commands(): void { $sub_command_data['synopsis'][] = [ 'name' => 'id', 'type' => 'positional', - 'description' => __('The id for the resource.', 'multisite-ultimate'), + 'description' => __('The id for the resource.', 'ultimate-multisite'), 'optional' => false, ]; } @@ -133,7 +133,7 @@ public function set_wp_cli_enabled_sub_commands(): void { $field = [ 'name' => $name, - 'description' => wu_get_isset($explanation, 'description', __('No description found.', 'multisite-ultimate')), + 'description' => wu_get_isset($explanation, 'description', __('No description found.', 'ultimate-multisite')), 'optional' => ! wu_get_isset($explanation, 'required'), 'type' => 'assoc', ]; @@ -152,7 +152,7 @@ public function set_wp_cli_enabled_sub_commands(): void { $sub_command_data['synopsis'][] = [ 'name' => 'porcelain', 'type' => 'flag', - 'description' => __('Output just the id when the operation is successful.', 'multisite-ultimate'), + 'description' => __('Output just the id when the operation is successful.', 'ultimate-multisite'), 'optional' => true, ]; } @@ -161,7 +161,7 @@ public function set_wp_cli_enabled_sub_commands(): void { $sub_command_data['synopsis'][] = [ 'name' => 'format', 'type' => 'assoc', - 'description' => __('Render response in a particular format.', 'multisite-ultimate'), + 'description' => __('Render response in a particular format.', 'ultimate-multisite'), 'optional' => true, 'default' => 'table', 'options' => [ @@ -177,7 +177,7 @@ public function set_wp_cli_enabled_sub_commands(): void { $sub_command_data['synopsis'][] = [ 'name' => 'fields', 'type' => 'assoc', - 'description' => __('Limit response to specific fields. Defaults to id, name', 'multisite-ultimate'), + 'description' => __('Limit response to specific fields. Defaults to id, name', 'ultimate-multisite'), 'optional' => true, 'options' => array_merge(['id'], $params), ]; @@ -337,7 +337,7 @@ public function wp_cli_update_item($args, $array_assoc): void { } else { $error_message = sprintf( /* translators: 1. Object class name; 2. Set method name */ - __('The %1$s object does not have a %2$s method', 'multisite-ultimate'), + __('The %1$s object does not have a %2$s method', 'ultimate-multisite'), get_class($item), $set_method ); diff --git a/inc/checkout/class-cart.php b/inc/checkout/class-cart.php index c327976b5..e052d6044 100644 --- a/inc/checkout/class-cart.php +++ b/inc/checkout/class-cart.php @@ -555,7 +555,7 @@ protected function build_from_payment($payment_id): bool { $payment = wu_get_payment($payment_id); if ( ! $payment) { - $this->errors->add('payment_not_found', __('The payment in question was not found.', 'multisite-ultimate')); + $this->errors->add('payment_not_found', __('The payment in question was not found.', 'ultimate-multisite')); return true; } @@ -582,7 +582,7 @@ protected function build_from_payment($payment_id): bool { * a payment can pay it. Let's check for that. */ if (empty($this->customer) || $this->customer->get_id() !== $payment->get_customer_id()) { - $this->errors->add('lacks_permission', __('You are not allowed to modify this payment.', 'multisite-ultimate')); + $this->errors->add('lacks_permission', __('You are not allowed to modify this payment.', 'ultimate-multisite')); return true; } @@ -593,7 +593,7 @@ protected function build_from_payment($payment_id): bool { $membership = $payment->get_membership(); if ( ! $membership) { - $this->errors->add('membership_not_found', __('The membership in question was not found.', 'multisite-ultimate')); + $this->errors->add('membership_not_found', __('The membership in question was not found.', 'ultimate-multisite')); return true; } @@ -682,7 +682,7 @@ protected function build_from_payment($payment_id): bool { ); if ( ! in_array($payment->get_status(), $allowed_status, true)) { - $this->errors->add('invalid_status', __('The payment in question has an invalid status.', 'multisite-ultimate')); + $this->errors->add('invalid_status', __('The payment in question has an invalid status.', 'ultimate-multisite')); return true; } @@ -741,7 +741,7 @@ protected function build_from_membership($membership_id): bool { $membership = wu_get_membership($membership_id); if ( ! $membership) { - $this->errors->add('membership_not_found', __('The membership in question was not found.', 'multisite-ultimate')); + $this->errors->add('membership_not_found', __('The membership in question was not found.', 'ultimate-multisite')); return true; } @@ -761,7 +761,7 @@ protected function build_from_membership($membership_id): bool { * Only the customer that owns a membership can change it. */ if (empty($this->customer) || $this->customer->get_id() !== $membership->get_customer_id()) { - $this->errors->add('lacks_permission', __('You are not allowed to modify this membership.', 'multisite-ultimate')); + $this->errors->add('lacks_permission', __('You are not allowed to modify this membership.', 'ultimate-multisite')); return true; } @@ -793,7 +793,7 @@ protected function build_from_membership($membership_id): bool { return false; } - $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'multisite-ultimate')); + $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'ultimate-multisite')); return true; } @@ -815,7 +815,7 @@ protected function build_from_membership($membership_id): bool { */ if (empty($this->plan_id)) { if (count($this->products) === 0) { - $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'multisite-ultimate')); + $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'ultimate-multisite')); return true; } @@ -937,7 +937,7 @@ protected function build_from_membership($membership_id): bool { $this->products = []; $this->line_items = []; - $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'multisite-ultimate')); + $this->errors->add('no_changes', __('This cart proposes no changes to the current membership.', 'ultimate-multisite')); return true; } else { @@ -957,7 +957,7 @@ protected function build_from_membership($membership_id): bool { 'overlimits_' . $post_type_slug, sprintf( // translators: %1$d: current number of posts, %2$s: post type name, %3$d: posts quota, %4$s: post type name, %5$d: number of posts to be deleted, %6$s: post type name. - esc_html__('Your site currently has %1$d %2$s but the new plan is limited to %3$d %4$s. You must trash %5$d %6$s before you can downgrade your plan.', 'multisite-ultimate'), + esc_html__('Your site currently has %1$d %2$s but the new plan is limited to %3$d %4$s. You must trash %5$d %6$s before you can downgrade your plan.', 'ultimate-multisite'), $limit['current'], $limit['current'] > 1 ? $post_type->labels->name : $post_type->labels->singular_name, $limit['limit'], @@ -983,7 +983,7 @@ protected function build_from_membership($membership_id): bool { $this->errors->add( 'overlimits', sprintf( - esc_html__('This new plan does NOT support custom domains. You must remove all custom domains before you can downgrade your plan.', 'multisite-ultimate'), + esc_html__('This new plan does NOT support custom domains. You must remove all custom domains before you can downgrade your plan.', 'ultimate-multisite'), ) ); } else { @@ -991,13 +991,13 @@ protected function build_from_membership($membership_id): bool { 'overlimits', sprintf( // translators: %1$d: current number of custom domains, %2$s: 'custom domain' or 'custom domains', %3$d: domain limit, %4$s: 'custom domain' or 'custom domains', %5$d: number of domains to be removed, %6$s: 'custom domain' or 'custom domains'. - esc_html__('Your site currently has %1$d %2$s but the new plan is limited to %3$d %4$s. You must remove %5$d %6$s before you can downgrade your plan.', 'multisite-ultimate'), + esc_html__('Your site currently has %1$d %2$s but the new plan is limited to %3$d %4$s. You must remove %5$d %6$s before you can downgrade your plan.', 'ultimate-multisite'), $domain_count, - $domain_count > 1 ? __('custom domains', 'multisite-ultimate') : __('custom domain', 'multisite-ultimate'), + $domain_count > 1 ? __('custom domains', 'ultimate-multisite') : __('custom domain', 'ultimate-multisite'), $domain_limit, - $domain_limit > 1 ? __('custom domains', 'multisite-ultimate') : __('custom domain', 'multisite-ultimate'), + $domain_limit > 1 ? __('custom domains', 'ultimate-multisite') : __('custom domain', 'ultimate-multisite'), $domain_count - $domain_limit, - ($domain_count - $domain_limit) > 1 ? __('custom domains', 'multisite-ultimate') : __('custom domain', 'multisite-ultimate') + ($domain_count - $domain_limit) > 1 ? __('custom domains', 'ultimate-multisite') : __('custom domain', 'ultimate-multisite') ) ); } @@ -1071,7 +1071,7 @@ protected function build_from_membership($membership_id): bool { ); // Translators: Placeholder receives the recurring period description - $message = sprintf(__('You already have an active %s agreement.', 'multisite-ultimate'), $description); + $message = sprintf(__('You already have an active %s agreement.', 'ultimate-multisite'), $description); $this->errors->add('no_changes', $message); @@ -1092,8 +1092,8 @@ protected function build_from_membership($membership_id): bool { 'wu_checkout_credit_line_item_params', [ 'type' => 'credit', - 'title' => __('Scheduled Swap Credit', 'multisite-ultimate'), - 'description' => __('Swap scheduled to next billing cycle.', 'multisite-ultimate'), + 'title' => __('Scheduled Swap Credit', 'ultimate-multisite'), + 'description' => __('Swap scheduled to next billing cycle.', 'ultimate-multisite'), 'discountable' => false, 'taxable' => false, 'quantity' => 1, @@ -1293,8 +1293,8 @@ protected function calculate_prorate_credits() { 'wu_checkout_credit_line_item_params', [ 'type' => 'credit', - 'title' => __('Credit', 'multisite-ultimate'), - 'description' => __('Prorated amount based on the previous membership.', 'multisite-ultimate'), + 'title' => __('Credit', 'ultimate-multisite'), + 'description' => __('Prorated amount based on the previous membership.', 'ultimate-multisite'), 'discountable' => false, 'taxable' => false, 'quantity' => 1, @@ -1330,7 +1330,7 @@ protected function set_discount_code($code): bool { if (empty($discount_code)) { // translators: %s is the coupon code being used, all-caps. e.g. PROMO10OFF - $this->errors->add('discount_code', sprintf(__('The code %s do not exist or is no longer valid.', 'multisite-ultimate'), $code)); + $this->errors->add('discount_code', sprintf(__('The code %s do not exist or is no longer valid.', 'ultimate-multisite'), $code)); return false; } @@ -1411,7 +1411,7 @@ public function is_valid() { if ($line_item_interval !== $interval) { // translators: two intervals - $this->errors->add('wrong', sprintf(__('Interval %1$s and %2$s do not match.', 'multisite-ultimate'), $line_item_interval, $interval)); + $this->errors->add('wrong', sprintf(__('Interval %1$s and %2$s do not match.', 'ultimate-multisite'), $line_item_interval, $interval)); return false; } @@ -1574,7 +1574,7 @@ public function add_product($product_id_or_slug, $quantity = 1): bool { $product = is_numeric($product_id_or_slug) ? wu_get_product($product_id_or_slug) : wu_get_product_by_slug($product_id_or_slug); if ( ! $product) { - $message = __('The product you are trying to add does not exist.', 'multisite-ultimate'); + $message = __('The product you are trying to add does not exist.', 'ultimate-multisite'); $this->errors->add('missing-product', $message); @@ -1586,7 +1586,7 @@ public function add_product($product_id_or_slug, $quantity = 1): bool { $product = $product->get_as_variation($this->duration, $this->duration_unit); if ( ! $product) { - $message = __('The product you are trying to add does not exist for the selected duration.', 'multisite-ultimate'); + $message = __('The product you are trying to add does not exist for the selected duration.', 'ultimate-multisite'); $this->errors->add('missing-price-variations', $message); @@ -1600,7 +1600,7 @@ public function add_product($product_id_or_slug, $quantity = 1): bool { * another one. Bail. */ if ( ! empty($this->plan_id)) { - $message = __('Theres already a plan in this membership.', 'multisite-ultimate'); + $message = __('Theres already a plan in this membership.', 'ultimate-multisite'); $this->errors->add('plan-already-added', $message); @@ -1662,7 +1662,7 @@ public function add_product($product_id_or_slug, $quantity = 1): bool { * price variation. We need to add an error. */ // translators: respectively, product name, duration, and duration unit. - $message = sprintf(__('%1$s does not have a valid price variation for that billing period (every %2$s %3$s(s)) and was not added to the cart.', 'multisite-ultimate'), $product->get_name(), $this->duration, $this->duration_unit); + $message = sprintf(__('%1$s does not have a valid price variation for that billing period (every %2$s %3$s(s)) and was not added to the cart.', 'ultimate-multisite'), $product->get_name(), $this->duration, $this->duration_unit); $this->errors->add('missing-price-variations', $message); @@ -1726,7 +1726,7 @@ public function add_product($product_id_or_slug, $quantity = 1): bool { } // translators: placeholder is the product name. - $description = ($product->get_setup_fee() > 0) ? __('Signup Fee for %s', 'multisite-ultimate') : __('Signup Credit for %s', 'multisite-ultimate'); + $description = ($product->get_setup_fee() > 0) ? __('Signup Fee for %s', 'ultimate-multisite') : __('Signup Credit for %s', 'ultimate-multisite'); $description = sprintf($description, $product->get_name()); diff --git a/inc/checkout/class-checkout-pages.php b/inc/checkout/class-checkout-pages.php index 2077c5bbf..4b73f1c6c 100644 --- a/inc/checkout/class-checkout-pages.php +++ b/inc/checkout/class-checkout-pages.php @@ -107,8 +107,8 @@ public function render_compat_mode_setting(): void {
name="_wu_force_elements_loading" /> @@ -187,7 +187,7 @@ public function maybe_change_wp_login_on_urls($url) { public function get_error_message($error_code, $username = '') { $messages = [ - 'incorrect_password' => sprintf(__('Error: The password you entered is incorrect.', 'multisite-ultimate')), + 'incorrect_password' => sprintf(__('Error: The password you entered is incorrect.', 'ultimate-multisite')), // From here we are using the same messages as WordPress core. 'expired' => __('Your session has expired. Please log in to continue where you left off.'), // phpcs:ignore WordPress.WP.I18n.MissingArgDomain /* translators: %s: Link to the login page. */ @@ -217,7 +217,7 @@ public function get_error_message($error_code, $username = '') { */ $messages = apply_filters('wu_checkout_pages_error_messages', $messages); - return wu_get_isset($messages, $error_code, __('Something went wrong', 'multisite-ultimate')); + return wu_get_isset($messages, $error_code, __('Something went wrong', 'ultimate-multisite')); } /** @@ -421,11 +421,11 @@ public function add_verify_email_notice($payment, $membership, $customer): void
', sprintf( // translators: %1$s and %2$s are HTML tags - esc_html__('Your email address is not yet verified. Your site %1$s will only be activated %2$s after your email address is verified. Check your inbox and verify your email address.', 'multisite-ultimate'), + esc_html__('Your email address is not yet verified. Your site %1$s will only be activated %2$s after your email address is verified. Check your inbox and verify your email address.', 'ultimate-multisite'), '', '' ), - esc_html__('Resend verification email →', 'multisite-ultimate') + esc_html__('Resend verification email →', 'ultimate-multisite') ); } } @@ -625,11 +625,11 @@ public function add_wp_ultimo_status_annotation($states, $post) { } $labels = [ - 'register' => __('Multisite Ultimate - Register Page', 'multisite-ultimate'), - 'login' => __('Multisite Ultimate - Login Page', 'multisite-ultimate'), - 'block_frontend' => __('Multisite Ultimate - Site Blocked Page', 'multisite-ultimate'), - 'update' => __('Multisite Ultimate - Membership Update Page', 'multisite-ultimate'), - 'new_site' => __('Multisite Ultimate - New Site Page', 'multisite-ultimate'), + 'register' => __('Multisite Ultimate - Register Page', 'ultimate-multisite'), + 'login' => __('Multisite Ultimate - Login Page', 'ultimate-multisite'), + 'block_frontend' => __('Multisite Ultimate - Site Blocked Page', 'ultimate-multisite'), + 'update' => __('Multisite Ultimate - Membership Update Page', 'ultimate-multisite'), + 'new_site' => __('Multisite Ultimate - New Site Page', 'ultimate-multisite'), ]; $pages = array_map('absint', $this->get_signup_pages()); diff --git a/inc/checkout/class-checkout.php b/inc/checkout/class-checkout.php index 031fae996..2d5f460a2 100644 --- a/inc/checkout/class-checkout.php +++ b/inc/checkout/class-checkout.php @@ -651,7 +651,7 @@ public function process_order() { if ($cart->should_collect_payment() === false) { $gateway = wu_get_gateway('free'); } elseif ( ! $gateway || $gateway->get_id() === 'free') { - $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'multisite-ultimate')); + $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'ultimate-multisite')); return false; } @@ -661,7 +661,7 @@ public function process_order() { * we need to bail. */ if ( ! $gateway) { - return new \WP_Error('no-gateway', __('Payment gateway not registered.', 'multisite-ultimate')); + return new \WP_Error('no-gateway', __('Payment gateway not registered.', 'ultimate-multisite')); } $this->gateway_id = $gateway->get_id(); @@ -975,7 +975,7 @@ protected function maybe_create_customer() { 'email_verification' => 'verified', ]; } elseif (isset($customer_data['email']) && get_user_by('email', $customer_data['email'])) { - return new \WP_Error('email_exists', __('The email address you entered is already in use.', 'multisite-ultimate')); + return new \WP_Error('email_exists', __('The email address you entered is already in use.', 'ultimate-multisite')); } /* @@ -1027,7 +1027,7 @@ protected function maybe_create_customer() { * wrong with the customer update, we return a general error. */ if ( ! $address_saved) { - return new \WP_Error('address_failure', __('Something wrong happened while attempting to save the customer billing address', 'multisite-ultimate')); + return new \WP_Error('address_failure', __('Something wrong happened while attempting to save the customer billing address', 'ultimate-multisite')); } /* @@ -1556,9 +1556,9 @@ public function get_checkout_variables() { * Localized strings. */ $i18n = [ - 'loading' => __('Loading...', 'multisite-ultimate'), - 'added_to_order' => __('The item was added!', 'multisite-ultimate'), - 'weak_password' => __('The Password entered is too weak.', 'multisite-ultimate'), + 'loading' => __('Loading...', 'ultimate-multisite'), + 'added_to_order' => __('The item was added!', 'ultimate-multisite'), + 'weak_password' => __('The Password entered is too weak.', 'ultimate-multisite'), ]; /* @@ -1860,12 +1860,12 @@ public function validate($rules = null) { // Add some hidden or compound fields ids $validation_aliases = array_merge( [ - 'password_conf' => __('Password confirmation', 'multisite-ultimate'), - 'email_address_confirmation' => __('Email confirmation', 'multisite-ultimate'), - 'template_id' => __('Template ID', 'multisite-ultimate'), - 'valid_password' => __('Valid password', 'multisite-ultimate'), - 'products' => __('Products', 'multisite-ultimate'), - 'gateway' => __('Payment Gateway', 'multisite-ultimate'), + 'password_conf' => __('Password confirmation', 'ultimate-multisite'), + 'email_address_confirmation' => __('Email confirmation', 'ultimate-multisite'), + 'template_id' => __('Template ID', 'ultimate-multisite'), + 'valid_password' => __('Valid password', 'ultimate-multisite'), + 'products' => __('Products', 'ultimate-multisite'), + 'gateway' => __('Payment Gateway', 'ultimate-multisite'), ], $base_aliases ); @@ -2082,13 +2082,13 @@ public function process_checkout() { } elseif ($this->order->should_collect_payment() === false) { $gateway = wu_get_gateway('free'); } elseif ($gateway->get_id() === 'free') { - $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'multisite-ultimate')); + $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'ultimate-multisite')); return false; } if ( ! $gateway) { - $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'multisite-ultimate')); + $this->errors = new \WP_Error('no-gateway', __('Payment gateway not registered.', 'ultimate-multisite')); return false; } @@ -2186,7 +2186,7 @@ public function process_checkout() { $membership_id = $this->order->get_membership() ? $this->order->get_membership()->get_id() : 'unknown'; // translators: %s is the membership ID - $log_message = sprintf(__('Checkout failed for customer %s: ', 'multisite-ultimate'), $membership_id); + $log_message = sprintf(__('Checkout failed for customer %s: ', 'ultimate-multisite'), $membership_id); $log_message .= $e->getMessage(); wu_log_add('checkout', $log_message, LogLevel::ERROR); diff --git a/inc/checkout/class-legacy-checkout.php b/inc/checkout/class-legacy-checkout.php index 274cf0775..15b202d88 100644 --- a/inc/checkout/class-legacy-checkout.php +++ b/inc/checkout/class-legacy-checkout.php @@ -96,7 +96,7 @@ public function init(): void { $this->session = wu_get_session('signup'); $this->templates = [ - 'signup-main.php' => __('Multisite Ultimate Legacy Signup', 'multisite-ultimate'), + 'signup-main.php' => __('Multisite Ultimate Legacy Signup', 'ultimate-multisite'), ]; // add_filter('request', array($this, 'maybe_render_legacy_signup')); @@ -257,9 +257,9 @@ public function register_scripts(): void { 'setup_fee_discount_type' => get_post_meta($coupon->id, 'wpu_setup_fee_discount_type', true), 'allowed_plans' => get_post_meta($coupon->id, 'wpu_allowed_plans', true), 'allowed_freqs' => get_post_meta($coupon->id, 'wpu_allowed_freqs', true), - 'off_text' => __('OFF', 'multisite-ultimate'), - 'free_text' => __('Free!', 'multisite-ultimate'), - 'no_setup_fee_text' => __('No Setup Fee', 'multisite-ultimate'), + 'off_text' => __('OFF', 'ultimate-multisite'), + 'free_text' => __('Free!', 'ultimate-multisite'), + 'no_setup_fee_text' => __('No Setup Fee', 'ultimate-multisite'), ]); wp_enqueue_script('wu-coupon-code'); @@ -336,7 +336,7 @@ public function check_geolocation(): void { if (isset($location['country']) && $location['country'] && $allowed_countries) { if ( ! in_array($location['country'], $allowed_countries, true)) { - wp_die(esc_html__('Sorry. Our service is not allowed in your country.', 'multisite-ultimate')); + wp_die(esc_html__('Sorry. Our service is not allowed in your country.', 'ultimate-multisite')); } } } @@ -415,8 +415,8 @@ public function get_steps($include_hidden = true, $filtered = true) { // Plan Selector $steps['plan'] = [ - 'name' => __('Pick a Plan', 'multisite-ultimate'), - 'desc' => __('Which one of our amazing plans you want to get?', 'multisite-ultimate'), + 'name' => __('Pick a Plan', 'ultimate-multisite'), + 'desc' => __('Which one of our amazing plans you want to get?', 'ultimate-multisite'), 'view' => 'step-plans', // 'handler' => [$this, 'plans_save'], 'order' => 10, @@ -431,8 +431,8 @@ public function get_steps($include_hidden = true, $filtered = true) { // We add template selection if this has template if ($site_templates) { $steps['template'] = [ - 'name' => __('Template Selection', 'multisite-ultimate'), - 'desc' => __('Select the base template of your new site.', 'multisite-ultimate'), + 'name' => __('Template Selection', 'ultimate-multisite'), + 'desc' => __('Select the base template of your new site.', 'ultimate-multisite'), 'view' => 'step-template', 'order' => 20, 'handler' => false, @@ -442,8 +442,8 @@ public function get_steps($include_hidden = true, $filtered = true) { // Domain registering $steps['domain'] = [ - 'name' => __('Site Details', 'multisite-ultimate'), - 'desc' => __('Ok, now it\'s time to pick your site url and title!', 'multisite-ultimate'), + 'name' => __('Site Details', 'ultimate-multisite'), + 'desc' => __('Ok, now it\'s time to pick your site url and title!', 'ultimate-multisite'), // 'handler' => [$this, 'domain_save'], 'view' => false, 'order' => 30, @@ -453,34 +453,34 @@ public function get_steps($include_hidden = true, $filtered = true) { [ 'blog_title' => [ 'order' => 10, - 'name' => apply_filters('wu_signup_site_title_label', __('Site Title', 'multisite-ultimate')), + 'name' => apply_filters('wu_signup_site_title_label', __('Site Title', 'ultimate-multisite')), 'type' => 'text', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_site_title_tooltip', __('Select the title your site is going to have.', 'multisite-ultimate')), + 'tooltip' => apply_filters('wu_signup_site_title_tooltip', __('Select the title your site is going to have.', 'ultimate-multisite')), 'required' => true, 'core' => true, ], 'blogname' => [ 'order' => 20, - 'name' => apply_filters('wu_signup_site_url_label', __('URL', 'multisite-ultimate')), + 'name' => apply_filters('wu_signup_site_url_label', __('URL', 'ultimate-multisite')), 'type' => 'text', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_site_url_tooltip', __('Site urls can only contain lowercase letters (a-z) and numbers and must be at least 4 characters. .', 'multisite-ultimate')), + 'tooltip' => apply_filters('wu_signup_site_url_tooltip', __('Site urls can only contain lowercase letters (a-z) and numbers and must be at least 4 characters. .', 'ultimate-multisite')), 'required' => true, 'core' => true, ], 'url_preview' => [ 'order' => 30, - 'name' => __('Site URL Preview', 'multisite-ultimate'), + 'name' => __('Site URL Preview', 'ultimate-multisite'), 'type' => 'html', 'content' => wu_get_template_contents('legacy/signup/steps/step-domain-url-preview'), ], 'submit' => [ 'order' => 100, 'type' => 'submit', - 'name' => __('Continue to the next step', 'multisite-ultimate'), + 'name' => __('Continue to the next step', 'ultimate-multisite'), 'core' => true, ], ] @@ -495,18 +495,18 @@ public function get_steps($include_hidden = true, $filtered = true) { 'user_name' => [ 'order' => 10, - 'name' => apply_filters('wu_signup_username_label', __('Username', 'multisite-ultimate')), + 'name' => apply_filters('wu_signup_username_label', __('Username', 'ultimate-multisite')), 'type' => 'text', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_username_tooltip', __('Username must be at least 4 characters.', 'multisite-ultimate')), + 'tooltip' => apply_filters('wu_signup_username_tooltip', __('Username must be at least 4 characters.', 'ultimate-multisite')), 'required' => true, 'core' => true, ], 'user_email' => [ 'order' => 20, - 'name' => apply_filters('wu_signup_email_label', __('Email', 'multisite-ultimate')), + 'name' => apply_filters('wu_signup_email_label', __('Email', 'ultimate-multisite')), 'type' => 'email', 'default' => '', 'placeholder' => '', @@ -517,18 +517,18 @@ public function get_steps($include_hidden = true, $filtered = true) { 'user_pass' => [ 'order' => 30, - 'name' => apply_filters('wu_signup_password_label', __('Password', 'multisite-ultimate')), + 'name' => apply_filters('wu_signup_password_label', __('Password', 'ultimate-multisite')), 'type' => 'password', 'default' => '', 'placeholder' => '', - 'tooltip' => apply_filters('wu_signup_password_tooltip', __('Your password should be at least 6 characters long.', 'multisite-ultimate')), + 'tooltip' => apply_filters('wu_signup_password_tooltip', __('Your password should be at least 6 characters long.', 'ultimate-multisite')), 'required' => true, 'core' => true, ], 'user_pass_conf' => [ 'order' => 40, - 'name' => apply_filters('wu_signup_password_conf_label', __('Confirm Password', 'multisite-ultimate')), + 'name' => apply_filters('wu_signup_password_conf_label', __('Confirm Password', 'ultimate-multisite')), 'type' => 'password', 'default' => '', 'placeholder' => '', @@ -542,7 +542,7 @@ public function get_steps($include_hidden = true, $filtered = true) { */ 'site_url' => [ 'order' => random_int(1, 59), // Use random order for Honeypot - 'name' => __('Site URL', 'multisite-ultimate'), + 'name' => __('Site URL', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'placeholder' => '', @@ -571,18 +571,18 @@ public function get_steps($include_hidden = true, $filtered = true) { // $account_fields['has_coupon'] = array( // 'order' => 50, // 'type' => 'checkbox', - // 'name' => __('Have a coupon code?', 'multisite-ultimate'), + // 'name' => __('Have a coupon code?', 'ultimate-multisite'), // 'core' => true, // 'check_if' => 'coupon', // Check if the input with this name is selected // 'checked' => $coupon ? true : false, // ); // $account_fields['coupon'] = array( // 'order' => 60, - // 'name' => __('Coupon Code', 'multisite-ultimate'), + // 'name' => __('Coupon Code', 'ultimate-multisite'), // 'type' => 'text', // 'default' => '', // 'placeholder' => '', - // 'tooltip' => __('The code should be an exact match. This field is case-sensitive.', 'multisite-ultimate'), + // 'tooltip' => __('The code should be an exact match. This field is case-sensitive.', 'ultimate-multisite'), // 'requires' => array('has_coupon' => true), // 'core' => true, // ); @@ -596,7 +596,7 @@ public function get_steps($include_hidden = true, $filtered = true) { // 'order' => 70, // 'type' => 'checkbox', // 'checked' => false, - // 'name' => sprintf(__('I agree with the Terms of Service', 'multisite-ultimate'), $this->get_terms_url()), + // 'name' => sprintf(__('I agree with the Terms of Service', 'ultimate-multisite'), $this->get_terms_url()), // 'core' => true, // ); // } @@ -607,13 +607,13 @@ public function get_steps($include_hidden = true, $filtered = true) { $account_fields['submit'] = [ 'order' => 100, 'type' => 'submit', - 'name' => __('Create Account', 'multisite-ultimate'), + 'name' => __('Create Account', 'ultimate-multisite'), 'core' => true, ]; // Account registering $steps['account'] = [ - 'name' => __('Account Details', 'multisite-ultimate'), + 'name' => __('Account Details', 'ultimate-multisite'), 'view' => false, 'handler' => [$this, 'account_save'], 'order' => 40, @@ -652,7 +652,7 @@ public function get_steps($include_hidden = true, $filtered = true) { */ $begin_signup = [ 'begin-signup' => [ - 'name' => __('Begin Signup Process', 'multisite-ultimate'), + 'name' => __('Begin Signup Process', 'ultimate-multisite'), // 'handler' => [$this, 'begin_signup'], 'view' => false, 'hidden' => true, @@ -668,7 +668,7 @@ public function get_steps($include_hidden = true, $filtered = true) { */ $create_account = [ 'create-account' => [ - 'name' => __('Creating Account', 'multisite-ultimate'), + 'name' => __('Creating Account', 'ultimate-multisite'), 'handler' => [$this, 'create_account'], 'view' => false, 'hidden' => true, @@ -717,7 +717,7 @@ public static function get_transient($die = true) { if ($die && empty($transient)) { - // wp_die(__('Try again', 'multisite-ultimate')); + // wp_die(__('Try again', 'ultimate-multisite')); } if (is_null($transient)) { @@ -870,7 +870,7 @@ function ($steps) use ($step, $id, $order, $field) { // Checks for honey-trap id if ('site_url' === $id) { - wp_die(esc_html__('Please, do not use the "site_url" as one of your custom fields\' ids. We use it as a honeytrap field to prevent spam registration. Consider alternatives such as "url" or "website".', 'multisite-ultimate')); + wp_die(esc_html__('Please, do not use the "site_url" as one of your custom fields\' ids. We use it as a honeytrap field to prevent spam registration. Consider alternatives such as "url" or "website".', 'ultimate-multisite')); } // Saves the order diff --git a/inc/checkout/class-line-item.php b/inc/checkout/class-line-item.php index 9933315f3..93a8cbce5 100644 --- a/inc/checkout/class-line-item.php +++ b/inc/checkout/class-line-item.php @@ -1100,7 +1100,7 @@ public function get_recurring_description() { $description = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('%2$s', 'every %1$s %2$s', $this->get_duration(), 'multisite-ultimate'), // phpcs:ignore + _n('%2$s', 'every %1$s %2$s', $this->get_duration(), 'ultimate-multisite'), // phpcs:ignore $this->get_duration(), wu_get_translatable_string(($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's')) ); diff --git a/inc/checkout/signup-fields/class-base-signup-field.php b/inc/checkout/signup-fields/class-base-signup-field.php index 64cff15c4..f82b05dc6 100644 --- a/inc/checkout/signup-fields/class-base-signup-field.php +++ b/inc/checkout/signup-fields/class-base-signup-field.php @@ -308,7 +308,7 @@ public function get_editor_fields($attributes = []) { $final_field_list[ '_site_notice_field_' . uniqid() ] = [ 'type' => 'note', 'classes' => 'wu--mt-px', - 'desc' => sprintf('
%s
', __('This is a site-related field. For that reason, this field will not show up when no plans are present on the shopping cart.', 'multisite-ultimate')), + 'desc' => sprintf('
%s
', __('This is a site-related field. For that reason, this field will not show up when no plans are present on the shopping cart.', 'ultimate-multisite')), 'order' => 98.5, ]; } @@ -320,7 +320,7 @@ public function get_editor_fields($attributes = []) { $final_field_list[ '_user_notice_field_' . uniqid() ] = [ 'type' => 'note', 'classes' => 'wu--mt-px', - 'desc' => sprintf('
%s
', __('This is a customer-related field. For that reason, this field will not show up when the user is logged and already has a customer on file.', 'multisite-ultimate')), + 'desc' => sprintf('
%s
', __('This is a customer-related field. For that reason, this field will not show up when the user is logged and already has a customer on file.', 'ultimate-multisite')), 'order' => 98.5, ]; } @@ -440,10 +440,10 @@ public static function fields_list() { $fields['id'] = [ 'type' => 'text', - 'title' => __('Field ID', 'multisite-ultimate'), - 'placeholder' => __('e.g. info-name', 'multisite-ultimate'), - 'tooltip' => __('Only alpha-numeric and hyphens allowed.', 'multisite-ultimate'), - 'desc' => __('The ID of the field. This is used to reference the field.', 'multisite-ultimate'), + 'title' => __('Field ID', 'ultimate-multisite'), + 'placeholder' => __('e.g. info-name', 'ultimate-multisite'), + 'tooltip' => __('Only alpha-numeric and hyphens allowed.', 'ultimate-multisite'), + 'desc' => __('The ID of the field. This is used to reference the field.', 'ultimate-multisite'), 'value' => wu_request('id', ''), 'html_attr' => [ 'v-on:input' => 'id = $event.target.value.toLowerCase().replace(/[^a-z0-9-_]+/g, "")', @@ -453,10 +453,10 @@ public static function fields_list() { $fields['name'] = [ 'type' => 'text', - 'title' => __('Field Label', 'multisite-ultimate'), - 'placeholder' => __('e.g. Your Name', 'multisite-ultimate'), - 'desc' => __('This is what your customer see as the field title.', 'multisite-ultimate'), - 'tooltip' => __('Leave blank to hide the field label. You can also set a placeholder value and tip in the "Additional Settings" tab.', 'multisite-ultimate'), + 'title' => __('Field Label', 'ultimate-multisite'), + 'placeholder' => __('e.g. Your Name', 'ultimate-multisite'), + 'desc' => __('This is what your customer see as the field title.', 'ultimate-multisite'), + 'tooltip' => __('Leave blank to hide the field label. You can also set a placeholder value and tip in the "Additional Settings" tab.', 'ultimate-multisite'), 'value' => '', 'html_attr' => [ 'v-model' => 'name', @@ -465,9 +465,9 @@ public static function fields_list() { $fields['placeholder'] = [ 'type' => 'text', - 'title' => __('Field Placeholder', 'multisite-ultimate'), - 'placeholder' => __('e.g. Placeholder value', 'multisite-ultimate'), - 'desc' => __('This value appears inside the field, as an example of how to fill it.', 'multisite-ultimate'), + 'title' => __('Field Placeholder', 'ultimate-multisite'), + 'placeholder' => __('e.g. Placeholder value', 'ultimate-multisite'), + 'desc' => __('This value appears inside the field, as an example of how to fill it.', 'ultimate-multisite'), 'tooltip' => '', 'value' => '', 'tab' => 'advanced', @@ -477,15 +477,15 @@ public static function fields_list() { ]; ob_start(); - wu_tooltip(__('Just like this!', 'multisite-ultimate')); + wu_tooltip(__('Just like this!', 'ultimate-multisite')); $realtooltip = ob_end_clean(); $fields['tooltip'] = [ 'type' => 'textarea', - 'title' => __('Field Tooltip', 'multisite-ultimate'), - 'placeholder' => __('e.g. This field is great, be sure to fill it.', 'multisite-ultimate'), + 'title' => __('Field Tooltip', 'ultimate-multisite'), + 'placeholder' => __('e.g. This field is great, be sure to fill it.', 'ultimate-multisite'), // translators: %is is the icon for a question mark. - 'desc' => sprintf(__('Any text entered here will be shown when the customer hovers the %s icon next to the field label.', 'multisite-ultimate'), $realtooltip), + 'desc' => sprintf(__('Any text entered here will be shown when the customer hovers the %s icon next to the field label.', 'ultimate-multisite'), $realtooltip), 'tooltip' => '', 'value' => '', 'tab' => 'advanced', @@ -497,8 +497,8 @@ public static function fields_list() { $fields['default_value'] = [ 'type' => 'text', - 'title' => __('Default Value', 'multisite-ultimate'), - 'placeholder' => __('e.g. None', 'multisite-ultimate'), + 'title' => __('Default Value', 'ultimate-multisite'), + 'placeholder' => __('e.g. None', 'ultimate-multisite'), 'value' => '', 'html_attr' => [ 'v-model' => 'default_value', @@ -507,7 +507,7 @@ public static function fields_list() { $fields['note'] = [ 'type' => 'textarea', - 'title' => __('Content', 'multisite-ultimate'), + 'title' => __('Content', 'ultimate-multisite'), 'placeholder' => '', 'tooltip' => '', 'value' => '', @@ -518,13 +518,13 @@ public static function fields_list() { $fields['limits'] = [ 'type' => 'group', - 'title' => __('Field Length', 'multisite-ultimate'), + 'title' => __('Field Length', 'ultimate-multisite'), 'tooltip' => '', 'fields' => [ 'min' => [ 'type' => 'number', 'value' => '', - 'placeholder' => __('Min', 'multisite-ultimate'), + 'placeholder' => __('Min', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-1/2', 'html_attr' => [ 'v-model' => 'min', @@ -533,7 +533,7 @@ public static function fields_list() { 'max' => [ 'type' => 'number', 'value' => '', - 'placeholder' => __('Max', 'multisite-ultimate'), + 'placeholder' => __('Max', 'ultimate-multisite'), 'wrapper_classes' => 'wu-ml-2 wu-w-1/2', 'html_attr' => [ 'v-model' => 'max', @@ -544,18 +544,18 @@ public static function fields_list() { $fields['save_as'] = [ 'type' => 'select', - 'title' => __('Save As', 'multisite-ultimate'), - 'desc' => __('Select how you want to save this piece of meta data. You can attach it to the customer or the site as site meta or as site option.', 'multisite-ultimate'), + 'title' => __('Save As', 'ultimate-multisite'), + 'desc' => __('Select how you want to save this piece of meta data. You can attach it to the customer or the site as site meta or as site option.', 'ultimate-multisite'), 'placeholder' => '', 'tooltip' => '', 'value' => 'customer_meta', 'order' => 99.5, 'options' => [ - 'customer_meta' => __('Customer Meta', 'multisite-ultimate'), - 'user_meta' => __('User Meta', 'multisite-ultimate'), - 'site_meta' => __('Site Meta', 'multisite-ultimate'), - 'site_option' => __('Site Option', 'multisite-ultimate'), - 'nothing' => __('Do not save', 'multisite-ultimate'), + 'customer_meta' => __('Customer Meta', 'ultimate-multisite'), + 'user_meta' => __('User Meta', 'ultimate-multisite'), + 'site_meta' => __('Site Meta', 'ultimate-multisite'), + 'site_option' => __('Site Option', 'ultimate-multisite'), + 'nothing' => __('Do not save', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'save_as', @@ -564,8 +564,8 @@ public static function fields_list() { $fields['required'] = [ 'type' => 'toggle', - 'title' => __('Required', 'multisite-ultimate'), - 'desc' => __('Mark this field as required. The checkout will not proceed unless this field is filled.', 'multisite-ultimate'), + 'title' => __('Required', 'ultimate-multisite'), + 'desc' => __('Mark this field as required. The checkout will not proceed unless this field is filled.', 'ultimate-multisite'), 'value' => 0, 'order' => 98, 'html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-billing-address.php b/inc/checkout/signup-fields/class-signup-field-billing-address.php index 14d1ed5a9..f8c223cc1 100644 --- a/inc/checkout/signup-fields/class-signup-field-billing-address.php +++ b/inc/checkout/signup-fields/class-signup-field-billing-address.php @@ -69,7 +69,7 @@ public function is_user_field() { */ public function get_title() { - return __('Address', 'multisite-ultimate'); + return __('Address', 'ultimate-multisite'); } /** @@ -82,7 +82,7 @@ public function get_title() { */ public function get_description() { - return __('Adds billing address fields such as country, zip code.', 'multisite-ultimate'); + return __('Adds billing address fields such as country, zip code.', 'ultimate-multisite'); } /** @@ -95,7 +95,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds billing address fields such as country, zip code.', 'multisite-ultimate'); + return __('Adds billing address fields such as country, zip code.', 'ultimate-multisite'); } /** @@ -165,8 +165,8 @@ public function get_fields() { return [ 'zip_and_country' => [ 'type' => 'toggle', - 'title' => __('Display only ZIP and Country?', 'multisite-ultimate'), - 'desc' => __('Checking this option will only add the ZIP and country fields, instead of all the normal billing address fields.', 'multisite-ultimate'), + 'title' => __('Display only ZIP and Country?', 'ultimate-multisite'), + 'desc' => __('Checking this option will only add the ZIP and country fields, instead of all the normal billing address fields.', 'ultimate-multisite'), 'value' => true, ], ]; diff --git a/inc/checkout/signup-fields/class-signup-field-checkbox.php b/inc/checkout/signup-fields/class-signup-field-checkbox.php index 5d2ccb905..b6b4a8339 100644 --- a/inc/checkout/signup-fields/class-signup-field-checkbox.php +++ b/inc/checkout/signup-fields/class-signup-field-checkbox.php @@ -69,7 +69,7 @@ public function is_user_field() { */ public function get_title() { - return __('Checkbox', 'multisite-ultimate'); + return __('Checkbox', 'ultimate-multisite'); } /** @@ -82,7 +82,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a checkout box that can be checked by the customer.', 'multisite-ultimate'); + return __('Adds a checkout box that can be checked by the customer.', 'ultimate-multisite'); } /** @@ -95,7 +95,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a checkout box that can be checked by the customer.', 'multisite-ultimate'); + return __('Adds a checkout box that can be checked by the customer.', 'ultimate-multisite'); } /** @@ -166,8 +166,8 @@ public function get_fields() { return [ 'default_state' => [ 'type' => 'toggle', - 'title' => __('Default State', 'multisite-ultimate'), - 'desc' => __('Use the toggle to the set the default state of the checkbox.', 'multisite-ultimate'), + 'title' => __('Default State', 'ultimate-multisite'), + 'desc' => __('Use the toggle to the set the default state of the checkbox.', 'ultimate-multisite'), 'value' => 0, 'order' => 12, ], diff --git a/inc/checkout/signup-fields/class-signup-field-color.php b/inc/checkout/signup-fields/class-signup-field-color.php index 00c6cf85f..8a4270016 100644 --- a/inc/checkout/signup-fields/class-signup-field-color.php +++ b/inc/checkout/signup-fields/class-signup-field-color.php @@ -55,7 +55,7 @@ public function is_required() { */ public function get_title() { - return __('Color', 'multisite-ultimate'); + return __('Color', 'ultimate-multisite'); } /** @@ -68,7 +68,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a color picker field.', 'multisite-ultimate'); + return __('Adds a color picker field.', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a color picker field.', 'multisite-ultimate'); + return __('Adds a color picker field.', 'ultimate-multisite'); } /** @@ -154,8 +154,8 @@ public function get_fields() { 'default_value' => [ 'type' => 'color-picker', 'order' => 12, - 'title' => __('Default Color', 'multisite-ultimate'), - 'desc' => __('Set the default value for this color field.', 'multisite-ultimate'), + 'title' => __('Default Color', 'ultimate-multisite'), + 'desc' => __('Set the default value for this color field.', 'ultimate-multisite'), ], ]; } diff --git a/inc/checkout/signup-fields/class-signup-field-discount-code.php b/inc/checkout/signup-fields/class-signup-field-discount-code.php index db95e6d2b..cbf751269 100644 --- a/inc/checkout/signup-fields/class-signup-field-discount-code.php +++ b/inc/checkout/signup-fields/class-signup-field-discount-code.php @@ -55,7 +55,7 @@ public function is_required() { */ public function get_title() { - return __('Coupon Code', 'multisite-ultimate'); + return __('Coupon Code', 'ultimate-multisite'); } /** @@ -68,7 +68,7 @@ public function get_title() { */ public function get_description() { - return __('Adds an additional field to apply a discount code.', 'multisite-ultimate'); + return __('Adds an additional field to apply a discount code.', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds an additional field to apply a discount code.', 'multisite-ultimate'); + return __('Adds an additional field to apply a discount code.', 'ultimate-multisite'); } /** @@ -168,7 +168,7 @@ public function to_fields_array($attributes) { $checkout_fields['discount_code_checkbox'] = [ 'id' => 'discount_code', 'type' => 'toggle', - 'name' => __('Have a coupon code?', 'multisite-ultimate'), + 'name' => __('Have a coupon code?', 'ultimate-multisite'), 'class' => 'wu-w-auto', 'html_attr' => [ 'v-model' => 'toggle_discount_code', diff --git a/inc/checkout/signup-fields/class-signup-field-email.php b/inc/checkout/signup-fields/class-signup-field-email.php index c5cd8ea85..e600df9ad 100644 --- a/inc/checkout/signup-fields/class-signup-field-email.php +++ b/inc/checkout/signup-fields/class-signup-field-email.php @@ -64,7 +64,7 @@ public function is_user_field(): bool { */ public function get_title() { - return __('Email', 'multisite-ultimate'); + return __('Email', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a email address field. This email address will be used to create the WordPress user.', 'multisite-ultimate'); + return __('Adds a email address field. This email address will be used to create the WordPress user.', 'ultimate-multisite'); } /** @@ -90,7 +90,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a email address field. This email address will be used to create the WordPress user.', 'multisite-ultimate'); + return __('Adds a email address field. This email address will be used to create the WordPress user.', 'ultimate-multisite'); } /** * Returns the icon to be used on the selector. @@ -118,7 +118,7 @@ public function defaults() { return [ 'display_notices' => true, 'email_confirm_field' => false, - 'email_confirm_label' => __('Confirm Email', 'multisite-ultimate'), + 'email_confirm_label' => __('Confirm Email', 'ultimate-multisite'), ]; } @@ -162,8 +162,8 @@ public function get_fields() { return [ 'display_notices' => [ 'type' => 'toggle', - 'title' => __('Display Notices', 'multisite-ultimate'), - 'desc' => __('When the customer is already logged in, a box with the customer\'s username and a link to logout is displayed instead of the email field. Disable this option if you do not want that box to show up.', 'multisite-ultimate'), + 'title' => __('Display Notices', 'ultimate-multisite'), + 'desc' => __('When the customer is already logged in, a box with the customer\'s username and a link to logout is displayed instead of the email field. Disable this option if you do not want that box to show up.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, 'html_attr' => [ @@ -172,8 +172,8 @@ public function get_fields() { ], 'email_confirm_field' => [ 'type' => 'toggle', - 'title' => __('Display Email Confirm Field', 'multisite-ultimate'), - 'desc' => __('Adds a "Confirm Email" field below email field to reduce the chance of making a mistake.', 'multisite-ultimate'), + 'title' => __('Display Email Confirm Field', 'ultimate-multisite'), + 'desc' => __('Adds a "Confirm Email" field below email field to reduce the chance of making a mistake.', 'ultimate-multisite'), 'value' => 1, ], ]; @@ -195,7 +195,7 @@ public function to_fields_array($attributes) { if ($attributes['display_notices']) { $checkout_fields['login_note'] = [ 'type' => 'note', - 'title' => __('Not you?', 'multisite-ultimate'), + 'title' => __('Not you?', 'ultimate-multisite'), 'desc' => [$this, 'render_not_you_customer_message'], 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'wrapper_html_attr' => [ @@ -207,7 +207,7 @@ public function to_fields_array($attributes) { if ($attributes['display_notices']) { $checkout_fields['login_note'] = [ 'type' => 'note', - 'title' => __('Existing customer?', 'multisite-ultimate'), + 'title' => __('Existing customer?', 'ultimate-multisite'), 'desc' => [$this, 'render_existing_customer_message'], 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'wrapper_html_attr' => [ @@ -267,7 +267,7 @@ public function render_existing_customer_message() { Log in to renew or change an existing membership.', 'multisite-ultimate')), esc_attr($login_url)); + printf(wp_kses_post(__('Log in to renew or change an existing membership.', 'ultimate-multisite')), esc_attr($login_url)); ?> @@ -295,7 +295,7 @@ public function render_not_you_customer_message() { Log in using your account.', 'multisite-ultimate')), esc_html(wp_get_current_user()->display_name), esc_attr($login_url)); + printf(wp_kses_post(__('Not %1$s? Log in using your account.', 'ultimate-multisite')), esc_html(wp_get_current_user()->display_name), esc_attr($login_url)); ?>

diff --git a/inc/checkout/signup-fields/class-signup-field-hidden.php b/inc/checkout/signup-fields/class-signup-field-hidden.php index 3fe80b9e6..0c18a5a67 100644 --- a/inc/checkout/signup-fields/class-signup-field-hidden.php +++ b/inc/checkout/signup-fields/class-signup-field-hidden.php @@ -55,7 +55,7 @@ public function is_required() { */ public function get_title() { - return __('Hidden Field', 'multisite-ultimate'); + return __('Hidden Field', 'ultimate-multisite'); } /** @@ -68,7 +68,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'multisite-ultimate'); + return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'multisite-ultimate'); + return __('Adds a hidden field. This is useful when coupled with the "Fill from the Request" option, to load values from the URL, for example.', 'ultimate-multisite'); } /** @@ -150,9 +150,9 @@ public function get_fields() { 'fixed_value' => [ 'order' => 12, 'type' => 'text', - 'title' => __('Pre-filled Value', 'multisite-ultimate'), - 'desc' => __('The field will be populated with this value. Can be overridden if the pre-fill from request option is enabled.', 'multisite-ultimate'), - 'placeholder' => __('e.g. blue', 'multisite-ultimate'), + 'title' => __('Pre-filled Value', 'ultimate-multisite'), + 'desc' => __('The field will be populated with this value. Can be overridden if the pre-fill from request option is enabled.', 'ultimate-multisite'), + 'placeholder' => __('e.g. blue', 'ultimate-multisite'), 'tooltip' => '', 'value' => '', ], diff --git a/inc/checkout/signup-fields/class-signup-field-order-bump.php b/inc/checkout/signup-fields/class-signup-field-order-bump.php index 2bd5bddfd..a80e117f7 100644 --- a/inc/checkout/signup-fields/class-signup-field-order-bump.php +++ b/inc/checkout/signup-fields/class-signup-field-order-bump.php @@ -56,7 +56,7 @@ public function is_required() { */ public function get_title() { - return __('Order Bump', 'multisite-ultimate'); + return __('Order Bump', 'ultimate-multisite'); } /** @@ -69,7 +69,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a product offer that the customer can click to add to the current cart.', 'multisite-ultimate'); + return __('Adds a product offer that the customer can click to add to the current cart.', 'ultimate-multisite'); } /** @@ -82,7 +82,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a product offer that the customer can click to add to the current cart.', 'multisite-ultimate'); + return __('Adds a product offer that the customer can click to add to the current cart.', 'ultimate-multisite'); } /** @@ -166,9 +166,9 @@ public function get_fields() { $editor_fields = [ 'product' => [ 'type' => 'model', - 'title' => __('Product', 'multisite-ultimate'), - 'placeholder' => __('e.g. Premium', 'multisite-ultimate'), - 'desc' => __('Select the product that will be presented to the customer as an add-on option.', 'multisite-ultimate'), + 'title' => __('Product', 'ultimate-multisite'), + 'placeholder' => __('e.g. Premium', 'ultimate-multisite'), + 'desc' => __('Select the product that will be presented to the customer as an add-on option.', 'ultimate-multisite'), 'tooltip' => '', 'order' => 12, 'html_attr' => [ @@ -182,15 +182,15 @@ public function get_fields() { 'display_product_description' => [ 'order' => 13, 'type' => 'toggle', - 'title' => __('Display Product Description', 'multisite-ultimate'), - 'desc' => __('Toggle to display the product description as well, if one is available.', 'multisite-ultimate'), + 'title' => __('Display Product Description', 'ultimate-multisite'), + 'desc' => __('Toggle to display the product description as well, if one is available.', 'ultimate-multisite'), 'value' => 0, ], 'display_product_image' => [ 'order' => 14, 'type' => 'toggle', - 'title' => __('Display Product Image', 'multisite-ultimate'), - 'desc' => __('Toggle to display the product image as well, if one is available.', 'multisite-ultimate'), + 'title' => __('Display Product Image', 'ultimate-multisite'), + 'desc' => __('Toggle to display the product image as well, if one is available.', 'ultimate-multisite'), 'value' => 1, ], ]; @@ -202,8 +202,8 @@ public function get_fields() { // 'fields' => array( // 'order_bump_template' => array( // 'type' => 'select', - // 'title' => __('Layout', 'multisite-ultimate'), - // 'placeholder' => __('Select your Layout', 'multisite-ultimate'), + // 'title' => __('Layout', 'ultimate-multisite'), + // 'placeholder' => __('Select your Layout', 'ultimate-multisite'), // 'options' => array($this, 'get_templates'), // 'wrapper_classes' => 'wu-flex-grow', // 'html_attr' => array( @@ -219,7 +219,7 @@ public function get_fields() { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized order bump templates?
See how you can do that here.', 'multisite-ultimate')), + // 'desc' => sprintf('
%s
', __('Want to add customized order bump templates?
See how you can do that here.', 'ultimate-multisite')), // ); return $editor_fields; @@ -251,7 +251,7 @@ public function to_fields_array($attributes) { if ($template_class) { $template_class->render_container($attributes); } else { - esc_html_e('Template does not exist.', 'multisite-ultimate'); + esc_html_e('Template does not exist.', 'ultimate-multisite'); } }; diff --git a/inc/checkout/signup-fields/class-signup-field-order-summary.php b/inc/checkout/signup-fields/class-signup-field-order-summary.php index 84d9f9969..6052e6381 100644 --- a/inc/checkout/signup-fields/class-signup-field-order-summary.php +++ b/inc/checkout/signup-fields/class-signup-field-order-summary.php @@ -54,7 +54,7 @@ public function is_required(): bool { */ public function get_title() { - return __('Order Summary', 'multisite-ultimate'); + return __('Order Summary', 'ultimate-multisite'); } /** @@ -67,7 +67,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'multisite-ultimate'); + return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'ultimate-multisite'); } /** @@ -80,7 +80,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'multisite-ultimate'); + return __('Adds a summary table with prices, key subscription dates, discounts, and taxes.', 'ultimate-multisite'); } /** @@ -163,11 +163,11 @@ public function get_fields() { $editor_fields['table_columns'] = [ 'type' => 'select', - 'title' => __('Table Columns', 'multisite-ultimate'), - 'desc' => __('"Simplified" will condense all discount and tax info into separate rows to keep the table with only two columns. "Display All" adds a discounts and taxes column to each product row.', 'multisite-ultimate'), + 'title' => __('Table Columns', 'ultimate-multisite'), + 'desc' => __('"Simplified" will condense all discount and tax info into separate rows to keep the table with only two columns. "Display All" adds a discounts and taxes column to each product row.', 'ultimate-multisite'), 'options' => [ - 'simple' => __('Simplified', 'multisite-ultimate'), - 'full' => __('Display All', 'multisite-ultimate'), + 'simple' => __('Simplified', 'ultimate-multisite'), + 'full' => __('Display All', 'ultimate-multisite'), ], ]; @@ -177,8 +177,8 @@ public function get_fields() { 'fields' => [ 'order_summary_template' => [ 'type' => 'select', - 'title' => __('Layout', 'multisite-ultimate'), - 'placeholder' => __('Select your Layout', 'multisite-ultimate'), + 'title' => __('Layout', 'ultimate-multisite'), + 'placeholder' => __('Select your Layout', 'ultimate-multisite'), 'options' => [$this, 'get_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -194,7 +194,7 @@ public function get_fields() { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized order summary templates?
See how you can do that here.', 'multisite-ultimate')), + // 'desc' => sprintf('
%s
', __('Want to add customized order summary templates?
See how you can do that here.', 'ultimate-multisite')), // ); return $editor_fields; @@ -225,7 +225,7 @@ public function to_fields_array($attributes) { if ($template_class) { $template_class->render_container($attributes); } else { - esc_html_e('Template does not exist.', 'multisite-ultimate'); + esc_html_e('Template does not exist.', 'ultimate-multisite'); } }; diff --git a/inc/checkout/signup-fields/class-signup-field-password.php b/inc/checkout/signup-fields/class-signup-field-password.php index 67f5e0d28..202b9dbe6 100644 --- a/inc/checkout/signup-fields/class-signup-field-password.php +++ b/inc/checkout/signup-fields/class-signup-field-password.php @@ -69,7 +69,7 @@ public function is_user_field() { */ public function get_title() { - return __('Password', 'multisite-ultimate'); + return __('Password', 'ultimate-multisite'); } /** @@ -82,7 +82,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'multisite-ultimate'); + return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'ultimate-multisite'); } /** @@ -95,7 +95,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'multisite-ultimate'); + return __('Adds a password field, with options for enforcing password strength and adding password confirmation field. This password is then used to create the WordPress user.', 'ultimate-multisite'); } /** @@ -124,7 +124,7 @@ public function defaults() { return [ 'password_confirm_field' => false, - 'password_confirm_label' => __('Confirm Password', 'multisite-ultimate'), + 'password_confirm_label' => __('Confirm Password', 'ultimate-multisite'), ]; } @@ -168,14 +168,14 @@ public function get_fields() { return [ 'password_strength_meter' => [ 'type' => 'toggle', - 'title' => __('Display Password Strength Meter', 'multisite-ultimate'), - 'desc' => __('Adds a password strength meter below the password field. Enabling this option also enforces passwords to be strong.', 'multisite-ultimate'), + 'title' => __('Display Password Strength Meter', 'ultimate-multisite'), + 'desc' => __('Adds a password strength meter below the password field. Enabling this option also enforces passwords to be strong.', 'ultimate-multisite'), 'value' => 1, ], 'password_confirm_field' => [ 'type' => 'toggle', - 'title' => __('Display Password Confirm Field', 'multisite-ultimate'), - 'desc' => __('Adds a "Confirm your Password" field below the default password field to reduce the chance of making a mistake.', 'multisite-ultimate'), + 'title' => __('Display Password Confirm Field', 'ultimate-multisite'), + 'desc' => __('Adds a "Confirm your Password" field below the default password field to reduce the chance of making a mistake.', 'ultimate-multisite'), 'value' => 1, ], ]; diff --git a/inc/checkout/signup-fields/class-signup-field-payment.php b/inc/checkout/signup-fields/class-signup-field-payment.php index 346d60901..ad0b35dc7 100644 --- a/inc/checkout/signup-fields/class-signup-field-payment.php +++ b/inc/checkout/signup-fields/class-signup-field-payment.php @@ -56,7 +56,7 @@ public function is_required() { */ public function get_title() { - return __('Payment', 'multisite-ultimate'); + return __('Payment', 'ultimate-multisite'); } /** @@ -69,7 +69,7 @@ public function get_title() { */ public function get_description() { - return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'multisite-ultimate'); + return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'ultimate-multisite'); } /** @@ -82,7 +82,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'multisite-ultimate'); + return __('Adds the payment options and the additional fields required to complete a purchase (e.g. credit card field).', 'ultimate-multisite'); } /** @@ -190,7 +190,7 @@ public function to_fields_array($attributes) { $fields['auto_renew'] = [ 'type' => 'toggle', 'id' => 'auto_renew', - 'name' => __('Auto-renew', 'multisite-ultimate'), + 'name' => __('Auto-renew', 'ultimate-multisite'), 'tooltip' => '', 'value' => '1', 'html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-period-selection.php b/inc/checkout/signup-fields/class-signup-field-period-selection.php index 0ec4793a7..cf0fbb24a 100644 --- a/inc/checkout/signup-fields/class-signup-field-period-selection.php +++ b/inc/checkout/signup-fields/class-signup-field-period-selection.php @@ -54,7 +54,7 @@ public function is_required(): bool { */ public function get_title() { - return __('Period Select', 'multisite-ultimate'); + return __('Period Select', 'ultimate-multisite'); } /** @@ -67,7 +67,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a period selector, that allows customers to switch between different billing periods.', 'multisite-ultimate'); + return __('Adds a period selector, that allows customers to switch between different billing periods.', 'ultimate-multisite'); } /** @@ -80,7 +80,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a period selector, that allows customers to switch between different billing periods.', 'multisite-ultimate'); + return __('Adds a period selector, that allows customers to switch between different billing periods.', 'ultimate-multisite'); } /** @@ -134,7 +134,7 @@ public function force_attributes() { return [ 'id' => 'period_selection', - 'name' => __('Plan Duration Switch', 'multisite-ultimate'), + 'name' => __('Plan Duration Switch', 'ultimate-multisite'), 'required' => true, ]; } @@ -169,8 +169,8 @@ public function get_fields() { 'fields' => [ 'period_selection_template' => [ 'type' => 'select', - 'title' => __('Period Selector Template', 'multisite-ultimate'), - 'placeholder' => __('Select your Template', 'multisite-ultimate'), + 'title' => __('Period Selector Template', 'ultimate-multisite'), + 'placeholder' => __('Select your Template', 'ultimate-multisite'), 'options' => [$this, 'get_template_options'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -182,14 +182,14 @@ public function get_fields() { $editor_fields['period_options_header'] = [ 'type' => 'small-header', - 'title' => __('Options', 'multisite-ultimate'), - 'desc' => __('Add different options below. These need to match your product price variations.', 'multisite-ultimate'), + 'title' => __('Options', 'ultimate-multisite'), + 'desc' => __('Add different options below. These need to match your product price variations.', 'ultimate-multisite'), 'order' => 90, ]; $editor_fields['period_options_empty'] = [ 'type' => 'note', - 'desc' => __('Add the first option using the button below.', 'multisite-ultimate'), + 'desc' => __('Add the first option using the button below.', 'ultimate-multisite'), 'classes' => 'wu-text-gray-600 wu-text-xs wu-text-center wu-w-full', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'order' => 90.5, @@ -212,12 +212,12 @@ public function get_fields() { 'fields' => [ 'period_options_remove' => [ 'type' => 'note', - 'desc' => sprintf('', __('Remove', 'multisite-ultimate')), + 'desc' => sprintf('', __('Remove', 'ultimate-multisite')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'period_options_duration' => [ 'type' => 'number', - 'title' => __('Duration', 'multisite-ultimate'), + 'title' => __('Duration', 'ultimate-multisite'), 'placeholder' => '', 'wrapper_classes' => 'wu-w-2/12', 'min' => 1, @@ -237,16 +237,16 @@ public function get_fields() { 'v-bind:name' => '"period_options[" + index + "][duration_unit]"', ], 'options' => [ - 'day' => __('Days', 'multisite-ultimate'), - 'week' => __('Weeks', 'multisite-ultimate'), - 'month' => __('Months', 'multisite-ultimate'), - 'year' => __('Years', 'multisite-ultimate'), + 'day' => __('Days', 'ultimate-multisite'), + 'week' => __('Weeks', 'ultimate-multisite'), + 'month' => __('Months', 'ultimate-multisite'), + 'year' => __('Years', 'ultimate-multisite'), ], ], 'period_options_label' => [ 'type' => 'text', - 'title' => __('Label', 'multisite-ultimate'), - 'placeholder' => __('e.g. Monthly', 'multisite-ultimate'), + 'title' => __('Label', 'ultimate-multisite'), + 'placeholder' => __('e.g. Monthly', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-5/12', 'html_attr' => [ 'v-model' => 'period_option.label', @@ -259,7 +259,7 @@ public function get_fields() { $editor_fields['repeat'] = [ 'order' => 92, 'type' => 'submit', - 'title' => __('+ Add option', 'multisite-ultimate'), + 'title' => __('+ Add option', 'ultimate-multisite'), 'classes' => 'wu-uppercase wu-text-2xs wu-text-blue-700 wu-border-none wu-bg-transparent wu-font-bold wu-text-right wu-w-full wu-cursor-pointer', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ @@ -301,7 +301,7 @@ public function to_fields_array($attributes) { if ($template_class) { $template_class->render_container($attributes); } else { - esc_html_e('Template does not exist.', 'multisite-ultimate'); + esc_html_e('Template does not exist.', 'ultimate-multisite'); } }; diff --git a/inc/checkout/signup-fields/class-signup-field-pricing-table.php b/inc/checkout/signup-fields/class-signup-field-pricing-table.php index 7b4647ac7..e2c94274b 100644 --- a/inc/checkout/signup-fields/class-signup-field-pricing-table.php +++ b/inc/checkout/signup-fields/class-signup-field-pricing-table.php @@ -54,7 +54,7 @@ public function is_required(): bool { */ public function get_title() { - return __('Pricing Table', 'multisite-ultimate'); + return __('Pricing Table', 'ultimate-multisite'); } /** @@ -67,7 +67,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'multisite-ultimate'); + return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'ultimate-multisite'); } /** @@ -80,7 +80,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'multisite-ultimate'); + return __('Adds a pricing table section that customers can use to choose a plan to subscribe to.', 'ultimate-multisite'); } /** @@ -137,7 +137,7 @@ public function force_attributes() { return [ 'id' => 'pricing_table', - 'name' => __('Plan Selection', 'multisite-ultimate'), + 'name' => __('Plan Selection', 'ultimate-multisite'), 'required' => true, ]; } @@ -167,9 +167,9 @@ public function get_fields() { $editor_fields['pricing_table_products'] = [ 'type' => 'model', - 'title' => __('Products', 'multisite-ultimate'), - 'placeholder' => __('e.g. Premium', 'multisite-ultimate'), - 'desc' => __('Be sure to add the products in the order you want them to show up.', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), + 'placeholder' => __('e.g. Premium', 'ultimate-multisite'), + 'desc' => __('Be sure to add the products in the order you want them to show up.', 'ultimate-multisite'), 'tooltip' => '', 'order' => 20, 'html_attr' => [ @@ -184,8 +184,8 @@ public function get_fields() { $editor_fields['force_different_durations'] = [ 'type' => 'toggle', - 'title' => __('Force Different Durations', 'multisite-ultimate'), - 'desc' => __('Check this option to force the display of plans with different recurring durations.', 'multisite-ultimate'), + 'title' => __('Force Different Durations', 'ultimate-multisite'), + 'desc' => __('Check this option to force the display of plans with different recurring durations.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'order' => 22, @@ -196,9 +196,9 @@ public function get_fields() { $editor_fields['hide_pricing_table_when_pre_selected'] = [ 'type' => 'toggle', - 'title' => __('Hide when Pre-Selected', 'multisite-ultimate'), - 'desc' => __('Prevent customers from seeing this field when a plan was already selected via the URL.', 'multisite-ultimate'), - 'tooltip' => __('If the pricing table field is the only field in the current step, the step will be skipped.', 'multisite-ultimate'), + 'title' => __('Hide when Pre-Selected', 'ultimate-multisite'), + 'desc' => __('Prevent customers from seeing this field when a plan was already selected via the URL.', 'ultimate-multisite'), + 'tooltip' => __('If the pricing table field is the only field in the current step, the step will be skipped.', 'ultimate-multisite'), 'value' => 0, 'order' => 24, 'html_attr' => [ @@ -213,8 +213,8 @@ public function get_fields() { 'fields' => [ 'pricing_table_template' => [ 'type' => 'select', - 'title' => __('Pricing Table Template', 'multisite-ultimate'), - 'placeholder' => __('Select your Template', 'multisite-ultimate'), + 'title' => __('Pricing Table Template', 'ultimate-multisite'), + 'placeholder' => __('Select your Template', 'ultimate-multisite'), 'options' => [$this, 'get_pricing_table_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -230,7 +230,7 @@ public function get_fields() { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized pricing table templates?
See how you can do that here.', 'multisite-ultimate')), + // 'desc' => sprintf('
%s
', __('Want to add customized pricing table templates?
See how you can do that here.', 'ultimate-multisite')), // ); return $editor_fields; @@ -281,7 +281,7 @@ public function to_fields_array($attributes) { if ($template_class) { $template_class->render_container($template_attributes); } else { - esc_html_e('Template does not exist.', 'multisite-ultimate'); + esc_html_e('Template does not exist.', 'ultimate-multisite'); } }; diff --git a/inc/checkout/signup-fields/class-signup-field-products.php b/inc/checkout/signup-fields/class-signup-field-products.php index ce8c1337f..5062c5cd6 100644 --- a/inc/checkout/signup-fields/class-signup-field-products.php +++ b/inc/checkout/signup-fields/class-signup-field-products.php @@ -53,7 +53,7 @@ public function is_required(): bool { */ public function get_title() { - return __('Product', 'multisite-ultimate'); + return __('Product', 'ultimate-multisite'); } /** @@ -66,7 +66,7 @@ public function get_title() { */ public function get_description() { - return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'multisite-ultimate'); + return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'ultimate-multisite'); } /** @@ -79,7 +79,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'multisite-ultimate'); + return __('Hidden field used to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and products manually.', 'ultimate-multisite'); } /** @@ -130,7 +130,7 @@ public function default_fields() { public function force_attributes() { return [ - 'name' => __('Pre-selected Products', 'multisite-ultimate'), + 'name' => __('Pre-selected Products', 'ultimate-multisite'), 'id' => 'products', ]; } @@ -146,9 +146,9 @@ public function get_fields() { return [ 'products' => [ 'type' => 'model', - 'title' => __('Products', 'multisite-ultimate'), - 'placeholder' => __('Products', 'multisite-ultimate'), - 'desc' => __('Use this field to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and other products manually.', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), + 'placeholder' => __('Products', 'ultimate-multisite'), + 'desc' => __('Use this field to pre-select products. This is useful when you have a signup page for specific offering/bundles and do not want your customers to be able to choose plans and other products manually.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'data-model' => 'product', diff --git a/inc/checkout/signup-fields/class-signup-field-select.php b/inc/checkout/signup-fields/class-signup-field-select.php index 6b88b141d..3187870c6 100644 --- a/inc/checkout/signup-fields/class-signup-field-select.php +++ b/inc/checkout/signup-fields/class-signup-field-select.php @@ -55,7 +55,7 @@ public function is_required() { */ public function get_title() { - return __('Select', 'multisite-ultimate'); + return __('Select', 'ultimate-multisite'); } /** @@ -68,7 +68,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a select field.', 'multisite-ultimate'); + return __('Adds a select field.', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a select field.', 'multisite-ultimate'); + return __('Adds a select field.', 'ultimate-multisite'); } /** @@ -156,13 +156,13 @@ public function get_fields() { $editor_fields['options_header'] = [ 'order' => 12, 'type' => 'small-header', - 'title' => __('Options', 'multisite-ultimate'), - 'desc' => __('Add different options below. The first option is used as the default.', 'multisite-ultimate'), + 'title' => __('Options', 'ultimate-multisite'), + 'desc' => __('Add different options below. The first option is used as the default.', 'ultimate-multisite'), ]; $editor_fields['options_empty'] = [ 'type' => 'note', - 'desc' => __('Add the first option using the button below.', 'multisite-ultimate'), + 'desc' => __('Add the first option using the button below.', 'ultimate-multisite'), 'classes' => 'wu-text-gray-600 wu-text-xs wu-text-center wu-w-full', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'order' => 13, @@ -185,13 +185,13 @@ public function get_fields() { 'fields' => [ 'options_remove' => [ 'type' => 'note', - 'desc' => sprintf('', __('Remove', 'multisite-ultimate')), + 'desc' => sprintf('', __('Remove', 'ultimate-multisite')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'options_key' => [ 'type' => 'text', - 'title' => __('Option Value', 'multisite-ultimate'), - 'placeholder' => __('e.g. option1', 'multisite-ultimate'), + 'title' => __('Option Value', 'ultimate-multisite'), + 'placeholder' => __('e.g. option1', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-1/2 wu-mr-2', 'html_attr' => [ 'v-model' => 'option.key', @@ -201,8 +201,8 @@ public function get_fields() { ], 'options_label' => [ 'type' => 'text', - 'title' => __('Label', 'multisite-ultimate'), - 'placeholder' => __('e.g. Option 1', 'multisite-ultimate'), + 'title' => __('Label', 'ultimate-multisite'), + 'placeholder' => __('e.g. Option 1', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-1/2 wu-ml-2', 'html_attr' => [ 'v-model' => 'option.label', @@ -215,7 +215,7 @@ public function get_fields() { $editor_fields['repeat_select_option'] = [ 'order' => 16, 'type' => 'submit', - 'title' => __('+ Add option', 'multisite-ultimate'), + 'title' => __('+ Add option', 'ultimate-multisite'), 'classes' => 'wu-uppercase wu-text-2xs wu-text-blue-700 wu-border-none wu-bg-transparent wu-font-bold wu-text-right wu-w-full wu-cursor-pointer', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-shortcode.php b/inc/checkout/signup-fields/class-signup-field-shortcode.php index 7c20c7490..768e743cc 100644 --- a/inc/checkout/signup-fields/class-signup-field-shortcode.php +++ b/inc/checkout/signup-fields/class-signup-field-shortcode.php @@ -53,7 +53,7 @@ public function is_required(): bool { */ public function get_title() { - return __('Shortcode', 'multisite-ultimate'); + return __('Shortcode', 'ultimate-multisite'); } /** @@ -66,7 +66,7 @@ public function get_title() { */ public function get_description() { - return __('Displays the content of a given WordPress shortcode. Can be useful to inset content from other plugins inside a Multisite Ultimate checkout form.', 'multisite-ultimate'); + return __('Displays the content of a given WordPress shortcode. Can be useful to inset content from other plugins inside a Multisite Ultimate checkout form.', 'ultimate-multisite'); } /** @@ -79,7 +79,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Displays the content of a given WordPress shortcode. Can be useful to insert content from other plugins inside a Multisite Ultimate checkout form.', 'multisite-ultimate'); + return __('Displays the content of a given WordPress shortcode. Can be useful to insert content from other plugins inside a Multisite Ultimate checkout form.', 'ultimate-multisite'); } /** @@ -133,7 +133,7 @@ public function default_fields() { public function force_attributes() { return [ - 'name' => __('Shortcode', 'multisite-ultimate'), + 'name' => __('Shortcode', 'ultimate-multisite'), ]; } @@ -148,9 +148,9 @@ public function get_fields() { return [ 'shortcode_code' => [ 'type' => 'text', - 'title' => __('Shortcode', 'multisite-ultimate'), - 'placeholder' => __('e.g. [shortcode]', 'multisite-ultimate'), - 'desc' => __('Please, enter the full shortcode, including [].', 'multisite-ultimate'), + 'title' => __('Shortcode', 'ultimate-multisite'), + 'placeholder' => __('e.g. [shortcode]', 'ultimate-multisite'), + 'desc' => __('Please, enter the full shortcode, including [].', 'ultimate-multisite'), ], ]; } diff --git a/inc/checkout/signup-fields/class-signup-field-site-title.php b/inc/checkout/signup-fields/class-signup-field-site-title.php index 28bd6c87e..8263d0f4d 100644 --- a/inc/checkout/signup-fields/class-signup-field-site-title.php +++ b/inc/checkout/signup-fields/class-signup-field-site-title.php @@ -66,7 +66,7 @@ public function is_site_field() { */ public function get_title() { - return __('Site Title', 'multisite-ultimate'); + return __('Site Title', 'ultimate-multisite'); } /** @@ -79,7 +79,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'multisite-ultimate'); + return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'ultimate-multisite'); } /** @@ -92,7 +92,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'multisite-ultimate'); + return __('Adds a Site Title field. This value is used to set the site title for the site being created.', 'ultimate-multisite'); } /** @@ -164,8 +164,8 @@ public function get_fields() { return [ 'auto_generate_site_title' => [ 'type' => 'toggle', - 'title' => __('Auto-generate?', 'multisite-ultimate'), - 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'multisite-ultimate'), + 'title' => __('Auto-generate?', 'ultimate-multisite'), + 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ diff --git a/inc/checkout/signup-fields/class-signup-field-site-url.php b/inc/checkout/signup-fields/class-signup-field-site-url.php index 85681e1eb..43fd5b1ea 100644 --- a/inc/checkout/signup-fields/class-signup-field-site-url.php +++ b/inc/checkout/signup-fields/class-signup-field-site-url.php @@ -63,7 +63,7 @@ public function is_site_field(): bool { */ public function get_title() { - return __('Site URL', 'multisite-ultimate'); + return __('Site URL', 'ultimate-multisite'); } /** @@ -76,7 +76,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'multisite-ultimate'); + return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'ultimate-multisite'); } /** @@ -89,7 +89,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'multisite-ultimate'); + return __('Adds a Site URL field. This is used to set the URL of the site being created.', 'ultimate-multisite'); } /** @@ -169,8 +169,8 @@ public function get_fields() { 'auto_generate_site_url' => [ 'order' => 12, 'type' => 'toggle', - 'title' => __('Auto-generate', 'multisite-ultimate'), - 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'multisite-ultimate'), + 'title' => __('Auto-generate', 'ultimate-multisite'), + 'desc' => __('Check this option to auto-generate this field based on the username of the customer.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -180,8 +180,8 @@ public function get_fields() { 'display_field_attachments' => [ 'order' => 18, 'type' => 'toggle', - 'title' => __('Display URL field attachments', 'multisite-ultimate'), - 'desc' => __('Adds the prefix and suffix blocks to the URL field.', 'multisite-ultimate'), + 'title' => __('Display URL field attachments', 'ultimate-multisite'), + 'desc' => __('Adds the prefix and suffix blocks to the URL field.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, 'tab' => 'content', @@ -195,8 +195,8 @@ public function get_fields() { 'display_url_preview' => [ 'order' => 19, 'type' => 'toggle', - 'title' => __('Display URL preview block', 'multisite-ultimate'), - 'desc' => __('Adds a preview block that shows the final URL.', 'multisite-ultimate'), + 'title' => __('Display URL preview block', 'ultimate-multisite'), + 'desc' => __('Adds a preview block that shows the final URL.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, 'tab' => 'content', @@ -210,8 +210,8 @@ public function get_fields() { 'enable_domain_selection' => [ 'order' => 20, 'type' => 'toggle', - 'title' => __('Enable Domain Selection', 'multisite-ultimate'), - 'desc' => __('Offer different domain options to your customers to choose from.', 'multisite-ultimate'), + 'title' => __('Enable Domain Selection', 'ultimate-multisite'), + 'desc' => __('Offer different domain options to your customers to choose from.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'tab' => 'content', @@ -226,8 +226,8 @@ public function get_fields() { 'available_domains' => [ 'order' => 30, 'type' => 'textarea', - 'title' => __('Available Domains', 'multisite-ultimate'), - 'desc' => __('Enter one domain option per line.', 'multisite-ultimate'), + 'title' => __('Available Domains', 'ultimate-multisite'), + 'desc' => __('Enter one domain option per line.', 'ultimate-multisite'), 'value' => $current_site->domain . PHP_EOL, 'tab' => 'content', 'wrapper_html_attr' => [ @@ -249,8 +249,8 @@ public function get_fields() { public function get_url_preview_templates() { $templates = [ - 'legacy/signup/steps/step-domain-url-preview' => __('New URL Preview', 'multisite-ultimate'), - // 'legacy/signup/steps/step-domain-url-preview' => __('Legacy Template', 'multisite-ultimate'), + 'legacy/signup/steps/step-domain-url-preview' => __('New URL Preview', 'ultimate-multisite'), + // 'legacy/signup/steps/step-domain-url-preview' => __('Legacy Template', 'ultimate-multisite'), ]; return apply_filters('wu_get_pricing_table_templates', $templates); @@ -328,7 +328,7 @@ public function to_fields_array($attributes) { $options = $this->get_domain_options($attributes['available_domains']); $checkout_fields['site_domain'] = [ - 'name' => __('Domain', 'multisite-ultimate'), + 'name' => __('Domain', 'ultimate-multisite'), 'options' => $options, 'wrapper_classes' => wu_get_isset($attributes, 'wrapper_element_classes', ''), 'classes' => wu_get_isset($attributes, 'element_classes', ''), diff --git a/inc/checkout/signup-fields/class-signup-field-steps.php b/inc/checkout/signup-fields/class-signup-field-steps.php index ca70eda1f..650297622 100644 --- a/inc/checkout/signup-fields/class-signup-field-steps.php +++ b/inc/checkout/signup-fields/class-signup-field-steps.php @@ -54,7 +54,7 @@ public function is_required(): bool { */ public function get_title() { - return __('Steps', 'multisite-ultimate'); + return __('Steps', 'ultimate-multisite'); } /** @@ -67,7 +67,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a list of the steps.', 'multisite-ultimate'); + return __('Adds a list of the steps.', 'ultimate-multisite'); } /** @@ -80,7 +80,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a list of the steps.', 'multisite-ultimate'); + return __('Adds a list of the steps.', 'ultimate-multisite'); } /** @@ -163,8 +163,8 @@ public function get_fields() { 'fields' => [ 'steps_template' => [ 'type' => 'select', - 'title' => __('Layout', 'multisite-ultimate'), - 'placeholder' => __('Select your Layout', 'multisite-ultimate'), + 'title' => __('Layout', 'ultimate-multisite'), + 'placeholder' => __('Select your Layout', 'ultimate-multisite'), 'options' => [$this, 'get_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -180,7 +180,7 @@ public function get_fields() { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized steps templates?
See how you can do that here.', 'multisite-ultimate')), + // 'desc' => sprintf('
%s
', __('Want to add customized steps templates?
See how you can do that here.', 'ultimate-multisite')), // ); return $editor_fields; @@ -211,7 +211,7 @@ public function to_fields_array($attributes) { if ($template_class) { $template_class->render_container($attributes); } else { - esc_html_e('Template does not exist.', 'multisite-ultimate'); + esc_html_e('Template does not exist.', 'ultimate-multisite'); } }; return [ diff --git a/inc/checkout/signup-fields/class-signup-field-submit-button.php b/inc/checkout/signup-fields/class-signup-field-submit-button.php index f5e09875e..4a2d38dcc 100644 --- a/inc/checkout/signup-fields/class-signup-field-submit-button.php +++ b/inc/checkout/signup-fields/class-signup-field-submit-button.php @@ -55,7 +55,7 @@ public function is_required() { */ public function get_title() { - return __('Submit Button', 'multisite-ultimate'); + return __('Submit Button', 'ultimate-multisite'); } /** @@ -68,7 +68,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'multisite-ultimate'); + return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'multisite-ultimate'); + return __('Adds a submit button. This is required to finalize single-step checkout forms or to navigate to the next step on multi-step checkout forms.', 'ultimate-multisite'); } /** @@ -110,7 +110,7 @@ public function defaults() { return [ 'enable_go_back_button' => false, - 'back_button_label' => __('← Go Back', 'multisite-ultimate'), + 'back_button_label' => __('← Go Back', 'ultimate-multisite'), ]; } @@ -150,8 +150,8 @@ public function get_fields() { return [ 'enable_go_back_button' => [ 'type' => 'toggle', - 'title' => __('Add "Go Back" button', 'multisite-ultimate'), - 'desc' => __('Enable this option to add a "Go Back" button. Useful for multi-step checkout forms.', 'multisite-ultimate'), + 'title' => __('Add "Go Back" button', 'ultimate-multisite'), + 'desc' => __('Enable this option to add a "Go Back" button. Useful for multi-step checkout forms.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ @@ -160,10 +160,10 @@ public function get_fields() { ], 'back_button_label' => [ 'type' => 'text', - 'title' => __('"Go Back" Button Label', 'multisite-ultimate'), - 'desc' => __('Value to be used as the "Go Back" label.', 'multisite-ultimate'), - 'placeholder' => __('e.g. ← Go Back', 'multisite-ultimate'), - 'value' => __('← Go Back', 'multisite-ultimate'), + 'title' => __('"Go Back" Button Label', 'ultimate-multisite'), + 'desc' => __('Value to be used as the "Go Back" label.', 'ultimate-multisite'), + 'placeholder' => __('e.g. ← Go Back', 'ultimate-multisite'), + 'value' => __('← Go Back', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-cloak' => '1', 'v-show' => 'enable_go_back_button', diff --git a/inc/checkout/signup-fields/class-signup-field-template-selection.php b/inc/checkout/signup-fields/class-signup-field-template-selection.php index 4aaea70ec..95201aac9 100644 --- a/inc/checkout/signup-fields/class-signup-field-template-selection.php +++ b/inc/checkout/signup-fields/class-signup-field-template-selection.php @@ -55,7 +55,7 @@ public function is_required(): bool { */ public function get_title() { - return __('Templates', 'multisite-ultimate'); + return __('Templates', 'ultimate-multisite'); } /** @@ -68,7 +68,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'multisite-ultimate'); + return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'multisite-ultimate'); + return __('Adds a template selection section. This allows the customer to choose a pre-built site to be used as a template for the site being currently created.', 'ultimate-multisite'); } /** @@ -139,7 +139,7 @@ public function force_attributes() { return [ 'id' => 'template_selection', - 'name' => __('Template Selection', 'multisite-ultimate'), + 'name' => __('Template Selection', 'ultimate-multisite'), 'required' => true, ]; } @@ -173,13 +173,13 @@ public function get_fields() { $editor_fields['template_selection_type'] = [ 'type' => 'select', - 'title' => __('Available templates', 'multisite-ultimate'), - 'desc' => __('How do you want to choose available which templates will be available.', 'multisite-ultimate'), + 'title' => __('Available templates', 'ultimate-multisite'), + 'desc' => __('How do you want to choose available which templates will be available.', 'ultimate-multisite'), 'order' => 20, 'options' => [ - 'name' => __('Select by names', 'multisite-ultimate'), - 'categories' => __('Select by categories', 'multisite-ultimate'), - 'all' => __('All templates', 'multisite-ultimate'), + 'name' => __('Select by names', 'ultimate-multisite'), + 'categories' => __('Select by categories', 'ultimate-multisite'), + 'all' => __('All templates', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'template_selection_type', @@ -188,9 +188,9 @@ public function get_fields() { $editor_fields['template_selection_categories'] = [ 'type' => 'select', - 'title' => __('Template Categories', 'multisite-ultimate'), - 'placeholder' => __('e.g.: Landing Page, Health...', 'multisite-ultimate'), - 'desc' => __('Customers will be able to filter by categories during signup.', 'multisite-ultimate'), + 'title' => __('Template Categories', 'ultimate-multisite'), + 'placeholder' => __('e.g.: Landing Page, Health...', 'ultimate-multisite'), + 'desc' => __('Customers will be able to filter by categories during signup.', 'ultimate-multisite'), 'order' => 21, 'options' => Site::get_all_categories(), 'html_attr' => [ @@ -204,9 +204,9 @@ public function get_fields() { $editor_fields['template_selection_sites'] = [ 'type' => 'model', - 'title' => __('Template Sites', 'multisite-ultimate'), - 'placeholder' => __('e.g. Template Site 1, My Agency', 'multisite-ultimate'), - 'desc' => __('Be sure to add the templates in the order you want them to show up.', 'multisite-ultimate'), + 'title' => __('Template Sites', 'ultimate-multisite'), + 'placeholder' => __('e.g. Template Site 1, My Agency', 'ultimate-multisite'), + 'desc' => __('Be sure to add the templates in the order you want them to show up.', 'ultimate-multisite'), 'order' => 22, 'html_attr' => [ 'v-model' => 'template_selection_sites', @@ -231,9 +231,9 @@ public function get_fields() { $editor_fields['hide_template_selection_when_pre_selected'] = [ 'type' => 'toggle', - 'title' => __('Hide when Pre-Selected', 'multisite-ultimate'), - 'desc' => __('Prevent customers from seeing this field when a template was already selected via the URL.', 'multisite-ultimate'), - 'tooltip' => __('If the template selection field is the only field in the current step, the step will be skipped.', 'multisite-ultimate'), + 'title' => __('Hide when Pre-Selected', 'ultimate-multisite'), + 'desc' => __('Prevent customers from seeing this field when a template was already selected via the URL.', 'ultimate-multisite'), + 'tooltip' => __('If the template selection field is the only field in the current step, the step will be skipped.', 'ultimate-multisite'), 'value' => 0, 'order' => 23, 'html_attr' => [ @@ -248,8 +248,8 @@ public function get_fields() { 'fields' => [ 'template_selection_template' => [ 'type' => 'select', - 'title' => __('Template Selector Template', 'multisite-ultimate'), - 'placeholder' => __('Select your Template', 'multisite-ultimate'), + 'title' => __('Template Selector Template', 'ultimate-multisite'), + 'placeholder' => __('Select your Template', 'ultimate-multisite'), 'options' => [$this, 'get_template_selection_templates'], 'wrapper_classes' => 'wu-flex-grow', 'html_attr' => [ @@ -265,7 +265,7 @@ public function get_fields() { // 'order' => 99, // 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', // 'classes' => '', - // 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'multisite-ultimate')), + // 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'ultimate-multisite')), // ); return $editor_fields; @@ -360,7 +360,7 @@ public function to_fields_array($attributes) { if ($template_class) { $template_class->render_container($template_attributes, $this); } else { - esc_html_e('Template does not exist.', 'multisite-ultimate'); + esc_html_e('Template does not exist.', 'ultimate-multisite'); } }; diff --git a/inc/checkout/signup-fields/class-signup-field-terms-of-use.php b/inc/checkout/signup-fields/class-signup-field-terms-of-use.php index 0fdfd3ae8..373b74f75 100644 --- a/inc/checkout/signup-fields/class-signup-field-terms-of-use.php +++ b/inc/checkout/signup-fields/class-signup-field-terms-of-use.php @@ -69,7 +69,7 @@ public function is_user_field() { */ public function get_title() { - return __('Terms of Use', 'multisite-ultimate'); + return __('Terms of Use', 'ultimate-multisite'); } /** @@ -82,7 +82,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'multisite-ultimate'); + return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'ultimate-multisite'); } /** @@ -95,7 +95,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'multisite-ultimate'); + return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'ultimate-multisite'); } /** @@ -123,7 +123,7 @@ public function get_icon() { public function defaults() { return [ - 'tou_name' => __('I agree with the terms of use.', 'multisite-ultimate'), + 'tou_name' => __('I agree with the terms of use.', 'ultimate-multisite'), ]; } @@ -148,7 +148,7 @@ public function force_attributes() { return [ 'id' => 'terms_of_use', - 'name' => __('Terms of Use', 'multisite-ultimate'), + 'name' => __('Terms of Use', 'ultimate-multisite'), ]; } @@ -164,15 +164,15 @@ public function get_fields() { 'tou_name' => [ 'order' => 10, 'type' => 'text', - 'title' => __('Terms Checkbox Label', 'multisite-ultimate'), - 'placeholder' => __('e.g. I agree with the terms of use.', 'multisite-ultimate'), + 'title' => __('Terms Checkbox Label', 'ultimate-multisite'), + 'placeholder' => __('e.g. I agree with the terms of use.', 'ultimate-multisite'), ], 'tou_url' => [ 'order' => 20, 'type' => 'url', - 'title' => __('Link to the Terms Page', 'multisite-ultimate'), - 'desc' => __('Enter the link to the terms of use content.', 'multisite-ultimate'), - 'placeholder' => __('e.g. https://yoursite.com/terms', 'multisite-ultimate'), + 'title' => __('Link to the Terms Page', 'ultimate-multisite'), + 'desc' => __('Enter the link to the terms of use content.', 'ultimate-multisite'), + 'placeholder' => __('e.g. https://yoursite.com/terms', 'ultimate-multisite'), ], ]; } @@ -189,7 +189,7 @@ public function to_fields_array($attributes) { $checkout_fields = []; - $tou_link = sprintf('%s', $attributes['tou_url'], __('Read here', 'multisite-ultimate')); + $tou_link = sprintf('%s', $attributes['tou_url'], __('Read here', 'ultimate-multisite')); $checkout_fields['terms_of_use'] = [ 'type' => 'checkbox', diff --git a/inc/checkout/signup-fields/class-signup-field-text.php b/inc/checkout/signup-fields/class-signup-field-text.php index 761321035..c70997429 100644 --- a/inc/checkout/signup-fields/class-signup-field-text.php +++ b/inc/checkout/signup-fields/class-signup-field-text.php @@ -55,7 +55,7 @@ public function is_required() { */ public function get_title() { - return __('Text', 'multisite-ultimate'); + return __('Text', 'ultimate-multisite'); } /** @@ -68,7 +68,7 @@ public function get_title() { */ public function get_description() { - return __('Adds a text field that the customer can fill with arbitrary data.', 'multisite-ultimate'); + return __('Adds a text field that the customer can fill with arbitrary data.', 'ultimate-multisite'); } /** @@ -81,7 +81,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds a text field that the customer can fill with arbitrary data.', 'multisite-ultimate'); + return __('Adds a text field that the customer can fill with arbitrary data.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/class-signup-field-username.php b/inc/checkout/signup-fields/class-signup-field-username.php index 0ce4ac019..a374747e8 100644 --- a/inc/checkout/signup-fields/class-signup-field-username.php +++ b/inc/checkout/signup-fields/class-signup-field-username.php @@ -69,7 +69,7 @@ public function is_user_field() { */ public function get_title() { - return __('Username', 'multisite-ultimate'); + return __('Username', 'ultimate-multisite'); } /** @@ -82,7 +82,7 @@ public function get_title() { */ public function get_description() { - return __('Adds an username field. This username will be used to create the WordPress user.', 'multisite-ultimate'); + return __('Adds an username field. This username will be used to create the WordPress user.', 'ultimate-multisite'); } /** @@ -95,7 +95,7 @@ public function get_description() { */ public function get_tooltip() { - return __('Adds an username field. This username will be used to create the WordPress user.', 'multisite-ultimate'); + return __('Adds an username field. This username will be used to create the WordPress user.', 'ultimate-multisite'); } /** @@ -167,8 +167,8 @@ public function get_fields() { return [ 'auto_generate_username' => [ 'type' => 'toggle', - 'title' => __('Auto-generate', 'multisite-ultimate'), - 'desc' => __('Check this option to auto-generate this field based on the email address of the customer.', 'multisite-ultimate'), + 'title' => __('Auto-generate', 'ultimate-multisite'), + 'desc' => __('Check this option to auto-generate this field based on the email address of the customer.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, 'html_attr' => [ diff --git a/inc/checkout/signup-fields/field-templates/class-base-field-template.php b/inc/checkout/signup-fields/field-templates/class-base-field-template.php index 642a8786d..a340e9cb3 100644 --- a/inc/checkout/signup-fields/field-templates/class-base-field-template.php +++ b/inc/checkout/signup-fields/field-templates/class-base-field-template.php @@ -78,7 +78,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Field Template', 'multisite-ultimate'); + return __('Field Template', 'ultimate-multisite'); } /** @@ -91,7 +91,7 @@ public function get_title() { */ public function get_description() { - return __('Description', 'multisite-ultimate'); + return __('Description', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php b/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php index 572cf4014..0ee3c49a2 100644 --- a/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php +++ b/inc/checkout/signup-fields/field-templates/order-bump/class-simple-order-bump-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Simple', 'multisite-ultimate'); + return __('Simple', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'multisite-ultimate'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php b/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php index 700f7a2c8..7273676ae 100644 --- a/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php +++ b/inc/checkout/signup-fields/field-templates/order-summary/class-clean-order-summary-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Clean', 'multisite-ultimate'); + return __('Clean', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'multisite-ultimate'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php b/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php index 3e4d59915..34970ef73 100644 --- a/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/period-selection/class-clean-period-selection-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Clean', 'multisite-ultimate'); + return __('Clean', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'multisite-ultimate'); + return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php b/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php index ed773cd66..d50e6887b 100644 --- a/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/period-selection/class-legacy-period-selection-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Legacy', 'multisite-ultimate'); + return __('Legacy', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('Implementation of the layout that shipped with Multisite Ultimate < 1.10.X.', 'multisite-ultimate'); + return __('Implementation of the layout that shipped with Multisite Ultimate < 1.10.X.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php b/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php index eb97c3d32..cdb5227e1 100644 --- a/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php +++ b/inc/checkout/signup-fields/field-templates/pricing-table/class-legacy-pricing-table-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Legacy', 'multisite-ultimate'); + return __('Legacy', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'multisite-ultimate'); + return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php b/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php index 7b4128b07..b9e1ffe68 100644 --- a/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php +++ b/inc/checkout/signup-fields/field-templates/pricing-table/class-list-pricing-table-field-template.php @@ -42,7 +42,7 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template { */ public function get_title() { - return __('Simple List', 'multisite-ultimate'); + return __('Simple List', 'ultimate-multisite'); } /** @@ -55,7 +55,7 @@ public function get_title() { */ public function get_description() { - return __('Simple stylized list with price, recurrence, and the plan description.', 'multisite-ultimate'); + return __('Simple stylized list with price, recurrence, and the plan description.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php b/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php index b22692f21..f205fc123 100644 --- a/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php +++ b/inc/checkout/signup-fields/field-templates/steps/class-clean-steps-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Clean', 'multisite-ultimate'); + return __('Clean', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'multisite-ultimate'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php b/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php index a744c6abb..16b5e5bee 100644 --- a/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php +++ b/inc/checkout/signup-fields/field-templates/steps/class-legacy-steps-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Legacy', 'multisite-ultimate'); + return __('Legacy', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'multisite-ultimate'); + return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php b/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php index 0c5311e88..c5a7efc9c 100644 --- a/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php +++ b/inc/checkout/signup-fields/field-templates/steps/class-minimal-steps-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Minimal', 'multisite-ultimate'); + return __('Minimal', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description() { - return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'multisite-ultimate'); + return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php b/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php index 5c2149584..ead9da9a4 100644 --- a/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/template-selection/class-clean-template-selection-field-template.php @@ -64,7 +64,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Clean', 'multisite-ultimate'); + return __('Clean', 'ultimate-multisite'); } /** @@ -77,7 +77,7 @@ public function get_title() { */ public function get_description(): string { - return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'multisite-ultimate'); + return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php b/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php index 4bb4e80b9..67b41626b 100644 --- a/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/template-selection/class-legacy-template-selection-field-template.php @@ -53,7 +53,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Legacy', 'multisite-ultimate'); + return __('Legacy', 'ultimate-multisite'); } /** @@ -66,7 +66,7 @@ public function get_title() { */ public function get_description() { - return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'multisite-ultimate'); + return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'ultimate-multisite'); } /** diff --git a/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php b/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php index b53eab1fc..c300bf39a 100644 --- a/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php +++ b/inc/checkout/signup-fields/field-templates/template-selection/class-minimal-template-selection-field-template.php @@ -53,7 +53,7 @@ public function get_render_type(): string { */ public function get_title() { - return __('Minimal', 'multisite-ultimate'); + return __('Minimal', 'ultimate-multisite'); } /** @@ -66,7 +66,7 @@ public function get_title() { */ public function get_description() { - return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'multisite-ultimate'); + return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'ultimate-multisite'); } /** diff --git a/inc/class-addon-repository.php b/inc/class-addon-repository.php index cd8c5a010..3783a0773 100644 --- a/inc/class-addon-repository.php +++ b/inc/class-addon-repository.php @@ -155,7 +155,7 @@ public function upgrader_pre_download(bool $reply, $package, \WP_Upgrader $upgra if (empty($access_token)) { // translators: %s the url for login. - return new \WP_Error('noauth', sprintf(__('You must Login first.', 'multisite-ultimate'), $this->get_oauth_url())); + return new \WP_Error('noauth', sprintf(__('You must Login first.', 'ultimate-multisite'), $this->get_oauth_url())); } $this->authorization_header = 'Bearer ' . $access_token; @@ -174,7 +174,7 @@ public function upgrader_pre_download(bool $reply, $package, \WP_Upgrader $upgra } if (! in_array(absint($code), [200, 302, 301], true)) { - return new \WP_Error('http_request_failed', esc_html__('Failed to connect to the update server. Please try again later.', 'multisite-ultimate')); + return new \WP_Error('http_request_failed', esc_html__('Failed to connect to the update server. Please try again later.', 'ultimate-multisite')); } } return $reply; @@ -220,7 +220,7 @@ public function save_access_token($code, $redirect_url) { set_transient('wu-access-token', $response['access_token'], $response['expires_in']); wu_save_option('wu-refresh-token', $response['refresh_token']); wp_admin_notice( - __('Successfully connected your site to MultisiteUltimate.com.', 'multisite-ultimate'), + __('Successfully connected your site to MultisiteUltimate.com.', 'ultimate-multisite'), [ 'type' => 'success', 'dismissible' => true, @@ -228,7 +228,7 @@ public function save_access_token($code, $redirect_url) { ); } else { wp_admin_notice( - __('Failed to authenticate with MultisiteUltimate.com.', 'multisite-ultimate'), + __('Failed to authenticate with MultisiteUltimate.com.', 'ultimate-multisite'), [ 'type' => 'error', 'dismissible' => true, diff --git a/inc/class-api.php b/inc/class-api.php index 306f5897f..5994c15cf 100644 --- a/inc/class-api.php +++ b/inc/class-api.php @@ -142,8 +142,8 @@ public function add_settings(): void { wu_register_settings_section( 'api', [ - 'title' => __('API & Webhooks', 'multisite-ultimate'), - 'desc' => __('API & Webhooks', 'multisite-ultimate'), + 'title' => __('API & Webhooks', 'ultimate-multisite'), + 'desc' => __('API & Webhooks', 'ultimate-multisite'), 'icon' => 'dashicons-wu-paper-plane', 'order' => 95, ] @@ -153,8 +153,8 @@ public function add_settings(): void { 'api', 'api_header', [ - 'title' => __('API Settings', 'multisite-ultimate'), - 'desc' => __('Options related to Multisite Ultimate API endpoints.', 'multisite-ultimate'), + 'title' => __('API Settings', 'ultimate-multisite'), + 'desc' => __('Options related to Multisite Ultimate API endpoints.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -163,8 +163,8 @@ public function add_settings(): void { 'api', 'enable_api', [ - 'title' => __('Enable API', 'multisite-ultimate'), - 'desc' => __('Tick this box if you want Multisite Ultimate to add its own endpoints to the WordPress REST API. This is required for some integrations to work, most notabily, Zapier.', 'multisite-ultimate'), + 'title' => __('Enable API', 'ultimate-multisite'), + 'desc' => __('Tick this box if you want Multisite Ultimate to add its own endpoints to the WordPress REST API. This is required for some integrations to work, most notabily, Zapier.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -173,14 +173,14 @@ public function add_settings(): void { $refreshed_tag = ''; if (wu_request('updated') && wu_request('api') === 'refreshed') { - $refreshed_tag = sprintf('%s', __('Credentials Refreshed', 'multisite-ultimate')); + $refreshed_tag = sprintf('%s', __('Credentials Refreshed', 'ultimate-multisite')); } wu_register_settings_field( 'api', 'api_url', [ - 'title' => __('API URL', 'multisite-ultimate'), + 'title' => __('API URL', 'ultimate-multisite'), 'desc' => '', 'tooltip' => '', 'copy' => true, @@ -196,7 +196,7 @@ public function add_settings(): void { 'api', 'api_key', [ - 'title' => __('API Key', 'multisite-ultimate') . $refreshed_tag, + 'title' => __('API Key', 'ultimate-multisite') . $refreshed_tag, 'desc' => '', 'tooltip' => '', 'type' => 'text-display', @@ -213,7 +213,7 @@ public function add_settings(): void { 'api', 'api_secret', [ - 'title' => __('API Secret', 'multisite-ultimate') . $refreshed_tag, + 'title' => __('API Secret', 'ultimate-multisite') . $refreshed_tag, 'tooltip' => '', 'type' => 'text-display', 'copy' => true, @@ -229,7 +229,7 @@ public function add_settings(): void { 'api', 'api_note', [ - 'desc' => __('This is your API Key. You cannot change it directly. To reset the API key and secret, use the button "Refresh API credentials" below.', 'multisite-ultimate'), + 'desc' => __('This is your API Key. You cannot change it directly. To reset the API key and secret, use the button "Refresh API credentials" below.', 'ultimate-multisite'), 'type' => 'note', 'classes' => 'wu-text-gray-700 wu-text-xs', 'wrapper_classes' => 'wu-bg-white sm:wu-border-t-0 sm:wu-mt-0 sm:wu-pt-0', @@ -243,7 +243,7 @@ public function add_settings(): void { 'api', 'refresh_api_credentials', [ - 'title' => __('Refresh API Credentials', 'multisite-ultimate'), + 'title' => __('Refresh API Credentials', 'ultimate-multisite'), 'type' => 'submit', 'classes' => 'button wu-ml-auto', 'wrapper_classes' => 'wu-bg-white sm:wu-border-t-0 sm:wu-mt-0 sm:wu-pt-0', @@ -257,8 +257,8 @@ public function add_settings(): void { 'api', 'api_log_calls', [ - 'title' => __('Log API calls (Advanced)', 'multisite-ultimate'), - 'desc' => __('Tick this box if you want to log all calls received via Multisite Ultimate API endpoints. You can access the logs on Multisite Ultimate → System Info → Logs.', 'multisite-ultimate'), + 'title' => __('Log API calls (Advanced)', 'ultimate-multisite'), + 'desc' => __('Tick this box if you want to log all calls received via Multisite Ultimate API endpoints. You can access the logs on Multisite Ultimate → System Info → Logs.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -271,8 +271,8 @@ public function add_settings(): void { 'api', 'webhook_header', [ - 'title' => __('Webhook Settings', 'multisite-ultimate'), - 'desc' => __('Options related to Multisite Ultimate API webhooks.', 'multisite-ultimate'), + 'title' => __('Webhook Settings', 'ultimate-multisite'), + 'desc' => __('Options related to Multisite Ultimate API webhooks.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -281,8 +281,8 @@ public function add_settings(): void { 'api', 'webhook_calls_blocking', [ - 'title' => __('Wait for Response (Advanced)', 'multisite-ultimate'), - 'desc' => __('Tick this box if you want the Multisite Ultimate\'s webhook calls to wait for the remote server to respond. Keeping this option enabled can have huge effects on your network\'s performance, only enable it if you know what you are doing and need to debug webhook calls.', 'multisite-ultimate'), + 'title' => __('Wait for Response (Advanced)', 'ultimate-multisite'), + 'desc' => __('Tick this box if you want the Multisite Ultimate\'s webhook calls to wait for the remote server to respond. Keeping this option enabled can have huge effects on your network\'s performance, only enable it if you know what you are doing and need to debug webhook calls.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -486,7 +486,7 @@ public function auth($request): void { [ 'success' => true, 'label' => $current_site->site_name, - 'message' => __('Welcome to our API', 'multisite-ultimate'), + 'message' => __('Welcome to our API', 'ultimate-multisite'), ] ); } diff --git a/inc/class-dashboard-widgets.php b/inc/class-dashboard-widgets.php index 4ff1adf17..5d0860d6a 100644 --- a/inc/class-dashboard-widgets.php +++ b/inc/class-dashboard-widgets.php @@ -87,28 +87,28 @@ public function enqueue_scripts(): void { */ public function register_network_widgets(): void { - add_meta_box('wp-ultimo-setup', __('Multisite Ultimate - First Steps', 'multisite-ultimate'), [$this, 'output_widget_first_steps'], $this->screen_id, 'normal', 'high'); + add_meta_box('wp-ultimo-setup', __('Multisite Ultimate - First Steps', 'ultimate-multisite'), [$this, 'output_widget_first_steps'], $this->screen_id, 'normal', 'high'); - add_meta_box('wp-ultimo-summary', __('Multisite Ultimate - Summary', 'multisite-ultimate'), [$this, 'output_widget_summary'], $this->screen_id, 'normal', 'high'); + add_meta_box('wp-ultimo-summary', __('Multisite Ultimate - Summary', 'ultimate-multisite'), [$this, 'output_widget_summary'], $this->screen_id, 'normal', 'high'); - add_meta_box('wp-ultimo-activity-stream', __('Multisite Ultimate - Activity Stream', 'multisite-ultimate'), [$this, 'output_widget_activity_stream'], $this->screen_id, 'normal', 'high'); + add_meta_box('wp-ultimo-activity-stream', __('Multisite Ultimate - Activity Stream', 'ultimate-multisite'), [$this, 'output_widget_activity_stream'], $this->screen_id, 'normal', 'high'); \WP_Ultimo\UI\Tours::get_instance()->create_tour( 'dashboard', [ [ 'id' => 'welcome', - 'title' => __('Welcome!', 'multisite-ultimate'), + 'title' => __('Welcome!', 'ultimate-multisite'), 'text' => [ - __('Welcome to your new network dashboard!', 'multisite-ultimate'), - __('You will notice that Multisite Ultimate adds a couple of useful widgets here so you can keep an eye on how your network is doing.', 'multisite-ultimate'), + __('Welcome to your new network dashboard!', 'ultimate-multisite'), + __('You will notice that Multisite Ultimate adds a couple of useful widgets here so you can keep an eye on how your network is doing.', 'ultimate-multisite'), ], ], [ 'id' => 'finish-your-setup', - 'title' => __('Finish your setup', 'multisite-ultimate'), + 'title' => __('Finish your setup', 'ultimate-multisite'), 'text' => [ - __('You still have a couple of things to do configuration-wise. Check the steps on this list and make sure you complete them all.', 'multisite-ultimate'), + __('You still have a couple of things to do configuration-wise. Check the steps on this list and make sure you complete them all.', 'ultimate-multisite'), ], 'attachTo' => [ 'element' => '#wp-ultimo-setup', @@ -117,9 +117,9 @@ public function register_network_widgets(): void { ], [ 'id' => 'wp-ultimo-menu', - 'title' => __('Our home', 'multisite-ultimate'), + 'title' => __('Our home', 'ultimate-multisite'), 'text' => [ - __('You can always find Multisite Ultimate settings and other pages under our menu item, here on the Network-level dashboard. 😃', 'multisite-ultimate'), + __('You can always find Multisite Ultimate settings and other pages under our menu item, here on the Network-level dashboard. 😃', 'ultimate-multisite'), ], 'attachTo' => [ 'element' => '.toplevel_page_wp-ultimo', @@ -182,16 +182,16 @@ public function output_widget_first_steps(): void { $steps = [ 'inital-setup' => [ - 'title' => __('Initial Setup', 'multisite-ultimate'), - 'desc' => __('Go through the initial Setup Wizard to configure the basic settings of your network.', 'multisite-ultimate'), - 'action_label' => __('Finish the Setup Wizard', 'multisite-ultimate'), + 'title' => __('Initial Setup', 'ultimate-multisite'), + 'desc' => __('Go through the initial Setup Wizard to configure the basic settings of your network.', 'ultimate-multisite'), + 'action_label' => __('Finish the Setup Wizard', 'ultimate-multisite'), 'action_link' => wu_network_admin_url('wp-ultimo-setup'), 'done' => wu_string_to_bool($initial_setup_done), ], 'payment-method' => [ - 'title' => __('Payment Method', 'multisite-ultimate'), - 'desc' => __('You will need to configure at least one payment gateway to be able to receive money from your customers.', 'multisite-ultimate'), - 'action_label' => __('Add a Payment Method', 'multisite-ultimate'), + 'title' => __('Payment Method', 'ultimate-multisite'), + 'desc' => __('You will need to configure at least one payment gateway to be able to receive money from your customers.', 'ultimate-multisite'), + 'action_label' => __('Add a Payment Method', 'ultimate-multisite'), 'action_link' => wu_network_admin_url( 'wp-ultimo-settings', [ @@ -202,10 +202,10 @@ public function output_widget_first_steps(): void { ], 'your-first-customer' => [ 'done' => ! empty(wu_get_customers()), - 'title' => __('Your First Customer', 'multisite-ultimate'), - 'desc' => __('Open the link below in an incognito tab and go through your newly created signup form.', 'multisite-ultimate'), + 'title' => __('Your First Customer', 'ultimate-multisite'), + 'desc' => __('Open the link below in an incognito tab and go through your newly created signup form.', 'ultimate-multisite'), 'action_link' => wp_registration_url(), - 'action_label' => __('Create a test Account', 'multisite-ultimate'), + 'action_label' => __('Create a test Account', 'ultimate-multisite'), ], ]; @@ -284,7 +284,7 @@ public function process_ajax_fetch_rss(): void { $_GET, // phpcs:ignore WordPress.Security.NonceVerification.Recommended [ 'url' => 'https://community.wpultimo.com/topics/feed', - 'title' => __('Forum Discussions', 'multisite-ultimate'), + 'title' => __('Forum Discussions', 'ultimate-multisite'), 'items' => 3, 'show_summary' => 1, 'show_author' => 0, diff --git a/inc/class-domain-mapping.php b/inc/class-domain-mapping.php index 41086bc0c..528c77bb9 100644 --- a/inc/class-domain-mapping.php +++ b/inc/class-domain-mapping.php @@ -382,7 +382,7 @@ public function clear_mappings_on_delete($site): void { if (is_wp_error($error)) { // translators: First placeholder is the mapping ID, second is the site ID. - $message = sprintf(__('Unable to delete mapping %1$d for site %2$d', 'multisite-ultimate'), $mapping->get_id(), $site->blog_id); + $message = sprintf(__('Unable to delete mapping %1$d for site %2$d', 'ultimate-multisite'), $mapping->get_id(), $site->blog_id); trigger_error(esc_html($message), E_USER_WARNING); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error } diff --git a/inc/class-hooks.php b/inc/class-hooks.php index 82f932dd4..b05e68546 100644 --- a/inc/class-hooks.php +++ b/inc/class-hooks.php @@ -56,7 +56,7 @@ public static function init(): void { */ public static function on_activation(): void { - wu_log_add('wp-ultimo-core', __('Activating Multisite Ultimate...', 'multisite-ultimate')); + wu_log_add('wp-ultimo-core', __('Activating Multisite Ultimate...', 'ultimate-multisite')); /* * Set the activation flag @@ -100,7 +100,7 @@ public static function on_activation_do(): void { */ public static function on_deactivation(): void { - wu_log_add('wp-ultimo-core', __('Deactivating Multisite Ultimate...', 'multisite-ultimate')); + wu_log_add('wp-ultimo-core', __('Deactivating Multisite Ultimate...', 'ultimate-multisite')); /* * Update the sunrise meta file. diff --git a/inc/class-logger.php b/inc/class-logger.php index 658f8a373..74db45c57 100644 --- a/inc/class-logger.php +++ b/inc/class-logger.php @@ -180,7 +180,7 @@ public static function track_time($handle, $message, $callback) { $time_elapsed = microtime(true) - $start; // translators: the placeholder %s will be replaced by the time in seconds (float). - $message .= ' - ' . sprintf(__('This action took %s seconds.', 'multisite-ultimate'), $time_elapsed); + $message .= ' - ' . sprintf(__('This action took %s seconds.', 'ultimate-multisite'), $time_elapsed); self::add($handle, $message); diff --git a/inc/class-maintenance-mode.php b/inc/class-maintenance-mode.php index 2a1c4289c..5b2e8f28c 100644 --- a/inc/class-maintenance-mode.php +++ b/inc/class-maintenance-mode.php @@ -84,11 +84,11 @@ public function add_notice_to_admin_bar($wp_admin_bar): void { $args = [ 'id' => 'wu-maintenance-mode', 'parent' => 'top-secondary', - 'title' => __('Maintenance Mode - Active', 'multisite-ultimate'), + 'title' => __('Maintenance Mode - Active', 'ultimate-multisite'), 'href' => '#wp-ultimo-site-maintenance-element', 'meta' => [ 'class' => 'wu-maintenance-mode ' . (self::check_maintenance_mode() ? '' : 'hidden'), - 'title' => __('This means that your site is not available for visitors at the moment. Only you and other logged users have access to it. Click here to toggle this option.', 'multisite-ultimate'), + 'title' => __('This means that your site is not available for visitors at the moment. Only you and other logged users have access to it. Click here to toggle this option.', 'ultimate-multisite'), ], ]; @@ -110,12 +110,12 @@ public function render_page(): void { $text = apply_filters( 'wu_maintenance_mode_text', - __('Website under planned maintenance. Please check back later.', 'multisite-ultimate') + __('Website under planned maintenance. Please check back later.', 'ultimate-multisite') ); $title = apply_filters( 'wu_maintenance_mode_title', - __('Under Maintenance', 'multisite-ultimate') + __('Under Maintenance', 'ultimate-multisite') ); wp_die(esc_html($text), esc_html($title), 503); @@ -143,7 +143,7 @@ public function toggle_maintenance_mode() { if ( ! check_ajax_referer('wu_toggle_maintenance_mode', '_wpnonce', false)) { wp_send_json_error( [ - 'message' => __('Request failed, please refresh and try again.', 'multisite-ultimate'), + 'message' => __('Request failed, please refresh and try again.', 'ultimate-multisite'), 'value' => false, ] ); @@ -154,7 +154,7 @@ public function toggle_maintenance_mode() { if ( ! current_user_can_for_site($site_id, 'manage_options')) { wp_send_json_error( [ - 'message' => __('You do not have the necessary permissions to perform this option.', 'multisite-ultimate'), + 'message' => __('You do not have the necessary permissions to perform this option.', 'ultimate-multisite'), 'value' => false, ] ); @@ -167,7 +167,7 @@ public function toggle_maintenance_mode() { update_site_meta($site_id, 'wu_maintenance_mode', $value); $return = [ - 'message' => __('New maintenance settings saved.', 'multisite-ultimate'), + 'message' => __('New maintenance settings saved.', 'ultimate-multisite'), 'value' => $value, ]; @@ -189,8 +189,8 @@ public function add_settings(): void { 'sites', 'maintenance_mode', [ - 'title' => __('Site Maintenance Mode', 'multisite-ultimate'), - 'desc' => __('Allow your customers and super admins to quickly take sites offline via a toggle on the site dashboard.', 'multisite-ultimate'), + 'title' => __('Site Maintenance Mode', 'ultimate-multisite'), + 'desc' => __('Allow your customers and super admins to quickly take sites offline via a toggle on the site dashboard.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'order' => 23, diff --git a/inc/class-newsletter.php b/inc/class-newsletter.php index b459c7b69..ce1e30bfd 100644 --- a/inc/class-newsletter.php +++ b/inc/class-newsletter.php @@ -19,8 +19,8 @@ public function add_settings(): void { 'general', self::SETTING_FIELD_SLUG, [ - 'title' => __('Signup for Multisite Ultimate Newsletter', 'multisite-ultimate'), - 'desc' => __('Be informed of new releases and all things related to running a WaaS Network.', 'multisite-ultimate'), + 'title' => __('Signup for Multisite Ultimate Newsletter', 'ultimate-multisite'), + 'desc' => __('Be informed of new releases and all things related to running a WaaS Network.', 'ultimate-multisite'), 'type' => 'toggle', 'value' => '1', ], diff --git a/inc/class-orphaned-tables-manager.php b/inc/class-orphaned-tables-manager.php index 31c9631de..0c845e0c6 100644 --- a/inc/class-orphaned-tables-manager.php +++ b/inc/class-orphaned-tables-manager.php @@ -64,17 +64,17 @@ public function register_settings_field(): void { 'other', 'cleanup_orphaned_tables', [ - 'title' => __('Cleanup Orphaned Database Tables', 'multisite-ultimate'), - 'desc' => __('Remove database tables from deleted sites that were not properly cleaned up.', 'multisite-ultimate'), + 'title' => __('Cleanup Orphaned Database Tables', 'ultimate-multisite'), + 'desc' => __('Remove database tables from deleted sites that were not properly cleaned up.', 'ultimate-multisite'), 'type' => 'link', - 'display_value' => __('Check for Orphaned Tables', 'multisite-ultimate'), + 'display_value' => __('Check for Orphaned Tables', 'ultimate-multisite'), 'classes' => 'button button-secondary wu-ml-0 wubox', 'wrapper_html_attr' => [ 'style' => 'margin-bottom: 20px;', ], 'html_attr' => [ 'href' => wu_get_form_url('orphaned_tables_delete'), - 'wu-tooltip' => __('Scan and cleanup database tables from deleted sites', 'multisite-ultimate'), + 'wu-tooltip' => __('Scan and cleanup database tables from deleted sites', 'ultimate-multisite'), ], ] ); @@ -97,8 +97,8 @@ public function render_orphaned_tables_delete_modal(): void {

%s

%s

', - esc_html__('Not Found', 'multisite-ultimate'), - esc_html__('No Orphaned Tables found.', 'multisite-ultimate') + esc_html__('Not Found', 'ultimate-multisite'), + esc_html__('No Orphaned Tables found.', 'ultimate-multisite') ); return; } @@ -123,19 +123,19 @@ public function render_orphaned_tables_delete_modal(): void { ', sprintf( /* translators: %d: number of orphaned tables */ - esc_html(_n('Confirm Deletion of %d Orphaned Table', 'Confirm Deletion of %d Orphaned Tables', $table_count, 'multisite-ultimate')), + esc_html(_n('Confirm Deletion of %d Orphaned Table', 'Confirm Deletion of %d Orphaned Tables', $table_count, 'ultimate-multisite')), $table_count ), - esc_html__('You are about to permanently delete the following database tables:', 'multisite-ultimate'), + esc_html__('You are about to permanently delete the following database tables:', 'ultimate-multisite'), $table_list, - esc_html__('Warning:', 'multisite-ultimate'), - esc_html__('This action cannot be undone. Please ensure you have a database backup before proceeding.', 'multisite-ultimate') + esc_html__('Warning:', 'ultimate-multisite'), + esc_html__('This action cannot be undone. Please ensure you have a database backup before proceeding.', 'ultimate-multisite') ), 'wrapper_classes' => 'wu-w-full', ], 'submit' => [ 'type' => 'submit', - 'title' => __('Yes, Delete These Tables', 'multisite-ultimate'), + 'title' => __('Yes, Delete These Tables', 'ultimate-multisite'), 'value' => 'delete', 'classes' => 'button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -173,7 +173,7 @@ public function render_orphaned_tables_delete_modal(): void { public function handle_orphaned_tables_delete_modal(): void { if (! current_user_can('manage_network')) { - wp_die(esc_html__('You do not have the required permissions.', 'multisite-ultimate')); + wp_die(esc_html__('You do not have the required permissions.', 'ultimate-multisite')); } if (empty($orphaned_tables) || ! is_array($orphaned_tables)) { diff --git a/inc/class-orphaned-users-manager.php b/inc/class-orphaned-users-manager.php index 2ce44b44d..3766dcaa9 100644 --- a/inc/class-orphaned-users-manager.php +++ b/inc/class-orphaned-users-manager.php @@ -63,17 +63,17 @@ public function register_settings_field(): void { 'other', 'cleanup_orphaned_users', [ - 'title' => __('Cleanup Orphaned User Accounts', 'multisite-ultimate'), - 'desc' => __('Remove user accounts that are not members of any site and are not super administrators.', 'multisite-ultimate'), + 'title' => __('Cleanup Orphaned User Accounts', 'ultimate-multisite'), + 'desc' => __('Remove user accounts that are not members of any site and are not super administrators.', 'ultimate-multisite'), 'type' => 'link', - 'display_value' => __('Check for Orphaned Users', 'multisite-ultimate'), + 'display_value' => __('Check for Orphaned Users', 'ultimate-multisite'), 'classes' => 'button button-secondary wu-ml-0 wubox', 'wrapper_html_attr' => [ 'style' => 'margin-bottom: 20px;', ], 'html_attr' => [ 'href' => wu_get_form_url('orphaned_users_delete'), - 'wu-tooltip' => __('Scan and cleanup user accounts with no site memberships', 'multisite-ultimate'), + 'wu-tooltip' => __('Scan and cleanup user accounts with no site memberships', 'ultimate-multisite'), ], ] ); @@ -96,8 +96,8 @@ public function render_orphaned_users_delete_modal(): void {

%s

%s

', - esc_html__('No Issues Found', 'multisite-ultimate'), - esc_html__('No orphaned user accounts found.', 'multisite-ultimate') + esc_html__('No Issues Found', 'ultimate-multisite'), + esc_html__('No orphaned user accounts found.', 'ultimate-multisite') ); return; } @@ -125,19 +125,19 @@ public function render_orphaned_users_delete_modal(): void { ', sprintf( /* translators: %d: number of orphaned users */ - esc_html(_n('Confirm Deletion of %d Orphaned User', 'Confirm Deletion of %d Orphaned Users', $user_count, 'multisite-ultimate')), + esc_html(_n('Confirm Deletion of %d Orphaned User', 'Confirm Deletion of %d Orphaned Users', $user_count, 'ultimate-multisite')), $user_count ), - esc_html__('You are about to permanently delete the following user accounts:', 'multisite-ultimate'), + esc_html__('You are about to permanently delete the following user accounts:', 'ultimate-multisite'), $user_list, - esc_html__('Warning:', 'multisite-ultimate'), - esc_html__('This action cannot be undone and will result in permanent data loss. Please ensure you have a complete database backup before proceeding.', 'multisite-ultimate') + esc_html__('Warning:', 'ultimate-multisite'), + esc_html__('This action cannot be undone and will result in permanent data loss. Please ensure you have a complete database backup before proceeding.', 'ultimate-multisite') ), 'wrapper_classes' => 'wu-w-full', ], 'submit' => [ 'type' => 'submit', - 'title' => __('Yes, Delete These Users', 'multisite-ultimate'), + 'title' => __('Yes, Delete These Users', 'ultimate-multisite'), 'value' => 'delete', 'classes' => 'button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -184,7 +184,7 @@ function ($user) { public function handle_orphaned_users_delete_modal(): void { if (! current_user_can('manage_network')) { - wp_die(esc_html__('You do not have the required permissions.', 'multisite-ultimate')); + wp_die(esc_html__('You do not have the required permissions.', 'ultimate-multisite')); } $start_time = microtime(true); @@ -192,7 +192,7 @@ public function handle_orphaned_users_delete_modal(): void { $orphaned_users = $this->find_orphaned_users(); if (empty($orphaned_users)) { - wp_send_json_error(['message' => __('No orphaned users found.', 'multisite-ultimate')]); + wp_send_json_error(['message' => __('No orphaned users found.', 'ultimate-multisite')]); } $deleted_count = $this->delete_orphaned_users($orphaned_users); @@ -215,7 +215,7 @@ public function handle_orphaned_users_delete_modal(): void { 'redirect_url' => $redirect_to, 'message' => sprintf( /* translators: %1$d: number of deleted users, %2$s: execution time */ - __('Successfully deleted %1$d orphaned users in %2$s seconds.', 'multisite-ultimate'), + __('Successfully deleted %1$d orphaned users in %2$s seconds.', 'ultimate-multisite'), $deleted_count, $execution_time ), diff --git a/inc/class-requirements.php b/inc/class-requirements.php index 90dc32715..eea49153f 100644 --- a/inc/class-requirements.php +++ b/inc/class-requirements.php @@ -327,7 +327,7 @@ public static function notice_unsupported_wp_version(): void { */ public static function notice_not_multisite(): void { - printf('', esc_html__('Multisite Ultimate requires a multisite install to run properly. To know more about WordPress Networks, visit this link:', 'multisite-ultimate'), esc_html__('Create a Network', 'multisite-ultimate')); + printf('', esc_html__('Multisite Ultimate requires a multisite install to run properly. To know more about WordPress Networks, visit this link:', 'ultimate-multisite'), esc_html__('Create a Network', 'ultimate-multisite')); } /** @@ -342,8 +342,8 @@ public static function notice_not_network_active(): void { '

%s

', sprintf( // translators: %s is a placeholder for the Network Admin plugins page URL with link text. - esc_html__('Multisite Ultimate needs to be network active to run properly. You can "Network Activate" it %s', 'multisite-ultimate'), - '' . esc_html__('here', 'multisite-ultimate') . '' + esc_html__('Multisite Ultimate needs to be network active to run properly. You can "Network Activate" it %s', 'ultimate-multisite'), + '' . esc_html__('here', 'ultimate-multisite') . '' ) ); } diff --git a/inc/class-scripts.php b/inc/class-scripts.php index 576cf1ac9..e4008922b 100644 --- a/inc/class-scripts.php +++ b/inc/class-scripts.php @@ -193,8 +193,8 @@ public function register_default_scripts(): void { 'wu_fields', [ 'l10n' => [ - 'image_picker_title' => __('Select an Image.', 'multisite-ultimate'), - 'image_picker_button_text' => __('Use this image', 'multisite-ultimate'), + 'image_picker_title' => __('Select an Image.', 'ultimate-multisite'), + 'image_picker_button_text' => __('Use this image', 'ultimate-multisite'), ], ] ); @@ -292,7 +292,7 @@ public function localize_moment() { 'LT' => $time_format, 'LTS' => str_replace(':i', ':i:s', (string) $time_format), /* translators: the day/month/year date format used by Multisite Ultimate. You can changed it to localize this date format to your language. the default value is d/m/Y, which is the format 31/12/2021. */ - 'L' => __('d/m/Y', 'multisite-ultimate'), + 'L' => __('d/m/Y', 'ultimate-multisite'), 'LL' => $date_format, 'LLL' => sprintf('%s %s', $date_format, $time_format), 'LLLL' => sprintf('%s %s', $date_format, $time_format), @@ -302,30 +302,30 @@ public function localize_moment() { $strings = [ 'relativeTime' => [ // translators: %s is a relative future date. - 'future' => __('in %s', 'multisite-ultimate'), + 'future' => __('in %s', 'ultimate-multisite'), // translators: %s is a relative past date. - 'past' => __('%s ago', 'multisite-ultimate'), - 's' => __('a few seconds', 'multisite-ultimate'), + 'past' => __('%s ago', 'ultimate-multisite'), + 's' => __('a few seconds', 'ultimate-multisite'), // translators: %s is the number of seconds. - 'ss' => __('%d seconds', 'multisite-ultimate'), - 'm' => __('a minute', 'multisite-ultimate'), + 'ss' => __('%d seconds', 'ultimate-multisite'), + 'm' => __('a minute', 'ultimate-multisite'), // translators: %s is the number of minutes. - 'mm' => __('%d minutes', 'multisite-ultimate'), - 'h' => __('an hour', 'multisite-ultimate'), + 'mm' => __('%d minutes', 'ultimate-multisite'), + 'h' => __('an hour', 'ultimate-multisite'), // translators: %s is the number of hours. - 'hh' => __('%d hours', 'multisite-ultimate'), - 'd' => __('a day', 'multisite-ultimate'), + 'hh' => __('%d hours', 'ultimate-multisite'), + 'd' => __('a day', 'ultimate-multisite'), // translators: %s is the number of days. - 'dd' => __('%d days', 'multisite-ultimate'), - 'w' => __('a week', 'multisite-ultimate'), + 'dd' => __('%d days', 'ultimate-multisite'), + 'w' => __('a week', 'ultimate-multisite'), // translators: %s is the number of weeks. - 'ww' => __('%d weeks', 'multisite-ultimate'), - 'M' => __('a month', 'multisite-ultimate'), + 'ww' => __('%d weeks', 'ultimate-multisite'), + 'M' => __('a month', 'ultimate-multisite'), // translators: %s is the number of months. - 'MM' => __('%d months', 'multisite-ultimate'), - 'y' => __('a year', 'multisite-ultimate'), + 'MM' => __('%d months', 'ultimate-multisite'), + 'y' => __('a year', 'ultimate-multisite'), // translators: %s is the number of years. - 'yy' => __('%d years', 'multisite-ultimate'), + 'yy' => __('%d years', 'ultimate-multisite'), ], 'longDateFormat' => $long_date_formats, ]; diff --git a/inc/class-settings.php b/inc/class-settings.php index 15452dbfc..e14742302 100644 --- a/inc/class-settings.php +++ b/inc/class-settings.php @@ -193,7 +193,7 @@ public function get_setting($setting, $default_value = false) { $settings = $this->get_all(); if (str_contains($setting, '-')) { - _doing_it_wrong(esc_html($setting), esc_html__('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(esc_html($setting), esc_html__('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'ultimate-multisite'), '2.0.0'); } $setting_value = $settings[ $setting ] ?? $default_value; @@ -417,7 +417,7 @@ function ($fields) use ($field_slug, $atts) { * We no longer support settings with hyphens. */ if (str_contains($field_slug, '-')) { - _doing_it_wrong(esc_html($field_slug), esc_html__('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(esc_html($field_slug), esc_html__('Dashes are no longer supported when registering a setting. You should change it to underscores in later versions.', 'ultimate-multisite'), '2.0.0'); } $default_order = (count($fields) + 1) * 10; @@ -539,8 +539,8 @@ public function default_sections(): void { $this->add_section( 'general', [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), ] ); @@ -548,8 +548,8 @@ public function default_sections(): void { 'general', 'company_header', [ - 'title' => __('Your Business', 'multisite-ultimate'), - 'desc' => __('General information about your business..', 'multisite-ultimate'), + 'title' => __('Your Business', 'ultimate-multisite'), + 'desc' => __('General information about your business..', 'ultimate-multisite'), 'type' => 'header', ], 10 @@ -559,8 +559,8 @@ public function default_sections(): void { 'general', 'company_name', [ - 'title' => __('Company Name', 'multisite-ultimate'), - 'desc' => __('This name is used when generating invoices, for example.', 'multisite-ultimate'), + 'title' => __('Company Name', 'ultimate-multisite'), + 'desc' => __('This name is used when generating invoices, for example.', 'ultimate-multisite'), 'type' => 'text', 'default' => get_network_option(null, 'site_name'), ], @@ -571,8 +571,8 @@ public function default_sections(): void { 'general', 'company_logo', [ - 'title' => __('Upload Company Logo', 'multisite-ultimate'), - 'desc' => __('Add your company logo to be used on the login page and other places.', 'multisite-ultimate'), + 'title' => __('Upload Company Logo', 'ultimate-multisite'), + 'desc' => __('Add your company logo to be used on the login page and other places.', 'ultimate-multisite'), 'type' => 'image', 'default' => '', ], @@ -583,8 +583,8 @@ public function default_sections(): void { 'general', 'company_email', [ - 'title' => __('Company Email Address', 'multisite-ultimate'), - 'desc' => __('This email is used when generating invoices, for example.', 'multisite-ultimate'), + 'title' => __('Company Email Address', 'ultimate-multisite'), + 'desc' => __('This email is used when generating invoices, for example.', 'ultimate-multisite'), 'type' => 'text', 'default' => get_network_option(null, 'admin_email'), ], @@ -595,8 +595,8 @@ public function default_sections(): void { 'general', 'company_address', [ - 'title' => __('Company Address', 'multisite-ultimate'), - 'desc' => __('This address is used when generating invoices.', 'multisite-ultimate'), + 'title' => __('Company Address', 'ultimate-multisite'), + 'desc' => __('This address is used when generating invoices.', 'ultimate-multisite'), 'type' => 'textarea', 'placeholder' => "350 Fifth Avenue\nManhattan, \nNew York City, NY \n10118", 'default' => '', @@ -611,8 +611,8 @@ public function default_sections(): void { 'general', 'company_country', [ - 'title' => __('Company Country', 'multisite-ultimate'), - 'desc' => __('This info is used when generating invoices, as well as for calculating when taxes apply in some contexts.', 'multisite-ultimate'), + 'title' => __('Company Country', 'ultimate-multisite'), + 'desc' => __('This info is used when generating invoices, as well as for calculating when taxes apply in some contexts.', 'ultimate-multisite'), 'type' => 'select', 'options' => 'wu_get_countries', 'default' => [$this, 'get_default_company_country'], @@ -624,8 +624,8 @@ public function default_sections(): void { 'general', 'currency_header', [ - 'title' => __('Currency Options', 'multisite-ultimate'), - 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'multisite-ultimate'), + 'title' => __('Currency Options', 'ultimate-multisite'), + 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'ultimate-multisite'), 'type' => 'header', ], 70 @@ -635,8 +635,8 @@ public function default_sections(): void { 'general', 'currency_symbol', [ - 'title' => __('Currency', 'multisite-ultimate'), - 'desc' => __('Select the currency to be used in Multisite Ultimate.', 'multisite-ultimate'), + 'title' => __('Currency', 'ultimate-multisite'), + 'desc' => __('Select the currency to be used in Multisite Ultimate.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'USD', 'options' => 'wu_get_currencies', @@ -648,15 +648,15 @@ public function default_sections(): void { 'general', 'currency_position', [ - 'title' => __('Currency Position', 'multisite-ultimate'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'multisite-ultimate'), + 'title' => __('Currency Position', 'ultimate-multisite'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'ultimate-multisite'), 'type' => 'select', 'default' => '%s %v', 'options' => [ - '%s%v' => __('Left ($99.99)', 'multisite-ultimate'), - '%v%s' => __('Right (99.99$)', 'multisite-ultimate'), - '%s %v' => __('Left with space ($ 99.99)', 'multisite-ultimate'), - '%v %s' => __('Right with space (99.99 $)', 'multisite-ultimate'), + '%s%v' => __('Left ($99.99)', 'ultimate-multisite'), + '%v%s' => __('Right (99.99$)', 'ultimate-multisite'), + '%s %v' => __('Left with space ($ 99.99)', 'ultimate-multisite'), + '%v %s' => __('Right with space (99.99 $)', 'ultimate-multisite'), ], ], 90 @@ -666,8 +666,8 @@ public function default_sections(): void { 'general', 'decimal_separator', [ - 'title' => __('Decimal Separator', 'multisite-ultimate'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'multisite-ultimate'), + 'title' => __('Decimal Separator', 'ultimate-multisite'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'ultimate-multisite'), 'type' => 'text', 'default' => '.', ], @@ -678,8 +678,8 @@ public function default_sections(): void { 'general', 'thousand_separator', [ - 'title' => __('Thousand Separator', 'multisite-ultimate'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'multisite-ultimate'), + 'title' => __('Thousand Separator', 'ultimate-multisite'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'ultimate-multisite'), 'type' => 'text', 'default' => ',', 'raw' => true, @@ -691,8 +691,8 @@ public function default_sections(): void { 'general', 'precision', [ - 'title' => __('Number of Decimals', 'multisite-ultimate'), - 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'multisite-ultimate'), + 'title' => __('Number of Decimals', 'ultimate-multisite'), + 'desc' => __('This setting affects all prices displayed across the plugin elements.', 'ultimate-multisite'), 'type' => 'number', 'default' => '2', 'min' => 0, @@ -708,8 +708,8 @@ public function default_sections(): void { $this->add_section( 'login-and-registration', [ - 'title' => __('Login & Registration', 'multisite-ultimate'), - 'desc' => __('Login & Registration', 'multisite-ultimate'), + 'title' => __('Login & Registration', 'ultimate-multisite'), + 'desc' => __('Login & Registration', 'ultimate-multisite'), 'icon' => 'dashicons-wu-key', ] ); @@ -718,8 +718,8 @@ public function default_sections(): void { 'login-and-registration', 'registration_header', [ - 'title' => __('Login and Registration Options', 'multisite-ultimate'), - 'desc' => __('Options related to registration and login behavior.', 'multisite-ultimate'), + 'title' => __('Login and Registration Options', 'ultimate-multisite'), + 'desc' => __('Options related to registration and login behavior.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -728,8 +728,8 @@ public function default_sections(): void { 'login-and-registration', 'enable_registration', [ - 'title' => __('Enable Registration', 'multisite-ultimate'), - 'desc' => __('Turning this toggle off will disable registration in all checkout forms across the network.', 'multisite-ultimate'), + 'title' => __('Enable Registration', 'ultimate-multisite'), + 'desc' => __('Turning this toggle off will disable registration in all checkout forms across the network.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -739,13 +739,13 @@ public function default_sections(): void { 'login-and-registration', 'enable_email_verification', [ - 'title' => __('Email verification', 'multisite-ultimate'), - 'desc' => __('Controls if email verification is required during registration. If set, sites will not be created until the customer email verification status is changed to verified.', 'multisite-ultimate'), + 'title' => __('Email verification', 'ultimate-multisite'), + 'desc' => __('Controls if email verification is required during registration. If set, sites will not be created until the customer email verification status is changed to verified.', 'ultimate-multisite'), 'type' => 'select', 'options' => [ - 'never' => __('Never require email verification', 'multisite-ultimate'), - 'free_only' => __('Only for free plans', 'multisite-ultimate'), - 'always' => __('Always require email verification', 'multisite-ultimate'), + 'never' => __('Never require email verification', 'ultimate-multisite'), + 'free_only' => __('Only for free plans', 'ultimate-multisite'), + 'always' => __('Always require email verification', 'ultimate-multisite'), ], 'default' => 'free_only', 'value' => function () { @@ -766,9 +766,9 @@ public function default_sections(): void { 'default_registration_page', [ 'type' => 'model', - 'title' => __('Default Registration Page', 'multisite-ultimate'), - 'placeholder' => __('Search pages on the main site...', 'multisite-ultimate'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'multisite-ultimate'), + 'title' => __('Default Registration Page', 'ultimate-multisite'), + 'placeholder' => __('Search pages on the main site...', 'ultimate-multisite'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -786,8 +786,8 @@ public function default_sections(): void { 'login-and-registration', 'enable_custom_login_page', [ - 'title' => __('Use Custom Login Page', 'multisite-ultimate'), - 'desc' => __('Turn this toggle on to select a custom page to be used as the login page.', 'multisite-ultimate'), + 'title' => __('Use Custom Login Page', 'ultimate-multisite'), + 'desc' => __('Turn this toggle on to select a custom page to be used as the login page.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -798,9 +798,9 @@ public function default_sections(): void { 'default_login_page', [ 'type' => 'model', - 'title' => __('Default Login Page', 'multisite-ultimate'), - 'placeholder' => __('Search pages on the main site...', 'multisite-ultimate'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_login_form] shortcode.', 'multisite-ultimate'), + 'title' => __('Default Login Page', 'ultimate-multisite'), + 'placeholder' => __('Search pages on the main site...', 'ultimate-multisite'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_login_form] shortcode.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -820,8 +820,8 @@ public function default_sections(): void { 'login-and-registration', 'obfuscate_original_login_url', [ - 'title' => __('Obfuscate the Original Login URL (wp-login.php)', 'multisite-ultimate'), - 'desc' => __('If this option is enabled, we will display a 404 error when a user tries to access the original wp-login.php link. This is useful to prevent brute-force attacks.', 'multisite-ultimate'), + 'title' => __('Obfuscate the Original Login URL (wp-login.php)', 'ultimate-multisite'), + 'desc' => __('If this option is enabled, we will display a 404 error when a user tries to access the original wp-login.php link. This is useful to prevent brute-force attacks.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -834,8 +834,8 @@ public function default_sections(): void { 'login-and-registration', 'subsite_custom_login_logo', [ - 'title' => __('Use Sub-site logo on Login Page', 'multisite-ultimate'), - 'desc' => __('Toggle this option to replace the WordPress logo on the sub-site login page with the logo set for that sub-site. If unchecked, the network logo will be used instead.', 'multisite-ultimate'), + 'title' => __('Use Sub-site logo on Login Page', 'ultimate-multisite'), + 'desc' => __('Toggle this option to replace the WordPress logo on the sub-site login page with the logo set for that sub-site. If unchecked, the network logo will be used instead.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -848,8 +848,8 @@ public function default_sections(): void { 'login-and-registration', 'force_publish_sites_sync', [ - 'title' => __('Force Synchronous Site Publication ', 'multisite-ultimate'), - 'desc' => __('By default, when a new pending site needs to be converted into a real network site, the publishing process happens via Job Queue, asynchronously. Enable this option to force the publication to happen in the same request as the signup. Be careful, as this can cause timeouts depending on the size of the site templates being copied.', 'multisite-ultimate'), + 'title' => __('Force Synchronous Site Publication ', 'ultimate-multisite'), + 'desc' => __('By default, when a new pending site needs to be converted into a real network site, the publishing process happens via Job Queue, asynchronously. Enable this option to force the publication to happen in the same request as the signup. Be careful, as this can cause timeouts depending on the size of the site templates being copied.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -859,8 +859,8 @@ public function default_sections(): void { 'login-and-registration', 'other_header', [ - 'title' => __('Other Options', 'multisite-ultimate'), - 'desc' => __('Other registration-related options.', 'multisite-ultimate'), + 'title' => __('Other Options', 'ultimate-multisite'), + 'desc' => __('Other registration-related options.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -869,8 +869,8 @@ public function default_sections(): void { 'login-and-registration', 'default_role', [ - 'title' => __('Default Role', 'multisite-ultimate'), - 'desc' => __('Set the role to be applied to the user during the signup process.', 'multisite-ultimate'), + 'title' => __('Default Role', 'ultimate-multisite'), + 'desc' => __('Set the role to be applied to the user during the signup process.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'administrator', 'options' => 'wu_get_roles_as_options', @@ -881,8 +881,8 @@ public function default_sections(): void { 'login-and-registration', 'add_users_to_main_site', [ - 'title' => __('Add Users to the Main Site as well?', 'multisite-ultimate'), - 'desc' => __('Enabling this option will also add the user to the main site of your network.', 'multisite-ultimate'), + 'title' => __('Add Users to the Main Site as well?', 'ultimate-multisite'), + 'desc' => __('Enabling this option will also add the user to the main site of your network.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -892,8 +892,8 @@ public function default_sections(): void { 'login-and-registration', 'main_site_default_role', [ - 'title' => __('Add to Main Site with Role...', 'multisite-ultimate'), - 'desc' => __('Select the role Multisite Ultimate should use when adding the user to the main site of your network. Be careful.', 'multisite-ultimate'), + 'title' => __('Add to Main Site with Role...', 'ultimate-multisite'), + 'desc' => __('Select the role Multisite Ultimate should use when adding the user to the main site of your network. Be careful.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'subscriber', 'options' => 'wu_get_roles_as_options', @@ -913,8 +913,8 @@ public function default_sections(): void { $this->add_section( 'memberships', [ - 'title' => __('Memberships', 'multisite-ultimate'), - 'desc' => __('Memberships', 'multisite-ultimate'), + 'title' => __('Memberships', 'ultimate-multisite'), + 'desc' => __('Memberships', 'ultimate-multisite'), 'icon' => 'dashicons-wu-infinity', ] ); @@ -924,9 +924,9 @@ public function default_sections(): void { 'default_update_page', [ 'type' => 'model', - 'title' => __('Default Membership Update Page', 'multisite-ultimate'), - 'placeholder' => __('Search pages on the main site...', 'multisite-ultimate'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'multisite-ultimate'), + 'title' => __('Default Membership Update Page', 'ultimate-multisite'), + 'placeholder' => __('Search pages on the main site...', 'ultimate-multisite'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -944,9 +944,9 @@ public function default_sections(): void { 'memberships', 'block_frontend', [ - 'title' => __('Block Frontend Access', 'multisite-ultimate'), - 'desc' => __('Block the frontend access of network sites after a membership is no longer active.', 'multisite-ultimate'), - 'tooltip' => __('By default, if a user does not pay and the account goes inactive, only the admin panel will be blocked, but the user\'s site will still be accessible on the frontend. If enabled, this option will also block frontend access in those cases.', 'multisite-ultimate'), + 'title' => __('Block Frontend Access', 'ultimate-multisite'), + 'desc' => __('Block the frontend access of network sites after a membership is no longer active.', 'ultimate-multisite'), + 'tooltip' => __('By default, if a user does not pay and the account goes inactive, only the admin panel will be blocked, but the user\'s site will still be accessible on the frontend. If enabled, this option will also block frontend access in those cases.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -956,8 +956,8 @@ public function default_sections(): void { 'memberships', 'block_frontend_grace_period', [ - 'title' => __('Frontend Block Grace Period', 'multisite-ultimate'), - 'desc' => __('Select the number of days Multisite Ultimate should wait after the membership goes inactive before blocking the frontend access. Leave 0 to block immediately after the membership becomes inactive.', 'multisite-ultimate'), + 'title' => __('Frontend Block Grace Period', 'ultimate-multisite'), + 'desc' => __('Select the number of days Multisite Ultimate should wait after the membership goes inactive before blocking the frontend access. Leave 0 to block immediately after the membership becomes inactive.', 'ultimate-multisite'), 'type' => 'number', 'default' => 0, 'min' => 0, @@ -971,8 +971,8 @@ public function default_sections(): void { 'memberships', 'default_block_frontend_page', [ - 'title' => __('Frontend Block Page', 'multisite-ultimate'), - 'desc' => __('Select a page on the main site to redirect user if access is blocked', 'multisite-ultimate'), + 'title' => __('Frontend Block Page', 'ultimate-multisite'), + 'desc' => __('Select a page on the main site to redirect user if access is blocked', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -992,8 +992,8 @@ public function default_sections(): void { 'memberships', 'enable_multiple_memberships', [ - 'title' => __('Enable Multiple Memberships per Customer', 'multisite-ultimate'), - 'desc' => __('Enabling this option will allow your users to create more than one membership.', 'multisite-ultimate'), + 'title' => __('Enable Multiple Memberships per Customer', 'ultimate-multisite'), + 'desc' => __('Enabling this option will allow your users to create more than one membership.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -1003,8 +1003,8 @@ public function default_sections(): void { 'memberships', 'enable_multiple_sites', [ - 'title' => __('Enable Multiple Sites per Membership', 'multisite-ultimate'), - 'desc' => __('Enabling this option will allow your customers to create more than one site. You can limit how many sites your users can create in a per plan basis.', 'multisite-ultimate'), + 'title' => __('Enable Multiple Sites per Membership', 'ultimate-multisite'), + 'desc' => __('Enabling this option will allow your customers to create more than one site. You can limit how many sites your users can create in a per plan basis.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -1014,15 +1014,15 @@ public function default_sections(): void { 'memberships', 'block_sites_on_downgrade', [ - 'title' => __('Block Sites on Downgrade', 'multisite-ultimate'), - 'desc' => __('Choose how Multisite Ultimate should handle client sites above their plan quota on downgrade.', 'multisite-ultimate'), + 'title' => __('Block Sites on Downgrade', 'ultimate-multisite'), + 'desc' => __('Choose how Multisite Ultimate should handle client sites above their plan quota on downgrade.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'none', 'options' => [ - 'none' => __('Keep sites as is (do nothing)', 'multisite-ultimate'), - 'block-frontend' => __('Block only frontend access', 'multisite-ultimate'), - 'block-backend' => __('Block only backend access', 'multisite-ultimate'), - 'block-both' => __('Block both frontend and backend access', 'multisite-ultimate'), + 'none' => __('Keep sites as is (do nothing)', 'ultimate-multisite'), + 'block-frontend' => __('Block only frontend access', 'ultimate-multisite'), + 'block-backend' => __('Block only backend access', 'ultimate-multisite'), + 'block-both' => __('Block both frontend and backend access', 'ultimate-multisite'), ], 'require' => [ 'enable_multiple_sites' => true, @@ -1034,14 +1034,14 @@ public function default_sections(): void { 'memberships', 'move_posts_on_downgrade', [ - 'title' => __('Move Posts on Downgrade', 'multisite-ultimate'), - 'desc' => __('Select how you want to handle the posts above the quota on downgrade. This will apply to all post types with quotas set.', 'multisite-ultimate'), + 'title' => __('Move Posts on Downgrade', 'ultimate-multisite'), + 'desc' => __('Select how you want to handle the posts above the quota on downgrade. This will apply to all post types with quotas set.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'none', 'options' => [ - 'none' => __('Keep posts as is (do nothing)', 'multisite-ultimate'), - 'trash' => __('Move posts above the new quota to the Trash', 'multisite-ultimate'), - 'draft' => __('Mark posts above the new quota as Drafts', 'multisite-ultimate'), + 'none' => __('Keep posts as is (do nothing)', 'ultimate-multisite'), + 'trash' => __('Move posts above the new quota to the Trash', 'ultimate-multisite'), + 'draft' => __('Mark posts above the new quota as Drafts', 'ultimate-multisite'), ], ] ); @@ -1051,8 +1051,8 @@ public function default_sections(): void { 'emulated_post_types_header', [ 'type' => 'header', - 'title' => __('Emulated Post Types', 'multisite-ultimate'), - 'desc' => __('Emulates the registering of a custom post type to be able to create limits for it without having to activate plugins on the main site.', 'multisite-ultimate'), + 'title' => __('Emulated Post Types', 'ultimate-multisite'), + 'desc' => __('Emulates the registering of a custom post type to be able to create limits for it without having to activate plugins on the main site.', 'ultimate-multisite'), ] ); @@ -1061,7 +1061,7 @@ public function default_sections(): void { 'emulated_post_types_explanation', [ 'type' => 'note', - 'desc' => __('By default, Multisite Ultimate only allows super admins to limit post types that are registered on the main site. This makes sense from a technical stand-point but it also forces you to have plugins network-activated in order to be able to set limitations for their custom post types. Using this option, you can emulate the registering of a post type. This will register them on the main site and allow you to create limits for them on your products.', 'multisite-ultimate'), + 'desc' => __('By default, Multisite Ultimate only allows super admins to limit post types that are registered on the main site. This makes sense from a technical stand-point but it also forces you to have plugins network-activated in order to be able to set limitations for their custom post types. Using this option, you can emulate the registering of a post type. This will register them on the main site and allow you to create limits for them on your products.', 'ultimate-multisite'), 'classes' => '', 'wrapper_classes' => '', ] @@ -1072,7 +1072,7 @@ public function default_sections(): void { 'emulated_post_types_empty', [ 'type' => 'note', - 'desc' => __('Add the first post type using the button below.', 'multisite-ultimate'), + 'desc' => __('Add the first post type using the button below.', 'ultimate-multisite'), 'classes' => 'wu-text-gray-600 wu-text-xs wu-text-center wu-w-full', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ @@ -1099,13 +1099,13 @@ public function default_sections(): void { 'fields' => [ 'emulated_post_types_remove' => [ 'type' => 'note', - 'desc' => sprintf('', __('Remove', 'multisite-ultimate')), + 'desc' => sprintf('', __('Remove', 'ultimate-multisite')), 'wrapper_classes' => 'wu-absolute wu-top-0 wu-right-0', ], 'emulated_post_types_slug' => [ 'type' => 'text', - 'title' => __('Post Type Slug', 'multisite-ultimate'), - 'placeholder' => __('e.g. product', 'multisite-ultimate'), + 'title' => __('Post Type Slug', 'ultimate-multisite'), + 'placeholder' => __('e.g. product', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-5/12', 'html_attr' => [ 'v-model' => 'emulated_post_type.post_type', @@ -1114,8 +1114,8 @@ public function default_sections(): void { ], 'emulated_post_types_label' => [ 'type' => 'text', - 'title' => __('Post Type Label', 'multisite-ultimate'), - 'placeholder' => __('e.g. Products', 'multisite-ultimate'), + 'title' => __('Post Type Label', 'ultimate-multisite'), + 'placeholder' => __('e.g. Products', 'ultimate-multisite'), 'wrapper_classes' => 'wu-w-7/12 wu-ml-2', 'html_attr' => [ 'v-model' => 'emulated_post_type.label', @@ -1131,7 +1131,7 @@ public function default_sections(): void { 'emulated_post_types_repeat', [ 'type' => 'submit', - 'title' => __('+ Add Post Type', 'multisite-ultimate'), + 'title' => __('+ Add Post Type', 'ultimate-multisite'), 'classes' => 'wu-uppercase wu-text-2xs wu-text-blue-700 wu-border-none wu-bg-transparent wu-font-bold wu-text-right wu-w-full wu-cursor-pointer', 'wrapper_classes' => 'wu-bg-gray-100 wu-items-end', 'wrapper_html_attr' => [ @@ -1158,8 +1158,8 @@ public function default_sections(): void { $this->add_section( 'sites', [ - 'title' => __('Sites', 'multisite-ultimate'), - 'desc' => __('Sites', 'multisite-ultimate'), + 'title' => __('Sites', 'ultimate-multisite'), + 'desc' => __('Sites', 'ultimate-multisite'), 'icon' => 'dashicons-wu-browser', ] ); @@ -1168,8 +1168,8 @@ public function default_sections(): void { 'sites', 'sites_features_heading', [ - 'title' => __('Site Options', 'multisite-ultimate'), - 'desc' => __('Configure certain aspects of how network Sites behave.', 'multisite-ultimate'), + 'title' => __('Site Options', 'ultimate-multisite'), + 'desc' => __('Configure certain aspects of how network Sites behave.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -1179,9 +1179,9 @@ public function default_sections(): void { 'default_new_site_page', [ 'type' => 'model', - 'title' => __('Default New Site Page', 'multisite-ultimate'), - 'placeholder' => __('Search pages on the main site...', 'multisite-ultimate'), - 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'multisite-ultimate'), + 'title' => __('Default New Site Page', 'ultimate-multisite'), + 'placeholder' => __('Search pages on the main site...', 'ultimate-multisite'), + 'desc' => __('Only published pages on the main site are available for selection, and you need to make sure they contain a [wu_checkout] shortcode.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'data-base-link' => get_admin_url(wu_get_main_site_id(), 'post.php?action=edit&post'), @@ -1199,8 +1199,8 @@ public function default_sections(): void { 'sites', 'enable_visits_limiting', [ - 'title' => __('Enable Visits Limitation & Counting', 'multisite-ultimate'), - 'desc' => __('Enabling this option will add visits limitation settings to the plans and add the functionality necessary to count site visits on the front-end.', 'multisite-ultimate'), + 'title' => __('Enable Visits Limitation & Counting', 'ultimate-multisite'), + 'desc' => __('Enabling this option will add visits limitation settings to the plans and add the functionality necessary to count site visits on the front-end.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1210,8 +1210,8 @@ public function default_sections(): void { 'sites', 'enable_screenshot_generator', [ - 'title' => __('Enable Screenshot Generator', 'multisite-ultimate'), - 'desc' => __('With this option is enabled, Multisite Ultimate will take a screenshot for every newly created site on your network and set the resulting image as that site\'s featured image. This features requires a valid license key to work and it is not supported for local sites.', 'multisite-ultimate'), + 'title' => __('Enable Screenshot Generator', 'ultimate-multisite'), + 'desc' => __('With this option is enabled, Multisite Ultimate will take a screenshot for every newly created site on your network and set the resulting image as that site\'s featured image. This features requires a valid license key to work and it is not supported for local sites.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1221,8 +1221,8 @@ public function default_sections(): void { 'sites', 'wordpress_features_heading', [ - 'title' => __('WordPress Features', 'multisite-ultimate'), - 'desc' => __('Override default WordPress settings for network Sites.', 'multisite-ultimate'), + 'title' => __('WordPress Features', 'ultimate-multisite'), + 'desc' => __('Override default WordPress settings for network Sites.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -1231,9 +1231,9 @@ public function default_sections(): void { 'sites', 'menu_items_plugin', [ - 'title' => __('Enable Plugins Menu', 'multisite-ultimate'), - 'desc' => __('Do you want to let users on the network to have access to the Plugins page, activating plugins for their sites? If this option is disabled, the customer will not be able to manage the site plugins.', 'multisite-ultimate'), - 'tooltip' => __('You can select which plugins the user will be able to use for each plan.', 'multisite-ultimate'), + 'title' => __('Enable Plugins Menu', 'ultimate-multisite'), + 'desc' => __('Do you want to let users on the network to have access to the Plugins page, activating plugins for their sites? If this option is disabled, the customer will not be able to manage the site plugins.', 'ultimate-multisite'), + 'tooltip' => __('You can select which plugins the user will be able to use for each plan.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1243,9 +1243,9 @@ public function default_sections(): void { 'sites', 'add_new_users', [ - 'title' => __('Add New Users', 'multisite-ultimate'), - 'desc' => __('Allow site administrators to add new users to their site via the "Users → Add New" page.', 'multisite-ultimate'), - 'tooltip' => __('You can limit the number of users allowed for each plan.', 'multisite-ultimate'), + 'title' => __('Add New Users', 'ultimate-multisite'), + 'desc' => __('Allow site administrators to add new users to their site via the "Users → Add New" page.', 'ultimate-multisite'), + 'tooltip' => __('You can limit the number of users allowed for each plan.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1255,8 +1255,8 @@ public function default_sections(): void { 'sites', 'site_template_features_heading', [ - 'title' => __('Site Template Options', 'multisite-ultimate'), - 'desc' => __('Configure certain aspects of how Site Templates behave.', 'multisite-ultimate'), + 'title' => __('Site Template Options', 'ultimate-multisite'), + 'desc' => __('Configure certain aspects of how Site Templates behave.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -1265,8 +1265,8 @@ public function default_sections(): void { 'sites', 'allow_template_switching', [ - 'title' => __('Allow Template Switching', 'multisite-ultimate'), - 'desc' => __("Enabling this option will add an option on your client's dashboard to switch their site template to another one available on the catalog of available templates. The data is lost after a switch as the data from the new template is copied over.", 'multisite-ultimate'), + 'title' => __('Allow Template Switching', 'ultimate-multisite'), + 'desc' => __("Enabling this option will add an option on your client's dashboard to switch their site template to another one available on the catalog of available templates. The data is lost after a switch as the data from the new template is copied over.", 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1276,8 +1276,8 @@ public function default_sections(): void { 'sites', 'allow_own_site_as_template', [ - 'title' => __('Allow Users to use their own Sites as Templates', 'multisite-ultimate'), - 'desc' => __('Enabling this option will add the user own sites to the template screen, allowing them to create a new site based on the content and customizations they made previously.', 'multisite-ultimate'), + 'title' => __('Allow Users to use their own Sites as Templates', 'ultimate-multisite'), + 'desc' => __('Enabling this option will add the user own sites to the template screen, allowing them to create a new site based on the content and customizations they made previously.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -1290,8 +1290,8 @@ public function default_sections(): void { 'sites', 'copy_media', [ - 'title' => __('Copy Media on Template Duplication?', 'multisite-ultimate'), - 'desc' => __('Checking this option will copy the media uploaded on the template site to the newly created site. This can be overridden on each of the plans.', 'multisite-ultimate'), + 'title' => __('Copy Media on Template Duplication?', 'ultimate-multisite'), + 'desc' => __('Checking this option will copy the media uploaded on the template site to the newly created site. This can be overridden on each of the plans.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1301,8 +1301,8 @@ public function default_sections(): void { 'sites', 'stop_template_indexing', [ - 'title' => __('Prevent Search Engines from indexing Site Templates', 'multisite-ultimate'), - 'desc' => __('Checking this option will discourage search engines from indexing all the Site Templates on your network.', 'multisite-ultimate'), + 'title' => __('Prevent Search Engines from indexing Site Templates', 'ultimate-multisite'), + 'desc' => __('Checking this option will discourage search engines from indexing all the Site Templates on your network.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -1318,8 +1318,8 @@ public function default_sections(): void { $this->add_section( 'payment-gateways', [ - 'title' => __('Payments', 'multisite-ultimate'), - 'desc' => __('Payments', 'multisite-ultimate'), + 'title' => __('Payments', 'ultimate-multisite'), + 'desc' => __('Payments', 'ultimate-multisite'), 'icon' => 'dashicons-wu-credit-card', ] ); @@ -1328,8 +1328,8 @@ public function default_sections(): void { 'payment-gateways', 'main_header', [ - 'title' => __('Payment Settings', 'multisite-ultimate'), - 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'multisite-ultimate'), + 'title' => __('Payment Settings', 'ultimate-multisite'), + 'desc' => __('The following options affect how prices are displayed on the frontend, the backend and in reports.', 'ultimate-multisite'), 'type' => 'header', 'show_as_submenu' => true, ] @@ -1339,8 +1339,8 @@ public function default_sections(): void { 'payment-gateways', 'force_auto_renew', [ - 'title' => __('Force Auto-Renew', 'multisite-ultimate'), - 'desc' => __('Enable this option if you want to make sure memberships are created with auto-renew activated whenever the selected gateway supports it. Disabling this option will show an auto-renew option during checkout.', 'multisite-ultimate'), + 'title' => __('Force Auto-Renew', 'ultimate-multisite'), + 'desc' => __('Enable this option if you want to make sure memberships are created with auto-renew activated whenever the selected gateway supports it. Disabling this option will show an auto-renew option during checkout.', 'ultimate-multisite'), 'tooltip' => '', 'type' => 'toggle', 'default' => 1, @@ -1351,8 +1351,8 @@ public function default_sections(): void { 'payment-gateways', 'allow_trial_without_payment_method', [ - 'title' => __('Allow Trials without Payment Method', 'multisite-ultimate'), - 'desc' => __('By default, Multisite Ultimate asks customers to add a payment method on sign-up even if a trial period is present. Enable this option to only ask for a payment method when the trial period is over.', 'multisite-ultimate'), + 'title' => __('Allow Trials without Payment Method', 'ultimate-multisite'), + 'desc' => __('By default, Multisite Ultimate asks customers to add a payment method on sign-up even if a trial period is present. Enable this option to only ask for a payment method when the trial period is over.', 'ultimate-multisite'), 'tooltip' => '', 'type' => 'toggle', 'default' => 0, @@ -1363,9 +1363,9 @@ public function default_sections(): void { 'payment-gateways', 'attach_invoice_pdf', [ - 'title' => __('Send Invoice on Payment Confirmation', 'multisite-ultimate'), - 'desc' => __('Enabling this option will attach a PDF invoice (marked paid) with the payment confirmation email. This option does not apply to the Manual Gateway, which sends invoices regardless of this option.', 'multisite-ultimate'), - 'tooltip' => __('The invoice files will be saved on the wp-content/uploads/wu-invoices folder.', 'multisite-ultimate'), + 'title' => __('Send Invoice on Payment Confirmation', 'ultimate-multisite'), + 'desc' => __('Enabling this option will attach a PDF invoice (marked paid) with the payment confirmation email. This option does not apply to the Manual Gateway, which sends invoices regardless of this option.', 'ultimate-multisite'), + 'tooltip' => __('The invoice files will be saved on the wp-content/uploads/wu-invoices folder.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1375,14 +1375,14 @@ public function default_sections(): void { 'payment-gateways', 'invoice_numbering_scheme', [ - 'title' => __('Invoice Numbering Scheme', 'multisite-ultimate'), - 'desc' => __('What should Multisite Ultimate use as the invoice number?', 'multisite-ultimate'), + 'title' => __('Invoice Numbering Scheme', 'ultimate-multisite'), + 'desc' => __('What should Multisite Ultimate use as the invoice number?', 'ultimate-multisite'), 'type' => 'select', 'default' => 'reference_code', 'tooltip' => '', 'options' => [ - 'reference_code' => __('Payment Reference Code', 'multisite-ultimate'), - 'sequential_number' => __('Sequential Number', 'multisite-ultimate'), + 'reference_code' => __('Payment Reference Code', 'ultimate-multisite'), + 'sequential_number' => __('Sequential Number', 'ultimate-multisite'), ], ] ); @@ -1391,8 +1391,8 @@ public function default_sections(): void { 'payment-gateways', 'next_invoice_number', [ - 'title' => __('Next Invoice Number', 'multisite-ultimate'), - 'desc' => __('This number will be used as the invoice number for the next invoice generated on the system. It is incremented by one every time a new invoice is created. You can change it and save it to reset the invoice sequential number to a specific value.', 'multisite-ultimate'), + 'title' => __('Next Invoice Number', 'ultimate-multisite'), + 'desc' => __('This number will be used as the invoice number for the next invoice generated on the system. It is incremented by one every time a new invoice is created. You can change it and save it to reset the invoice sequential number to a specific value.', 'ultimate-multisite'), 'type' => 'number', 'default' => '1', 'min' => 0, @@ -1406,10 +1406,10 @@ public function default_sections(): void { 'payment-gateways', 'invoice_prefix', [ - 'title' => __('Invoice Number Prefix', 'multisite-ultimate'), - 'placeholder' => __('INV00', 'multisite-ultimate'), + 'title' => __('Invoice Number Prefix', 'ultimate-multisite'), + 'placeholder' => __('INV00', 'ultimate-multisite'), // translators: %%YEAR%%, %%MONTH%%, and %%DAY%% are placeholders but are replaced before shown to the user but are used as examples. - 'desc' => sprintf(__('Use %%YEAR%%, %%MONTH%%, and %%DAY%% to create a dynamic placeholder. E.g. %%YEAR%%-%%MONTH%%-INV will become %s.', 'multisite-ultimate'), gmdate('Y') . '-' . gmdate('m') . '-INV'), + 'desc' => sprintf(__('Use %%YEAR%%, %%MONTH%%, and %%DAY%% to create a dynamic placeholder. E.g. %%YEAR%%-%%MONTH%%-INV will become %s.', 'ultimate-multisite'), gmdate('Y') . '-' . gmdate('m') . '-INV'), 'default' => '', 'type' => 'text', 'raw' => true, // Necessary to prevent the removal of the %% tags. @@ -1423,8 +1423,8 @@ public function default_sections(): void { 'payment-gateways', 'gateways_header', [ - 'title' => __('Payment Gateways', 'multisite-ultimate'), - 'desc' => __('Activate and configure the installed payment gateways in this section.', 'multisite-ultimate'), + 'title' => __('Payment Gateways', 'ultimate-multisite'), + 'desc' => __('Activate and configure the installed payment gateways in this section.', 'ultimate-multisite'), 'type' => 'header', 'show_as_submenu' => true, ] @@ -1439,8 +1439,8 @@ public function default_sections(): void { $this->add_section( 'emails', [ - 'title' => __('Emails', 'multisite-ultimate'), - 'desc' => __('Emails', 'multisite-ultimate'), + 'title' => __('Emails', 'ultimate-multisite'), + 'desc' => __('Emails', 'ultimate-multisite'), 'icon' => 'dashicons-wu-email', ] ); @@ -1455,8 +1455,8 @@ public function default_sections(): void { $this->add_section( 'domain-mapping', [ - 'title' => __('Domain Mapping', 'multisite-ultimate'), - 'desc' => __('Domain Mapping', 'multisite-ultimate'), + 'title' => __('Domain Mapping', 'ultimate-multisite'), + 'desc' => __('Domain Mapping', 'ultimate-multisite'), 'icon' => 'dashicons-wu-link', ] ); @@ -1471,8 +1471,8 @@ public function default_sections(): void { $this->add_section( 'sso', [ - 'title' => __('Single Sign-On', 'multisite-ultimate'), - 'desc' => __('Single Sign-On', 'multisite-ultimate'), + 'title' => __('Single Sign-On', 'ultimate-multisite'), + 'desc' => __('Single Sign-On', 'ultimate-multisite'), 'icon' => 'dashicons-wu-add-user', ] ); @@ -1487,8 +1487,8 @@ public function default_sections(): void { $this->add_section( 'integrations', [ - 'title' => __('Integrations', 'multisite-ultimate'), - 'desc' => __('Integrations', 'multisite-ultimate'), + 'title' => __('Integrations', 'ultimate-multisite'), + 'desc' => __('Integrations', 'ultimate-multisite'), 'icon' => 'dashicons-wu-power-plug', ] ); @@ -1497,8 +1497,8 @@ public function default_sections(): void { 'integrations', 'hosting_providers_header', [ - 'title' => __('Hosting or Panel Providers', 'multisite-ultimate'), - 'desc' => __('Configure and manage the integration with your Hosting or Panel Provider.', 'multisite-ultimate'), + 'title' => __('Hosting or Panel Providers', 'ultimate-multisite'), + 'desc' => __('Configure and manage the integration with your Hosting or Panel Provider.', 'ultimate-multisite'), 'type' => 'header', 'show_as_submenu' => true, ] @@ -1514,8 +1514,8 @@ public function default_sections(): void { $this->add_section( 'other', [ - 'title' => __('Other Options', 'multisite-ultimate'), - 'desc' => __('Other Options', 'multisite-ultimate'), + 'title' => __('Other Options', 'ultimate-multisite'), + 'desc' => __('Other Options', 'ultimate-multisite'), 'icon' => 'dashicons-wu-switch', 'order' => 1000, ] @@ -1525,8 +1525,8 @@ public function default_sections(): void { 'other', 'Other_header', [ - 'title' => __('Miscellaneous', 'multisite-ultimate'), - 'desc' => __('Other options that do not fit anywhere else.', 'multisite-ultimate'), + 'title' => __('Miscellaneous', 'ultimate-multisite'), + 'desc' => __('Other options that do not fit anywhere else.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -1537,8 +1537,8 @@ public function default_sections(): void { 'other', 'hide_tours', [ - 'title' => __('Hide UI Tours', 'multisite-ultimate') . $preview_image, - 'desc' => __('The UI tours showed by Multisite Ultimate should permanently hide themselves after being seen but if they persist for whatever reason, toggle this option to force them into their viewed state - which will prevent them from showing up again.', 'multisite-ultimate'), + 'title' => __('Hide UI Tours', 'ultimate-multisite') . $preview_image, + 'desc' => __('The UI tours showed by Multisite Ultimate should permanently hide themselves after being seen but if they persist for whatever reason, toggle this option to force them into their viewed state - which will prevent them from showing up again.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -1550,8 +1550,8 @@ public function default_sections(): void { 'other', 'disable_image_zoom', [ - 'title' => __('Disable "Hover to Zoom"', 'multisite-ultimate') . $preview_image_2, - 'desc' => __('By default, Multisite Ultimate adds a "hover to zoom" feature, allowing network admins to see larger version of site screenshots and other images across the UI in full-size when hovering over them. You can disable that feature here. Preview tags like the above are not affected.', 'multisite-ultimate'), + 'title' => __('Disable "Hover to Zoom"', 'ultimate-multisite') . $preview_image_2, + 'desc' => __('By default, Multisite Ultimate adds a "hover to zoom" feature, allowing network admins to see larger version of site screenshots and other images across the UI in full-size when hovering over them. You can disable that feature here. Preview tags like the above are not affected.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -1561,8 +1561,8 @@ public function default_sections(): void { 'other', 'error_reporting_header', [ - 'title' => __('Logging', 'multisite-ultimate'), - 'desc' => __('Log Multisite Ultimate data. This is useful for debugging purposes.', 'multisite-ultimate'), + 'title' => __('Logging', 'ultimate-multisite'), + 'desc' => __('Log Multisite Ultimate data. This is useful for debugging purposes.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -1571,15 +1571,15 @@ public function default_sections(): void { 'other', 'error_logging_level', [ - 'title' => __('Logging Level', 'multisite-ultimate'), - 'desc' => __('Select the level of logging you want to use.', 'multisite-ultimate'), + 'title' => __('Logging Level', 'ultimate-multisite'), + 'desc' => __('Select the level of logging you want to use.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'default', 'options' => [ - 'default' => __('PHP Default', 'multisite-ultimate'), - 'disabled' => __('Disabled', 'multisite-ultimate'), - 'errors' => __('Errors Only', 'multisite-ultimate'), - 'all' => __('Everything', 'multisite-ultimate'), + 'default' => __('PHP Default', 'ultimate-multisite'), + 'disabled' => __('Disabled', 'ultimate-multisite'), + 'errors' => __('Errors Only', 'ultimate-multisite'), + 'all' => __('Everything', 'ultimate-multisite'), ], ] ); @@ -1588,8 +1588,8 @@ public function default_sections(): void { 'other', 'enable_error_reporting', [ - 'title' => __('Send Error Data to Multisite Ultimate Developers', 'multisite-ultimate'), - 'desc' => __('With this option enabled, every time your installation runs into an error related to Multisite Ultimate, that error data will be sent to us. No sensitive data gets collected, only environmental stuff (e.g. if this is this is a subdomain network, etc).', 'multisite-ultimate'), + 'title' => __('Send Error Data to Multisite Ultimate Developers', 'ultimate-multisite'), + 'desc' => __('With this option enabled, every time your installation runs into an error related to Multisite Ultimate, that error data will be sent to us. No sensitive data gets collected, only environmental stuff (e.g. if this is this is a subdomain network, etc).', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -1599,8 +1599,8 @@ public function default_sections(): void { 'other', 'advanced_header', [ - 'title' => __('Advanced Options', 'multisite-ultimate'), - 'desc' => __('Change the plugin and wordpress behavior.', 'multisite-ultimate'), + 'title' => __('Advanced Options', 'ultimate-multisite'), + 'desc' => __('Change the plugin and wordpress behavior.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -1615,15 +1615,15 @@ public function default_sections(): void { if ( ! empty($plans)) { $url = wu_network_admin_url('wp-ultimo-migration-alert'); - $title = __('Run Migration Again', 'multisite-ultimate') . sprintf( + $title = __('Run Migration Again', 'ultimate-multisite') . sprintf( "%s", - __('Rerun the Migration Wizard if you experience data-loss after migrate.', 'multisite-ultimate') + __('Rerun the Migration Wizard if you experience data-loss after migrate.', 'ultimate-multisite') ) . sprintf( "%s", - __('Important: This process can have unexpected behavior with your current Ultimo models.
We recommend that you create a backup before continue.', 'multisite-ultimate') + __('Important: This process can have unexpected behavior with your current Ultimo models.
We recommend that you create a backup before continue.', 'ultimate-multisite') ); - $html = sprintf('%s', $url, __('Migrate', 'multisite-ultimate')); + $html = sprintf('%s', $url, __('Migrate', 'ultimate-multisite')); $this->add_field( 'other', @@ -1646,9 +1646,9 @@ public function default_sections(): void { 'other', 'security_mode', [ - 'title' => __('Security Mode', 'multisite-ultimate'), + 'title' => __('Security Mode', 'ultimate-multisite'), // Translators: Placeholder adds the security mode key and current site url with query string - 'desc' => sprintf(__('Only Multisite Ultimate and other must-use plugins will run on your WordPress install while this option is enabled.
Important: Copy the following URL to disable security mode if something goes wrong and this page becomes unavailable:%2$s
', 'multisite-ultimate'), $security_mode_key, get_site_url() . $security_mode_key), + 'desc' => sprintf(__('Only Multisite Ultimate and other must-use plugins will run on your WordPress install while this option is enabled.
Important: Copy the following URL to disable security mode if something goes wrong and this page becomes unavailable:%2$s
', 'ultimate-multisite'), $security_mode_key, get_site_url() . $security_mode_key), 'type' => 'toggle', 'default' => 0, ] @@ -1659,8 +1659,8 @@ public function default_sections(): void { 'other', 'uninstall_wipe_tables', [ - 'title' => __('Remove Data on Uninstall', 'multisite-ultimate'), - 'desc' => __('Remove all saved data for Multisite Ultimate when the plugin is uninstalled.', 'multisite-ultimate'), + 'title' => __('Remove Data on Uninstall', 'ultimate-multisite'), + 'desc' => __('Remove all saved data for Multisite Ultimate when the plugin is uninstalled.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] diff --git a/inc/class-sunrise.php b/inc/class-sunrise.php index 2b036d0ef..efa01844a 100644 --- a/inc/class-sunrise.php +++ b/inc/class-sunrise.php @@ -286,10 +286,10 @@ public static function try_upgrade() { wu_log_add('sunrise', $error['message'], LogLevel::ERROR); /* translators: the placeholder is an error message */ - return new \WP_Error('error', sprintf(__('Sunrise copy failed: %s', 'multisite-ultimate'), $error['message'])); + return new \WP_Error('error', sprintf(__('Sunrise copy failed: %s', 'ultimate-multisite'), $error['message'])); } - wu_log_add('sunrise', __('Sunrise upgrade attempt succeeded.', 'multisite-ultimate')); + wu_log_add('sunrise', __('Sunrise upgrade attempt succeeded.', 'ultimate-multisite')); return true; } diff --git a/inc/class-user-switching.php b/inc/class-user-switching.php index aa404e2dc..f589db200 100644 --- a/inc/class-user-switching.php +++ b/inc/class-user-switching.php @@ -71,12 +71,12 @@ public function render_install_user_switching(): void { 'title' => [ 'type' => 'text-display', 'title' => '', - 'display_value' => __('This feature requires the plugin User Switching to be installed and active.', 'multisite-ultimate'), + 'display_value' => __('This feature requires the plugin User Switching to be installed and active.', 'ultimate-multisite'), 'tooltip' => '', ], 'link' => [ 'type' => 'link', - 'display_value' => __('Install User Switching', 'multisite-ultimate'), + 'display_value' => __('Install User Switching', 'ultimate-multisite'), 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end wu-text-center wu-bg-gray-100', 'html_attr' => [ diff --git a/inc/class-whitelabel.php b/inc/class-whitelabel.php index d614c00fb..530b8510d 100644 --- a/inc/class-whitelabel.php +++ b/inc/class-whitelabel.php @@ -197,8 +197,8 @@ public function add_settings(): void { wu_register_settings_section( 'whitelabel', [ - 'title' => __('Whitelabel', 'multisite-ultimate'), - 'desc' => __('Basic Whitelabel', 'multisite-ultimate'), + 'title' => __('Whitelabel', 'ultimate-multisite'), + 'desc' => __('Basic Whitelabel', 'ultimate-multisite'), 'icon' => 'dashicons-wu-eye', ] ); @@ -207,8 +207,8 @@ public function add_settings(): void { 'whitelabel', 'whitelabel_header', [ - 'title' => __('Whitelabel', 'multisite-ultimate'), - 'desc' => __('Hide a couple specific WordPress elements and rename others.', 'multisite-ultimate'), + 'title' => __('Whitelabel', 'ultimate-multisite'), + 'desc' => __('Hide a couple specific WordPress elements and rename others.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -219,8 +219,8 @@ public function add_settings(): void { 'whitelabel', 'hide_wordpress_logo', [ - 'title' => __('Hide WordPress Logo', 'multisite-ultimate') . $preview_image, - 'desc' => __('Hide the WordPress logo from the top-bar and replace the same logo on the My Sites top-bar item with a more generic icon.', 'multisite-ultimate'), + 'title' => __('Hide WordPress Logo', 'ultimate-multisite') . $preview_image, + 'desc' => __('Hide the WordPress logo from the top-bar and replace the same logo on the My Sites top-bar item with a more generic icon.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -230,8 +230,8 @@ public function add_settings(): void { 'whitelabel', 'hide_sites_menu', [ - 'title' => __('Hide Sites Admin Menu', 'multisite-ultimate'), - 'desc' => __('We recommend that you manage all of your sites using the Multisite Ultimate → Sites page. To avoid confusion, you can hide the default "Sites" item from the WordPress admin menu by toggling this option.', 'multisite-ultimate'), + 'title' => __('Hide Sites Admin Menu', 'ultimate-multisite'), + 'desc' => __('We recommend that you manage all of your sites using the Multisite Ultimate → Sites page. To avoid confusion, you can hide the default "Sites" item from the WordPress admin menu by toggling this option.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -241,9 +241,9 @@ public function add_settings(): void { 'whitelabel', 'rename_wordpress', [ - 'title' => __('Replace the word "WordPress"', 'multisite-ultimate'), - 'placeholder' => __('e.g. My App', 'multisite-ultimate'), - 'desc' => __('Replace all occurrences of the word "WordPress" with a different word.', 'multisite-ultimate'), + 'title' => __('Replace the word "WordPress"', 'ultimate-multisite'), + 'placeholder' => __('e.g. My App', 'ultimate-multisite'), + 'desc' => __('Replace all occurrences of the word "WordPress" with a different word.', 'ultimate-multisite'), 'type' => 'text', 'default' => '', ] @@ -253,9 +253,9 @@ public function add_settings(): void { 'whitelabel', 'rename_site_singular', [ - 'title' => __('Replace the word "Site" (singular)', 'multisite-ultimate'), - 'placeholder' => __('e.g. App', 'multisite-ultimate'), - 'desc' => __('Replace all occurrences of the word "Site" with a different word.', 'multisite-ultimate'), + 'title' => __('Replace the word "Site" (singular)', 'ultimate-multisite'), + 'placeholder' => __('e.g. App', 'ultimate-multisite'), + 'desc' => __('Replace all occurrences of the word "Site" with a different word.', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'wrapper_classes' => 'wu-w-1/2', @@ -266,9 +266,9 @@ public function add_settings(): void { 'whitelabel', 'rename_site_plural', [ - 'title' => __('Replace the word "Sites" (plural)', 'multisite-ultimate'), - 'placeholder' => __('e.g. Apps', 'multisite-ultimate'), - 'desc' => __('Replace all occurrences of the word "Sites" with a different word.', 'multisite-ultimate'), + 'title' => __('Replace the word "Sites" (plural)', 'ultimate-multisite'), + 'placeholder' => __('e.g. Apps', 'ultimate-multisite'), + 'desc' => __('Replace all occurrences of the word "Sites" with a different word.', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'wrapper_classes' => 'wu-w-1/2', diff --git a/inc/compat/class-edit-users-compat.php b/inc/compat/class-edit-users-compat.php index 42d5c9b8c..a497ad8d7 100644 --- a/inc/compat/class-edit-users-compat.php +++ b/inc/compat/class-edit-users-compat.php @@ -111,8 +111,8 @@ public function add_settings(): void { 'login-and-registration', 'enable_edit_users', [ - 'title' => __('Enable Edit User Capability', 'multisite-ultimate'), - 'desc' => __('Allow site owners to edit the user accounts of users on their own site. Also lets site owners create user accounts without requiring email confirmation.', 'multisite-ultimate'), + 'title' => __('Enable Edit User Capability', 'ultimate-multisite'), + 'desc' => __('Allow site owners to edit the user accounts of users on their own site. Also lets site owners create user accounts without requiring email confirmation.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -140,10 +140,10 @@ public function add_noconfirmation_field($context) { ?> - +
- +
diff --git a/inc/compat/class-general-compat.php b/inc/compat/class-general-compat.php index 92bfac84a..070243e23 100644 --- a/inc/compat/class-general-compat.php +++ b/inc/compat/class-general-compat.php @@ -248,7 +248,7 @@ public function fix_wp_typography($settings) { */ public function add_wp_typography_warning_message(): void { - WP_Ultimo()->notices->add(__('WP Typography "Smart Quotes" replacement is not compatible with Multisite Ultimate and will be automatically disabled.', 'multisite-ultimate'), 'warning'); + WP_Ultimo()->notices->add(__('WP Typography "Smart Quotes" replacement is not compatible with Multisite Ultimate and will be automatically disabled.', 'ultimate-multisite'), 'warning'); } /** diff --git a/inc/compat/class-gutenberg-support.php b/inc/compat/class-gutenberg-support.php index 80a68ce2a..7b538d42a 100644 --- a/inc/compat/class-gutenberg-support.php +++ b/inc/compat/class-gutenberg-support.php @@ -65,7 +65,7 @@ public function add_scripts(): void { wp_register_script('wu-gutenberg-support', wu_get_asset('gutenberg-support.js', 'js'), ['jquery'], wu_get_version(), true); // translators: the placeholder is replaced with the network name. - $preview_message = apply_filters('wu_gutenberg_support_preview_message', sprintf(__('%s is generating the preview...', 'multisite-ultimate'), get_network_option(null, 'site_name'))); + $preview_message = apply_filters('wu_gutenberg_support_preview_message', sprintf(__('%s is generating the preview...', 'ultimate-multisite'), get_network_option(null, 'site_name'))); wp_localize_script( 'wu-gutenberg-support', diff --git a/inc/compat/class-legacy-shortcodes.php b/inc/compat/class-legacy-shortcodes.php index c3682ab27..56f6b8a3a 100644 --- a/inc/compat/class-legacy-shortcodes.php +++ b/inc/compat/class-legacy-shortcodes.php @@ -215,7 +215,7 @@ public function restricted_content($atts, $content) { $atts['plan_id'] = ! empty($atts['product_id']) ? $atts['product_id'] : $atts['plan_id']; if (empty($atts) || ! $atts['plan_id']) { - return __('You need to pass a valid plan ID.', 'multisite-ultimate'); + return __('You need to pass a valid plan ID.', 'ultimate-multisite'); } $query_products = get_query_var('products', []); @@ -349,17 +349,17 @@ public function pricing_table($atts, $content) { [ 'duration' => 1, 'duration_unit' => 'month', - 'label' => __('Monthly', 'multisite-ultimate'), + 'label' => __('Monthly', 'ultimate-multisite'), ], [ 'duration' => 3, 'duration_unit' => 'month', - 'label' => __('Quarterly', 'multisite-ultimate'), + 'label' => __('Quarterly', 'ultimate-multisite'), ], [ 'duration' => 1, 'duration_unit' => 'year', - 'label' => __('Yearly', 'multisite-ultimate'), + 'label' => __('Yearly', 'ultimate-multisite'), ], ], ]; @@ -369,7 +369,7 @@ public function pricing_table($atts, $content) { $fields[] = [ 'step' => 'checkout', - 'name' => __('Plans', 'multisite-ultimate'), + 'name' => __('Plans', 'ultimate-multisite'), 'type' => 'pricing_table', 'id' => 'pricing_table', 'required' => true, @@ -385,7 +385,7 @@ public function pricing_table($atts, $content) { if ('legacy' !== $layout) { $fields[] = [ 'step' => 'checkout', - 'name' => __('Get Started →', 'multisite-ultimate'), + 'name' => __('Get Started →', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'checkout', ]; @@ -394,7 +394,7 @@ public function pricing_table($atts, $content) { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'desc' => '', 'fields' => $fields, ], @@ -522,7 +522,7 @@ public function templates_list($atts, $content) { $fields[] = [ 'step' => 'checkout', - 'name' => __('Templates', 'multisite-ultimate'), + 'name' => __('Templates', 'ultimate-multisite'), 'type' => 'template_selection', 'id' => 'template_selection', 'template_selection_sites' => implode(',', $templates ?: wu_get_site_templates($search_arguments)), @@ -534,7 +534,7 @@ public function templates_list($atts, $content) { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'desc' => '', 'fields' => $fields, ], diff --git a/inc/compat/class-login-wp-compat.php b/inc/compat/class-login-wp-compat.php index ccb08773e..6568b2257 100644 --- a/inc/compat/class-login-wp-compat.php +++ b/inc/compat/class-login-wp-compat.php @@ -42,7 +42,7 @@ public function add_error_field(array $fields): array { $error_message_field = [ 'error_message' => [ 'type' => 'note', - 'desc' => __('Error: Incorrect username or password.', 'multisite-ultimate'), + 'desc' => __('Error: Incorrect username or password.', 'ultimate-multisite'), ], ]; diff --git a/inc/compat/class-multiple-accounts-compat.php b/inc/compat/class-multiple-accounts-compat.php index 6c06bb7eb..9a017bdfd 100644 --- a/inc/compat/class-multiple-accounts-compat.php +++ b/inc/compat/class-multiple-accounts-compat.php @@ -260,8 +260,8 @@ public function add_settings(): void { 'login-and-registration', 'multiple_accounts_header', [ - 'title' => __('Multiple Accounts', 'multisite-ultimate'), - 'desc' => __('Options related to the Multiple Accounts feature.', 'multisite-ultimate'), + 'title' => __('Multiple Accounts', 'ultimate-multisite'), + 'desc' => __('Options related to the Multiple Accounts feature.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -270,8 +270,8 @@ public function add_settings(): void { 'login-and-registration', 'enable_multiple_accounts', [ - 'title' => __('Enable Multiple Accounts', 'multisite-ultimate'), - 'desc' => __('Allow users to have accounts in different sites with the same email address. This is useful when running stores with WooCommerce and other plugins, for example.', 'multisite-ultimate') . ' ' . sprintf('%s', wu_get_documentation_url('multiple-accounts'), __('Read More', 'multisite-ultimate')), + 'title' => __('Enable Multiple Accounts', 'ultimate-multisite'), + 'desc' => __('Allow users to have accounts in different sites with the same email address. This is useful when running stores with WooCommerce and other plugins, for example.', 'ultimate-multisite') . ' ' . sprintf('%s', wu_get_documentation_url('multiple-accounts'), __('Read More', 'ultimate-multisite')), 'type' => 'toggle', 'default' => 0, ] @@ -288,7 +288,7 @@ public function add_settings(): void { */ public function add_multiple_account_column($columns) { - $columns['multiple_accounts'] = __('Multiple Accounts', 'multisite-ultimate'); + $columns['multiple_accounts'] = __('Multiple Accounts', 'ultimate-multisite'); return $columns; } @@ -320,8 +320,8 @@ public function add_column_content($null, $column, $user_id): void { ); // translators: the %d is the account count for that email address. - printf(esc_html__('%s accounts using this email.', 'multisite-ultimate'), '' . esc_html($users->total_users) . ''); - printf("
" . esc_html__('See all', 'multisite-ultimate') . ' »', esc_attr(network_admin_url('users.php?s=' . $user->user_email))); + printf(esc_html__('%s accounts using this email.', 'ultimate-multisite'), '' . esc_html($users->total_users) . ''); + printf("
" . esc_html__('See all', 'ultimate-multisite') . ' »', esc_attr(network_admin_url('users.php?s=' . $user->user_email))); } } diff --git a/inc/country/class-country-br.php b/inc/country/class-country-br.php index cb0de7a2c..ef4a695d2 100644 --- a/inc/country/class-country-br.php +++ b/inc/country/class-country-br.php @@ -90,7 +90,7 @@ class Country_BR extends Country { */ public function get_name() { - return __('Brazil', 'multisite-ultimate'); + return __('Brazil', 'ultimate-multisite'); } /** @@ -102,33 +102,33 @@ public function get_name() { protected function states() { return [ - 'AC' => __('Acre', 'multisite-ultimate'), - 'AL' => __('Alagoas', 'multisite-ultimate'), - 'AP' => __('Amapá', 'multisite-ultimate'), - 'AM' => __('Amazonas', 'multisite-ultimate'), - 'BA' => __('Bahia', 'multisite-ultimate'), - 'CE' => __('Ceará', 'multisite-ultimate'), - 'DF' => __('Distrito Federal', 'multisite-ultimate'), - 'ES' => __('Espírito Santo', 'multisite-ultimate'), - 'GO' => __('Goiás', 'multisite-ultimate'), - 'MA' => __('Maranhão', 'multisite-ultimate'), - 'MT' => __('Mato Grosso', 'multisite-ultimate'), - 'MS' => __('Mato Grosso do Sul', 'multisite-ultimate'), - 'MG' => __('Minas Gerais', 'multisite-ultimate'), - 'PR' => __('Paraná', 'multisite-ultimate'), - 'PB' => __('Paraíba', 'multisite-ultimate'), - 'PA' => __('Pará', 'multisite-ultimate'), - 'PE' => __('Pernambuco', 'multisite-ultimate'), - 'PI' => __('Piauí', 'multisite-ultimate'), - 'RN' => __('Rio Grande do Norte', 'multisite-ultimate'), - 'RS' => __('Rio Grande do Sul', 'multisite-ultimate'), - 'RJ' => __('Rio de Janeiro', 'multisite-ultimate'), - 'RO' => __('Rondônia', 'multisite-ultimate'), - 'RR' => __('Roraima', 'multisite-ultimate'), - 'SC' => __('Santa Catarina', 'multisite-ultimate'), - 'SE' => __('Sergipe', 'multisite-ultimate'), - 'SP' => __('São Paulo', 'multisite-ultimate'), - 'TO' => __('Tocantins', 'multisite-ultimate'), + 'AC' => __('Acre', 'ultimate-multisite'), + 'AL' => __('Alagoas', 'ultimate-multisite'), + 'AP' => __('Amapá', 'ultimate-multisite'), + 'AM' => __('Amazonas', 'ultimate-multisite'), + 'BA' => __('Bahia', 'ultimate-multisite'), + 'CE' => __('Ceará', 'ultimate-multisite'), + 'DF' => __('Distrito Federal', 'ultimate-multisite'), + 'ES' => __('Espírito Santo', 'ultimate-multisite'), + 'GO' => __('Goiás', 'ultimate-multisite'), + 'MA' => __('Maranhão', 'ultimate-multisite'), + 'MT' => __('Mato Grosso', 'ultimate-multisite'), + 'MS' => __('Mato Grosso do Sul', 'ultimate-multisite'), + 'MG' => __('Minas Gerais', 'ultimate-multisite'), + 'PR' => __('Paraná', 'ultimate-multisite'), + 'PB' => __('Paraíba', 'ultimate-multisite'), + 'PA' => __('Pará', 'ultimate-multisite'), + 'PE' => __('Pernambuco', 'ultimate-multisite'), + 'PI' => __('Piauí', 'ultimate-multisite'), + 'RN' => __('Rio Grande do Norte', 'ultimate-multisite'), + 'RS' => __('Rio Grande do Sul', 'ultimate-multisite'), + 'RJ' => __('Rio de Janeiro', 'ultimate-multisite'), + 'RO' => __('Rondônia', 'ultimate-multisite'), + 'RR' => __('Roraima', 'ultimate-multisite'), + 'SC' => __('Santa Catarina', 'ultimate-multisite'), + 'SE' => __('Sergipe', 'ultimate-multisite'), + 'SP' => __('São Paulo', 'ultimate-multisite'), + 'TO' => __('Tocantins', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-ca.php b/inc/country/class-country-ca.php index 73b857d44..7af703801 100644 --- a/inc/country/class-country-ca.php +++ b/inc/country/class-country-ca.php @@ -76,7 +76,7 @@ class Country_CA extends Country { */ public function get_name() { - return __('Canada', 'multisite-ultimate'); + return __('Canada', 'ultimate-multisite'); } /** @@ -88,19 +88,19 @@ public function get_name() { protected function states() { return [ - 'AB' => __('Alberta', 'multisite-ultimate'), - 'BC' => __('British Columbia', 'multisite-ultimate'), - 'MB' => __('Manitoba', 'multisite-ultimate'), - 'NB' => __('New Brunswick', 'multisite-ultimate'), - 'NL' => __('Newfoundland and Labrador', 'multisite-ultimate'), - 'NT' => __('Northwest Territories', 'multisite-ultimate'), - 'NS' => __('Nova Scotia', 'multisite-ultimate'), - 'NU' => __('Nunavut', 'multisite-ultimate'), - 'ON' => __('Ontario', 'multisite-ultimate'), - 'PE' => __('Prince Edward Island', 'multisite-ultimate'), - 'QC' => __('Quebec', 'multisite-ultimate'), - 'SK' => __('Saskatchewan', 'multisite-ultimate'), - 'YT' => __('Yukon', 'multisite-ultimate'), + 'AB' => __('Alberta', 'ultimate-multisite'), + 'BC' => __('British Columbia', 'ultimate-multisite'), + 'MB' => __('Manitoba', 'ultimate-multisite'), + 'NB' => __('New Brunswick', 'ultimate-multisite'), + 'NL' => __('Newfoundland and Labrador', 'ultimate-multisite'), + 'NT' => __('Northwest Territories', 'ultimate-multisite'), + 'NS' => __('Nova Scotia', 'ultimate-multisite'), + 'NU' => __('Nunavut', 'ultimate-multisite'), + 'ON' => __('Ontario', 'ultimate-multisite'), + 'PE' => __('Prince Edward Island', 'ultimate-multisite'), + 'QC' => __('Quebec', 'ultimate-multisite'), + 'SK' => __('Saskatchewan', 'ultimate-multisite'), + 'YT' => __('Yukon', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-cn.php b/inc/country/class-country-cn.php index 815f9390a..94571c2b8 100644 --- a/inc/country/class-country-cn.php +++ b/inc/country/class-country-cn.php @@ -95,7 +95,7 @@ class Country_CN extends Country { */ public function get_name() { - return __('China', 'multisite-ultimate'); + return __('China', 'ultimate-multisite'); } /** @@ -107,40 +107,40 @@ public function get_name() { protected function states() { return [ - 'AH' => __('Anhui', 'multisite-ultimate'), - 'BJ' => __('Beijing', 'multisite-ultimate'), - 'CQ' => __('Chongqing', 'multisite-ultimate'), - 'FJ' => __('Fujian', 'multisite-ultimate'), - 'GS' => __('Gansu', 'multisite-ultimate'), - 'GD' => __('Guangdong', 'multisite-ultimate'), - 'GX' => __('Guangxi Zhuang', 'multisite-ultimate'), - 'GZ' => __('Guizhou', 'multisite-ultimate'), - 'HI' => __('Hainan', 'multisite-ultimate'), - 'HE' => __('Hebei', 'multisite-ultimate'), - 'HL' => __('Heilongjiang', 'multisite-ultimate'), - 'HA' => __('Henan', 'multisite-ultimate'), - 'HK' => __('Hong Kong SAR', 'multisite-ultimate'), - 'HB' => __('Hubei', 'multisite-ultimate'), - 'HN' => __('Hunan', 'multisite-ultimate'), - 'NM' => __('Inner Mongolia', 'multisite-ultimate'), - 'JS' => __('Jiangsu', 'multisite-ultimate'), - 'JX' => __('Jiangxi', 'multisite-ultimate'), - 'JL' => __('Jilin', 'multisite-ultimate'), - 'LN' => __('Liaoning', 'multisite-ultimate'), - 'MO' => __('Macau SAR', 'multisite-ultimate'), - 'NX' => __('Ningxia Huizu', 'multisite-ultimate'), - 'QH' => __('Qinghai', 'multisite-ultimate'), - 'SN' => __('Shaanxi', 'multisite-ultimate'), - 'SD' => __('Shandong', 'multisite-ultimate'), - 'SH' => __('Shanghai', 'multisite-ultimate'), - 'SX' => __('Shanxi', 'multisite-ultimate'), - 'SC' => __('Sichuan', 'multisite-ultimate'), - 'TW' => __('Taiwan', 'multisite-ultimate'), - 'TJ' => __('Tianjin', 'multisite-ultimate'), - 'XJ' => __('Xinjiang', 'multisite-ultimate'), - 'XZ' => __('Xizang', 'multisite-ultimate'), - 'YN' => __('Yunnan', 'multisite-ultimate'), - 'ZJ' => __('Zhejiang', 'multisite-ultimate'), + 'AH' => __('Anhui', 'ultimate-multisite'), + 'BJ' => __('Beijing', 'ultimate-multisite'), + 'CQ' => __('Chongqing', 'ultimate-multisite'), + 'FJ' => __('Fujian', 'ultimate-multisite'), + 'GS' => __('Gansu', 'ultimate-multisite'), + 'GD' => __('Guangdong', 'ultimate-multisite'), + 'GX' => __('Guangxi Zhuang', 'ultimate-multisite'), + 'GZ' => __('Guizhou', 'ultimate-multisite'), + 'HI' => __('Hainan', 'ultimate-multisite'), + 'HE' => __('Hebei', 'ultimate-multisite'), + 'HL' => __('Heilongjiang', 'ultimate-multisite'), + 'HA' => __('Henan', 'ultimate-multisite'), + 'HK' => __('Hong Kong SAR', 'ultimate-multisite'), + 'HB' => __('Hubei', 'ultimate-multisite'), + 'HN' => __('Hunan', 'ultimate-multisite'), + 'NM' => __('Inner Mongolia', 'ultimate-multisite'), + 'JS' => __('Jiangsu', 'ultimate-multisite'), + 'JX' => __('Jiangxi', 'ultimate-multisite'), + 'JL' => __('Jilin', 'ultimate-multisite'), + 'LN' => __('Liaoning', 'ultimate-multisite'), + 'MO' => __('Macau SAR', 'ultimate-multisite'), + 'NX' => __('Ningxia Huizu', 'ultimate-multisite'), + 'QH' => __('Qinghai', 'ultimate-multisite'), + 'SN' => __('Shaanxi', 'ultimate-multisite'), + 'SD' => __('Shandong', 'ultimate-multisite'), + 'SH' => __('Shanghai', 'ultimate-multisite'), + 'SX' => __('Shanxi', 'ultimate-multisite'), + 'SC' => __('Sichuan', 'ultimate-multisite'), + 'TW' => __('Taiwan', 'ultimate-multisite'), + 'TJ' => __('Tianjin', 'ultimate-multisite'), + 'XJ' => __('Xinjiang', 'ultimate-multisite'), + 'XZ' => __('Xizang', 'ultimate-multisite'), + 'YN' => __('Yunnan', 'ultimate-multisite'), + 'ZJ' => __('Zhejiang', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-de.php b/inc/country/class-country-de.php index 7f1c6a49a..3e6d6143d 100644 --- a/inc/country/class-country-de.php +++ b/inc/country/class-country-de.php @@ -79,7 +79,7 @@ class Country_DE extends Country { */ public function get_name() { - return __('Germany', 'multisite-ultimate'); + return __('Germany', 'ultimate-multisite'); } /** @@ -91,22 +91,22 @@ public function get_name() { protected function states() { return [ - 'BW' => __('Baden-Württemberg', 'multisite-ultimate'), - 'BY' => __('Bavaria', 'multisite-ultimate'), - 'BE' => __('Berlin', 'multisite-ultimate'), - 'BB' => __('Brandenburg', 'multisite-ultimate'), - 'HB' => __('Bremen', 'multisite-ultimate'), - 'HH' => __('Hamburg', 'multisite-ultimate'), - 'HE' => __('Hesse', 'multisite-ultimate'), - 'NI' => __('Lower Saxony', 'multisite-ultimate'), - 'MV' => __('Mecklenburg-Vorpommern', 'multisite-ultimate'), - 'NW' => __('North Rhine-Westphalia', 'multisite-ultimate'), - 'RP' => __('Rhineland-Palatinate', 'multisite-ultimate'), - 'SL' => __('Saarland', 'multisite-ultimate'), - 'SN' => __('Saxony', 'multisite-ultimate'), - 'ST' => __('Saxony-Anhalt', 'multisite-ultimate'), - 'SH' => __('Schleswig-Holstein', 'multisite-ultimate'), - 'TH' => __('Thuringia', 'multisite-ultimate'), + 'BW' => __('Baden-Württemberg', 'ultimate-multisite'), + 'BY' => __('Bavaria', 'ultimate-multisite'), + 'BE' => __('Berlin', 'ultimate-multisite'), + 'BB' => __('Brandenburg', 'ultimate-multisite'), + 'HB' => __('Bremen', 'ultimate-multisite'), + 'HH' => __('Hamburg', 'ultimate-multisite'), + 'HE' => __('Hesse', 'ultimate-multisite'), + 'NI' => __('Lower Saxony', 'ultimate-multisite'), + 'MV' => __('Mecklenburg-Vorpommern', 'ultimate-multisite'), + 'NW' => __('North Rhine-Westphalia', 'ultimate-multisite'), + 'RP' => __('Rhineland-Palatinate', 'ultimate-multisite'), + 'SL' => __('Saarland', 'ultimate-multisite'), + 'SN' => __('Saxony', 'ultimate-multisite'), + 'ST' => __('Saxony-Anhalt', 'ultimate-multisite'), + 'SH' => __('Schleswig-Holstein', 'ultimate-multisite'), + 'TH' => __('Thuringia', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-es.php b/inc/country/class-country-es.php index 0a6585dde..8167bc86e 100644 --- a/inc/country/class-country-es.php +++ b/inc/country/class-country-es.php @@ -81,7 +81,7 @@ class Country_ES extends Country { */ public function get_name() { - return __('Spain', 'multisite-ultimate'); + return __('Spain', 'ultimate-multisite'); } /** @@ -93,34 +93,34 @@ public function get_name() { protected function states() { return [ - 'AN' => __('Andalusia', 'multisite-ultimate'), - 'AR' => __('Aragon', 'multisite-ultimate'), - 'AS' => __('Asturias', 'multisite-ultimate'), - 'PM' => __('Balearic Islands', 'multisite-ultimate'), - 'PV' => __('Basque Country', 'multisite-ultimate'), - 'BU' => __('Burgos Province', 'multisite-ultimate'), - 'CN' => __('Canary Islands', 'multisite-ultimate'), - 'CB' => __('Cantabria', 'multisite-ultimate'), - 'CL' => __('Castile and León', 'multisite-ultimate'), - 'CM' => __('Castilla La Mancha', 'multisite-ultimate'), - 'CT' => __('Catalonia', 'multisite-ultimate'), - 'CE' => __('Ceuta', 'multisite-ultimate'), - 'EX' => __('Extremadura', 'multisite-ultimate'), - 'GA' => __('Galicia', 'multisite-ultimate'), - 'RI' => __('La Rioja', 'multisite-ultimate'), - 'LE' => __('Léon', 'multisite-ultimate'), - 'MD' => __('Madrid', 'multisite-ultimate'), - 'ML' => __('Melilla', 'multisite-ultimate'), - 'MC' => __('Murcia', 'multisite-ultimate'), - 'NC' => __('Navarra', 'multisite-ultimate'), - 'P' => __('Palencia Province', 'multisite-ultimate'), - 'SA' => __('Salamanca Province', 'multisite-ultimate'), - 'SG' => __('Segovia Province', 'multisite-ultimate'), - 'SO' => __('Soria Province', 'multisite-ultimate'), - 'VC' => __('Valencia', 'multisite-ultimate'), - 'VA' => __('Valladolid Province', 'multisite-ultimate'), - 'ZA' => __('Zamora Province', 'multisite-ultimate'), - 'AV' => __('Ávila', 'multisite-ultimate'), + 'AN' => __('Andalusia', 'ultimate-multisite'), + 'AR' => __('Aragon', 'ultimate-multisite'), + 'AS' => __('Asturias', 'ultimate-multisite'), + 'PM' => __('Balearic Islands', 'ultimate-multisite'), + 'PV' => __('Basque Country', 'ultimate-multisite'), + 'BU' => __('Burgos Province', 'ultimate-multisite'), + 'CN' => __('Canary Islands', 'ultimate-multisite'), + 'CB' => __('Cantabria', 'ultimate-multisite'), + 'CL' => __('Castile and León', 'ultimate-multisite'), + 'CM' => __('Castilla La Mancha', 'ultimate-multisite'), + 'CT' => __('Catalonia', 'ultimate-multisite'), + 'CE' => __('Ceuta', 'ultimate-multisite'), + 'EX' => __('Extremadura', 'ultimate-multisite'), + 'GA' => __('Galicia', 'ultimate-multisite'), + 'RI' => __('La Rioja', 'ultimate-multisite'), + 'LE' => __('Léon', 'ultimate-multisite'), + 'MD' => __('Madrid', 'ultimate-multisite'), + 'ML' => __('Melilla', 'ultimate-multisite'), + 'MC' => __('Murcia', 'ultimate-multisite'), + 'NC' => __('Navarra', 'ultimate-multisite'), + 'P' => __('Palencia Province', 'ultimate-multisite'), + 'SA' => __('Salamanca Province', 'ultimate-multisite'), + 'SG' => __('Segovia Province', 'ultimate-multisite'), + 'SO' => __('Soria Province', 'ultimate-multisite'), + 'VC' => __('Valencia', 'ultimate-multisite'), + 'VA' => __('Valladolid Province', 'ultimate-multisite'), + 'ZA' => __('Zamora Province', 'ultimate-multisite'), + 'AV' => __('Ávila', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-fr.php b/inc/country/class-country-fr.php index 85078a49b..012c511b8 100644 --- a/inc/country/class-country-fr.php +++ b/inc/country/class-country-fr.php @@ -76,7 +76,7 @@ class Country_FR extends Country { */ public function get_name() { - return __('France', 'multisite-ultimate'); + return __('France', 'ultimate-multisite'); } /** @@ -88,129 +88,129 @@ public function get_name() { protected function states() { return [ - '10' => __('Aube', 'multisite-ultimate'), - '11' => __('Aude', 'multisite-ultimate'), - '12' => __('Aveyron', 'multisite-ultimate'), - '13' => __('Bouches-du-Rhône', 'multisite-ultimate'), - '14' => __('Calvados', 'multisite-ultimate'), - '15' => __('Cantal', 'multisite-ultimate'), - '16' => __('Charente', 'multisite-ultimate'), - '17' => __('Charente-Maritime', 'multisite-ultimate'), - '18' => __('Cher', 'multisite-ultimate'), - '19' => __('Corrèze', 'multisite-ultimate'), - '21' => __("Côte-d'Or", 'multisite-ultimate'), - '22' => __("Côtes-d'Armor", 'multisite-ultimate'), - '23' => __('Creuse', 'multisite-ultimate'), - '24' => __('Dordogne', 'multisite-ultimate'), - '25' => __('Doubs', 'multisite-ultimate'), - '26' => __('Drôme', 'multisite-ultimate'), - '27' => __('Eure', 'multisite-ultimate'), - '28' => __('Eure-et-Loir', 'multisite-ultimate'), - '29' => __('Finistère', 'multisite-ultimate'), - '30' => __('Gard', 'multisite-ultimate'), - '31' => __('Haute-Garonne', 'multisite-ultimate'), - '32' => __('Gers', 'multisite-ultimate'), - '33' => __('Gironde', 'multisite-ultimate'), - '34' => __('Hérault', 'multisite-ultimate'), - '35' => __('Ille-et-Vilaine', 'multisite-ultimate'), - '36' => __('Indre', 'multisite-ultimate'), - '37' => __('Indre-et-Loire', 'multisite-ultimate'), - '38' => __('Isère', 'multisite-ultimate'), - '39' => __('Jura', 'multisite-ultimate'), - '40' => __('Landes', 'multisite-ultimate'), - '41' => __('Loir-et-Cher', 'multisite-ultimate'), - '42' => __('Loire', 'multisite-ultimate'), - '43' => __('Haute-Loire', 'multisite-ultimate'), - '44' => __('Loire-Atlantique', 'multisite-ultimate'), - '45' => __('Loiret', 'multisite-ultimate'), - '46' => __('Lot', 'multisite-ultimate'), - '47' => __('Lot-et-Garonne', 'multisite-ultimate'), - '48' => __('Lozère', 'multisite-ultimate'), - '49' => __('Maine-et-Loire', 'multisite-ultimate'), - '50' => __('Manche', 'multisite-ultimate'), - '51' => __('Marne', 'multisite-ultimate'), - '52' => __('Haute-Marne', 'multisite-ultimate'), - '53' => __('Mayenne', 'multisite-ultimate'), - '54' => __('Meurthe-et-Moselle', 'multisite-ultimate'), - '55' => __('Meuse', 'multisite-ultimate'), - '56' => __('Morbihan', 'multisite-ultimate'), - '57' => __('Moselle', 'multisite-ultimate'), - '58' => __('Nièvre', 'multisite-ultimate'), - '59' => __('Nord', 'multisite-ultimate'), - '60' => __('Oise', 'multisite-ultimate'), - '61' => __('Orne', 'multisite-ultimate'), - '62' => __('Pas-de-Calais', 'multisite-ultimate'), - '63' => __('Puy-de-Dôme', 'multisite-ultimate'), - '64' => __('Pyrénées-Atlantiques', 'multisite-ultimate'), - '65' => __('Hautes-Pyrénées', 'multisite-ultimate'), - '66' => __('Pyrénées-Orientales', 'multisite-ultimate'), - '67' => __('Bas-Rhin', 'multisite-ultimate'), - '68' => __('Haut-Rhin', 'multisite-ultimate'), - '69' => __('Rhône', 'multisite-ultimate'), - '70' => __('Haute-Saône', 'multisite-ultimate'), - '71' => __('Saône-et-Loire', 'multisite-ultimate'), - '72' => __('Sarthe', 'multisite-ultimate'), - '73' => __('Savoie', 'multisite-ultimate'), - '74' => __('Haute-Savoie', 'multisite-ultimate'), - '76' => __('Seine-Maritime', 'multisite-ultimate'), - '77' => __('Seine-et-Marne', 'multisite-ultimate'), - '78' => __('Yvelines', 'multisite-ultimate'), - '79' => __('Deux-Sèvres', 'multisite-ultimate'), - '80' => __('Somme', 'multisite-ultimate'), - '81' => __('Tarn', 'multisite-ultimate'), - '82' => __('Tarn-et-Garonne', 'multisite-ultimate'), - '83' => __('Var', 'multisite-ultimate'), - '84' => __('Vaucluse', 'multisite-ultimate'), - '85' => __('Vendée', 'multisite-ultimate'), - '86' => __('Vienne', 'multisite-ultimate'), - '87' => __('Haute-Vienne', 'multisite-ultimate'), - '88' => __('Vosges', 'multisite-ultimate'), - '89' => __('Yonne', 'multisite-ultimate'), - '90' => __('Territoire de Belfort', 'multisite-ultimate'), - '91' => __('Essonne', 'multisite-ultimate'), - '92' => __('Hauts-de-Seine', 'multisite-ultimate'), - '93' => __('Seine-Saint-Denis', 'multisite-ultimate'), - '94' => __('Val-de-Marne', 'multisite-ultimate'), - '95' => __("Val-d'Oise", 'multisite-ultimate'), - '971' => __('Guadeloupe', 'multisite-ultimate'), - '972' => __('Martinique', 'multisite-ultimate'), - '973' => __('French Guiana', 'multisite-ultimate'), - '974' => __('La Réunion', 'multisite-ultimate'), - '976' => __('Mayotte', 'multisite-ultimate'), - '01' => __('Ain', 'multisite-ultimate'), - '02' => __('Aisne', 'multisite-ultimate'), - '03' => __('Allier', 'multisite-ultimate'), - '06' => __('Alpes-Maritimes', 'multisite-ultimate'), - '04' => __('Alpes-de-Haute-Provence', 'multisite-ultimate'), - '6AE' => __('Alsace', 'multisite-ultimate'), - '08' => __('Ardennes', 'multisite-ultimate'), - '07' => __('Ardèche', 'multisite-ultimate'), - '09' => __('Ariège', 'multisite-ultimate'), - 'ARA' => __('Auvergne-Rhône-Alpes', 'multisite-ultimate'), - 'BFC' => __('Bourgogne-Franche-Comté', 'multisite-ultimate'), - 'BRE' => __('Bretagne', 'multisite-ultimate'), - 'CVL' => __('Centre-Val de Loire', 'multisite-ultimate'), - 'CP' => __('Clipperton', 'multisite-ultimate'), - '20R' => __('Corse', 'multisite-ultimate'), - '2A' => __('Corse-du-Sud', 'multisite-ultimate'), - 'PF' => __('French Polynesia', 'multisite-ultimate'), - 'TF' => __('French Southern and Antarctic Lands', 'multisite-ultimate'), - 'GES' => __('Grand-Est', 'multisite-ultimate'), - '2B' => __('Haute-Corse', 'multisite-ultimate'), - '05' => __('Hautes-Alpes', 'multisite-ultimate'), - 'HDF' => __('Hauts-de-France', 'multisite-ultimate'), - '69M' => __('Métropole de Lyon', 'multisite-ultimate'), - 'NOR' => __('Normandie', 'multisite-ultimate'), - 'NAQ' => __('Nouvelle-Aquitaine', 'multisite-ultimate'), - 'OCC' => __('Occitanie', 'multisite-ultimate'), - '75C' => __('Paris', 'multisite-ultimate'), - 'PDL' => __('Pays-de-la-Loire', 'multisite-ultimate'), - 'PAC' => __('Provence-Alpes-Côte-d’Azur', 'multisite-ultimate'), - 'PM' => __('Saint Pierre and Miquelon', 'multisite-ultimate'), - 'BL' => __('Saint-Barthélemy', 'multisite-ultimate'), - 'MF' => __('Saint-Martin', 'multisite-ultimate'), - 'WF' => __('Wallis and Futuna', 'multisite-ultimate'), - 'IDF' => __('Île-de-France', 'multisite-ultimate'), + '10' => __('Aube', 'ultimate-multisite'), + '11' => __('Aude', 'ultimate-multisite'), + '12' => __('Aveyron', 'ultimate-multisite'), + '13' => __('Bouches-du-Rhône', 'ultimate-multisite'), + '14' => __('Calvados', 'ultimate-multisite'), + '15' => __('Cantal', 'ultimate-multisite'), + '16' => __('Charente', 'ultimate-multisite'), + '17' => __('Charente-Maritime', 'ultimate-multisite'), + '18' => __('Cher', 'ultimate-multisite'), + '19' => __('Corrèze', 'ultimate-multisite'), + '21' => __("Côte-d'Or", 'ultimate-multisite'), + '22' => __("Côtes-d'Armor", 'ultimate-multisite'), + '23' => __('Creuse', 'ultimate-multisite'), + '24' => __('Dordogne', 'ultimate-multisite'), + '25' => __('Doubs', 'ultimate-multisite'), + '26' => __('Drôme', 'ultimate-multisite'), + '27' => __('Eure', 'ultimate-multisite'), + '28' => __('Eure-et-Loir', 'ultimate-multisite'), + '29' => __('Finistère', 'ultimate-multisite'), + '30' => __('Gard', 'ultimate-multisite'), + '31' => __('Haute-Garonne', 'ultimate-multisite'), + '32' => __('Gers', 'ultimate-multisite'), + '33' => __('Gironde', 'ultimate-multisite'), + '34' => __('Hérault', 'ultimate-multisite'), + '35' => __('Ille-et-Vilaine', 'ultimate-multisite'), + '36' => __('Indre', 'ultimate-multisite'), + '37' => __('Indre-et-Loire', 'ultimate-multisite'), + '38' => __('Isère', 'ultimate-multisite'), + '39' => __('Jura', 'ultimate-multisite'), + '40' => __('Landes', 'ultimate-multisite'), + '41' => __('Loir-et-Cher', 'ultimate-multisite'), + '42' => __('Loire', 'ultimate-multisite'), + '43' => __('Haute-Loire', 'ultimate-multisite'), + '44' => __('Loire-Atlantique', 'ultimate-multisite'), + '45' => __('Loiret', 'ultimate-multisite'), + '46' => __('Lot', 'ultimate-multisite'), + '47' => __('Lot-et-Garonne', 'ultimate-multisite'), + '48' => __('Lozère', 'ultimate-multisite'), + '49' => __('Maine-et-Loire', 'ultimate-multisite'), + '50' => __('Manche', 'ultimate-multisite'), + '51' => __('Marne', 'ultimate-multisite'), + '52' => __('Haute-Marne', 'ultimate-multisite'), + '53' => __('Mayenne', 'ultimate-multisite'), + '54' => __('Meurthe-et-Moselle', 'ultimate-multisite'), + '55' => __('Meuse', 'ultimate-multisite'), + '56' => __('Morbihan', 'ultimate-multisite'), + '57' => __('Moselle', 'ultimate-multisite'), + '58' => __('Nièvre', 'ultimate-multisite'), + '59' => __('Nord', 'ultimate-multisite'), + '60' => __('Oise', 'ultimate-multisite'), + '61' => __('Orne', 'ultimate-multisite'), + '62' => __('Pas-de-Calais', 'ultimate-multisite'), + '63' => __('Puy-de-Dôme', 'ultimate-multisite'), + '64' => __('Pyrénées-Atlantiques', 'ultimate-multisite'), + '65' => __('Hautes-Pyrénées', 'ultimate-multisite'), + '66' => __('Pyrénées-Orientales', 'ultimate-multisite'), + '67' => __('Bas-Rhin', 'ultimate-multisite'), + '68' => __('Haut-Rhin', 'ultimate-multisite'), + '69' => __('Rhône', 'ultimate-multisite'), + '70' => __('Haute-Saône', 'ultimate-multisite'), + '71' => __('Saône-et-Loire', 'ultimate-multisite'), + '72' => __('Sarthe', 'ultimate-multisite'), + '73' => __('Savoie', 'ultimate-multisite'), + '74' => __('Haute-Savoie', 'ultimate-multisite'), + '76' => __('Seine-Maritime', 'ultimate-multisite'), + '77' => __('Seine-et-Marne', 'ultimate-multisite'), + '78' => __('Yvelines', 'ultimate-multisite'), + '79' => __('Deux-Sèvres', 'ultimate-multisite'), + '80' => __('Somme', 'ultimate-multisite'), + '81' => __('Tarn', 'ultimate-multisite'), + '82' => __('Tarn-et-Garonne', 'ultimate-multisite'), + '83' => __('Var', 'ultimate-multisite'), + '84' => __('Vaucluse', 'ultimate-multisite'), + '85' => __('Vendée', 'ultimate-multisite'), + '86' => __('Vienne', 'ultimate-multisite'), + '87' => __('Haute-Vienne', 'ultimate-multisite'), + '88' => __('Vosges', 'ultimate-multisite'), + '89' => __('Yonne', 'ultimate-multisite'), + '90' => __('Territoire de Belfort', 'ultimate-multisite'), + '91' => __('Essonne', 'ultimate-multisite'), + '92' => __('Hauts-de-Seine', 'ultimate-multisite'), + '93' => __('Seine-Saint-Denis', 'ultimate-multisite'), + '94' => __('Val-de-Marne', 'ultimate-multisite'), + '95' => __("Val-d'Oise", 'ultimate-multisite'), + '971' => __('Guadeloupe', 'ultimate-multisite'), + '972' => __('Martinique', 'ultimate-multisite'), + '973' => __('French Guiana', 'ultimate-multisite'), + '974' => __('La Réunion', 'ultimate-multisite'), + '976' => __('Mayotte', 'ultimate-multisite'), + '01' => __('Ain', 'ultimate-multisite'), + '02' => __('Aisne', 'ultimate-multisite'), + '03' => __('Allier', 'ultimate-multisite'), + '06' => __('Alpes-Maritimes', 'ultimate-multisite'), + '04' => __('Alpes-de-Haute-Provence', 'ultimate-multisite'), + '6AE' => __('Alsace', 'ultimate-multisite'), + '08' => __('Ardennes', 'ultimate-multisite'), + '07' => __('Ardèche', 'ultimate-multisite'), + '09' => __('Ariège', 'ultimate-multisite'), + 'ARA' => __('Auvergne-Rhône-Alpes', 'ultimate-multisite'), + 'BFC' => __('Bourgogne-Franche-Comté', 'ultimate-multisite'), + 'BRE' => __('Bretagne', 'ultimate-multisite'), + 'CVL' => __('Centre-Val de Loire', 'ultimate-multisite'), + 'CP' => __('Clipperton', 'ultimate-multisite'), + '20R' => __('Corse', 'ultimate-multisite'), + '2A' => __('Corse-du-Sud', 'ultimate-multisite'), + 'PF' => __('French Polynesia', 'ultimate-multisite'), + 'TF' => __('French Southern and Antarctic Lands', 'ultimate-multisite'), + 'GES' => __('Grand-Est', 'ultimate-multisite'), + '2B' => __('Haute-Corse', 'ultimate-multisite'), + '05' => __('Hautes-Alpes', 'ultimate-multisite'), + 'HDF' => __('Hauts-de-France', 'ultimate-multisite'), + '69M' => __('Métropole de Lyon', 'ultimate-multisite'), + 'NOR' => __('Normandie', 'ultimate-multisite'), + 'NAQ' => __('Nouvelle-Aquitaine', 'ultimate-multisite'), + 'OCC' => __('Occitanie', 'ultimate-multisite'), + '75C' => __('Paris', 'ultimate-multisite'), + 'PDL' => __('Pays-de-la-Loire', 'ultimate-multisite'), + 'PAC' => __('Provence-Alpes-Côte-d’Azur', 'ultimate-multisite'), + 'PM' => __('Saint Pierre and Miquelon', 'ultimate-multisite'), + 'BL' => __('Saint-Barthélemy', 'ultimate-multisite'), + 'MF' => __('Saint-Martin', 'ultimate-multisite'), + 'WF' => __('Wallis and Futuna', 'ultimate-multisite'), + 'IDF' => __('Île-de-France', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-gb.php b/inc/country/class-country-gb.php index a611f878a..719dc39e4 100644 --- a/inc/country/class-country-gb.php +++ b/inc/country/class-country-gb.php @@ -67,7 +67,7 @@ class Country_GB extends Country { */ public function get_name() { - return __('United Kingdom', 'multisite-ultimate'); + return __('United Kingdom', 'ultimate-multisite'); } /** @@ -79,253 +79,253 @@ public function get_name() { protected function states() { return [ - 'ABE' => __('Aberdeen', 'multisite-ultimate'), - 'ABD' => __('Aberdeenshire', 'multisite-ultimate'), - 'ANS' => __('Angus', 'multisite-ultimate'), - 'ANT' => __('Antrim', 'multisite-ultimate'), - 'ANN' => __('Antrim and Newtownabbey', 'multisite-ultimate'), - 'ARD' => __('Ards', 'multisite-ultimate'), - 'AND' => __('Ards and North Down', 'multisite-ultimate'), - 'AGB' => __('Argyll and Bute', 'multisite-ultimate'), - 'ARM' => __('Armagh City and District Council', 'multisite-ultimate'), - 'ABC' => __('Armagh, Banbridge and Craigavon', 'multisite-ultimate'), - 'SH-AC' => __('Ascension Island', 'multisite-ultimate'), - 'BLA' => __('Ballymena Borough', 'multisite-ultimate'), - 'BLY' => __('Ballymoney', 'multisite-ultimate'), - 'BNB' => __('Banbridge', 'multisite-ultimate'), - 'BNS' => __('Barnsley', 'multisite-ultimate'), - 'BAS' => __('Bath and North East Somerset', 'multisite-ultimate'), - 'BDF' => __('Bedford', 'multisite-ultimate'), - 'BFS' => __('Belfast district', 'multisite-ultimate'), - 'BIR' => __('Birmingham', 'multisite-ultimate'), - 'BBD' => __('Blackburn with Darwen', 'multisite-ultimate'), - 'BPL' => __('Blackpool', 'multisite-ultimate'), - 'BGW' => __('Blaenau Gwent County Borough', 'multisite-ultimate'), - 'BOL' => __('Bolton', 'multisite-ultimate'), - 'BMH' => __('Bournemouth', 'multisite-ultimate'), - 'BRC' => __('Bracknell Forest', 'multisite-ultimate'), - 'BRD' => __('Bradford', 'multisite-ultimate'), - 'BGE' => __('Bridgend County Borough', 'multisite-ultimate'), - 'BNH' => __('Brighton and Hove', 'multisite-ultimate'), - 'BKM' => __('Buckinghamshire', 'multisite-ultimate'), - 'BUR' => __('Bury', 'multisite-ultimate'), - 'CAY' => __('Caerphilly County Borough', 'multisite-ultimate'), - 'CLD' => __('Calderdale', 'multisite-ultimate'), - 'CAM' => __('Cambridgeshire', 'multisite-ultimate'), - 'CMN' => __('Carmarthenshire', 'multisite-ultimate'), - 'CKF' => __('Carrickfergus Borough Council', 'multisite-ultimate'), - 'CSR' => __('Castlereagh', 'multisite-ultimate'), - 'CCG' => __('Causeway Coast and Glens', 'multisite-ultimate'), - 'CBF' => __('Central Bedfordshire', 'multisite-ultimate'), - 'CGN' => __('Ceredigion', 'multisite-ultimate'), - 'CHE' => __('Cheshire East', 'multisite-ultimate'), - 'CHW' => __('Cheshire West and Chester', 'multisite-ultimate'), - 'CRF' => __('City and County of Cardiff', 'multisite-ultimate'), - 'SWA' => __('City and County of Swansea', 'multisite-ultimate'), - 'BST' => __('City of Bristol', 'multisite-ultimate'), - 'DER' => __('City of Derby', 'multisite-ultimate'), - 'KHL' => __('City of Kingston upon Hull', 'multisite-ultimate'), - 'LCE' => __('City of Leicester', 'multisite-ultimate'), - 'LND' => __('City of London', 'multisite-ultimate'), - 'NGM' => __('City of Nottingham', 'multisite-ultimate'), - 'PTE' => __('City of Peterborough', 'multisite-ultimate'), - 'PLY' => __('City of Plymouth', 'multisite-ultimate'), - 'POR' => __('City of Portsmouth', 'multisite-ultimate'), - 'STH' => __('City of Southampton', 'multisite-ultimate'), - 'STE' => __('City of Stoke-on-Trent', 'multisite-ultimate'), - 'SND' => __('City of Sunderland', 'multisite-ultimate'), - 'WSM' => __('City of Westminster', 'multisite-ultimate'), - 'WLV' => __('City of Wolverhampton', 'multisite-ultimate'), - 'YOR' => __('City of York', 'multisite-ultimate'), - 'CLK' => __('Clackmannanshire', 'multisite-ultimate'), - 'CLR' => __('Coleraine Borough Council', 'multisite-ultimate'), - 'CWY' => __('Conwy County Borough', 'multisite-ultimate'), - 'CKT' => __('Cookstown District Council', 'multisite-ultimate'), - 'CON' => __('Cornwall', 'multisite-ultimate'), - 'DUR' => __('County Durham', 'multisite-ultimate'), - 'COV' => __('Coventry', 'multisite-ultimate'), - 'CGV' => __('Craigavon Borough Council', 'multisite-ultimate'), - 'CMA' => __('Cumbria', 'multisite-ultimate'), - 'DAL' => __('Darlington', 'multisite-ultimate'), - 'DEN' => __('Denbighshire', 'multisite-ultimate'), - 'DBY' => __('Derbyshire', 'multisite-ultimate'), - 'DRY' => __('Derry City Council', 'multisite-ultimate'), - 'DRS' => __('Derry City and Strabane', 'multisite-ultimate'), - 'DEV' => __('Devon', 'multisite-ultimate'), - 'DNC' => __('Doncaster', 'multisite-ultimate'), - 'DOR' => __('Dorset', 'multisite-ultimate'), - 'DOW' => __('Down District Council', 'multisite-ultimate'), - 'DUD' => __('Dudley', 'multisite-ultimate'), - 'DGY' => __('Dumfries and Galloway', 'multisite-ultimate'), - 'DND' => __('Dundee', 'multisite-ultimate'), - 'DGN' => __('Dungannon and South Tyrone Borough Council', 'multisite-ultimate'), - 'EAY' => __('East Ayrshire', 'multisite-ultimate'), - 'EDU' => __('East Dunbartonshire', 'multisite-ultimate'), - 'ELN' => __('East Lothian', 'multisite-ultimate'), - 'ERW' => __('East Renfrewshire', 'multisite-ultimate'), - 'ERY' => __('East Riding of Yorkshire', 'multisite-ultimate'), - 'ESX' => __('East Sussex', 'multisite-ultimate'), - 'EDH' => __('Edinburgh', 'multisite-ultimate'), - 'ENG' => __('England', 'multisite-ultimate'), - 'ESS' => __('Essex', 'multisite-ultimate'), - 'FAL' => __('Falkirk', 'multisite-ultimate'), - 'FER' => __('Fermanagh District Council', 'multisite-ultimate'), - 'FMO' => __('Fermanagh and Omagh', 'multisite-ultimate'), - 'FIF' => __('Fife', 'multisite-ultimate'), - 'FLN' => __('Flintshire', 'multisite-ultimate'), - 'GAT' => __('Gateshead', 'multisite-ultimate'), - 'GLG' => __('Glasgow', 'multisite-ultimate'), - 'GLS' => __('Gloucestershire', 'multisite-ultimate'), - 'GWN' => __('Gwynedd', 'multisite-ultimate'), - 'HAL' => __('Halton', 'multisite-ultimate'), - 'HAM' => __('Hampshire', 'multisite-ultimate'), - 'HPL' => __('Hartlepool', 'multisite-ultimate'), - 'HEF' => __('Herefordshire', 'multisite-ultimate'), - 'HRT' => __('Hertfordshire', 'multisite-ultimate'), - 'HLD' => __('Highland', 'multisite-ultimate'), - 'IVC' => __('Inverclyde', 'multisite-ultimate'), - 'IOW' => __('Isle of Wight', 'multisite-ultimate'), - 'IOS' => __('Isles of Scilly', 'multisite-ultimate'), - 'KEN' => __('Kent', 'multisite-ultimate'), - 'KIR' => __('Kirklees', 'multisite-ultimate'), - 'KWL' => __('Knowsley', 'multisite-ultimate'), - 'LAN' => __('Lancashire', 'multisite-ultimate'), - 'LRN' => __('Larne Borough Council', 'multisite-ultimate'), - 'LDS' => __('Leeds', 'multisite-ultimate'), - 'LEC' => __('Leicestershire', 'multisite-ultimate'), - 'LMV' => __('Limavady Borough Council', 'multisite-ultimate'), - 'LIN' => __('Lincolnshire', 'multisite-ultimate'), - 'LSB' => __('Lisburn City Council', 'multisite-ultimate'), - 'LBC' => __('Lisburn and Castlereagh', 'multisite-ultimate'), - 'LIV' => __('Liverpool', 'multisite-ultimate'), - 'BDG' => __('London Borough of Barking and Dagenham', 'multisite-ultimate'), - 'BNE' => __('London Borough of Barnet', 'multisite-ultimate'), - 'BEX' => __('London Borough of Bexley', 'multisite-ultimate'), - 'BEN' => __('London Borough of Brent', 'multisite-ultimate'), - 'BRY' => __('London Borough of Bromley', 'multisite-ultimate'), - 'CMD' => __('London Borough of Camden', 'multisite-ultimate'), - 'CRY' => __('London Borough of Croydon', 'multisite-ultimate'), - 'EAL' => __('London Borough of Ealing', 'multisite-ultimate'), - 'ENF' => __('London Borough of Enfield', 'multisite-ultimate'), - 'HCK' => __('London Borough of Hackney', 'multisite-ultimate'), - 'HMF' => __('London Borough of Hammersmith and Fulham', 'multisite-ultimate'), - 'HRY' => __('London Borough of Haringey', 'multisite-ultimate'), - 'HRW' => __('London Borough of Harrow', 'multisite-ultimate'), - 'HAV' => __('London Borough of Havering', 'multisite-ultimate'), - 'HIL' => __('London Borough of Hillingdon', 'multisite-ultimate'), - 'HNS' => __('London Borough of Hounslow', 'multisite-ultimate'), - 'ISL' => __('London Borough of Islington', 'multisite-ultimate'), - 'LBH' => __('London Borough of Lambeth', 'multisite-ultimate'), - 'LEW' => __('London Borough of Lewisham', 'multisite-ultimate'), - 'MRT' => __('London Borough of Merton', 'multisite-ultimate'), - 'NWM' => __('London Borough of Newham', 'multisite-ultimate'), - 'RDB' => __('London Borough of Redbridge', 'multisite-ultimate'), - 'RIC' => __('London Borough of Richmond upon Thames', 'multisite-ultimate'), - 'SWK' => __('London Borough of Southwark', 'multisite-ultimate'), - 'STN' => __('London Borough of Sutton', 'multisite-ultimate'), - 'TWH' => __('London Borough of Tower Hamlets', 'multisite-ultimate'), - 'WFT' => __('London Borough of Waltham Forest', 'multisite-ultimate'), - 'WND' => __('London Borough of Wandsworth', 'multisite-ultimate'), - 'MFT' => __('Magherafelt District Council', 'multisite-ultimate'), - 'MAN' => __('Manchester', 'multisite-ultimate'), - 'MDW' => __('Medway', 'multisite-ultimate'), - 'MTY' => __('Merthyr Tydfil County Borough', 'multisite-ultimate'), - 'WGN' => __('Metropolitan Borough of Wigan', 'multisite-ultimate'), - 'MUL' => __('Mid Ulster', 'multisite-ultimate'), - 'MEA' => __('Mid and East Antrim', 'multisite-ultimate'), - 'MDB' => __('Middlesbrough', 'multisite-ultimate'), - 'MLN' => __('Midlothian', 'multisite-ultimate'), - 'MIK' => __('Milton Keynes', 'multisite-ultimate'), - 'MON' => __('Monmouthshire', 'multisite-ultimate'), - 'MRY' => __('Moray', 'multisite-ultimate'), - 'MYL' => __('Moyle District Council', 'multisite-ultimate'), - 'NTL' => __('Neath Port Talbot County Borough', 'multisite-ultimate'), - 'NET' => __('Newcastle upon Tyne', 'multisite-ultimate'), - 'NWP' => __('Newport', 'multisite-ultimate'), - 'NYM' => __('Newry and Mourne District Council', 'multisite-ultimate'), - 'NMD' => __('Newry, Mourne and Down', 'multisite-ultimate'), - 'NTA' => __('Newtownabbey Borough Council', 'multisite-ultimate'), - 'NFK' => __('Norfolk', 'multisite-ultimate'), - 'NAY' => __('North Ayrshire', 'multisite-ultimate'), - 'NDN' => __('North Down Borough Council', 'multisite-ultimate'), - 'NEL' => __('North East Lincolnshire', 'multisite-ultimate'), - 'NLK' => __('North Lanarkshire', 'multisite-ultimate'), - 'NLN' => __('North Lincolnshire', 'multisite-ultimate'), - 'NSM' => __('North Somerset', 'multisite-ultimate'), - 'NTY' => __('North Tyneside', 'multisite-ultimate'), - 'NYK' => __('North Yorkshire', 'multisite-ultimate'), - 'NTH' => __('Northamptonshire', 'multisite-ultimate'), - 'NIR' => __('Northern Ireland', 'multisite-ultimate'), - 'NBL' => __('Northumberland', 'multisite-ultimate'), - 'NTT' => __('Nottinghamshire', 'multisite-ultimate'), - 'OLD' => __('Oldham', 'multisite-ultimate'), - 'OMH' => __('Omagh District Council', 'multisite-ultimate'), - 'ORK' => __('Orkney Islands', 'multisite-ultimate'), - 'ELS' => __('Outer Hebrides', 'multisite-ultimate'), - 'OXF' => __('Oxfordshire', 'multisite-ultimate'), - 'PEM' => __('Pembrokeshire', 'multisite-ultimate'), - 'PKN' => __('Perth and Kinross', 'multisite-ultimate'), - 'POL' => __('Poole', 'multisite-ultimate'), - 'POW' => __('Powys', 'multisite-ultimate'), - 'RDG' => __('Reading', 'multisite-ultimate'), - 'RCC' => __('Redcar and Cleveland', 'multisite-ultimate'), - 'RFW' => __('Renfrewshire', 'multisite-ultimate'), - 'RCT' => __('Rhondda Cynon Taf', 'multisite-ultimate'), - 'RCH' => __('Rochdale', 'multisite-ultimate'), - 'ROT' => __('Rotherham', 'multisite-ultimate'), - 'GRE' => __('Royal Borough of Greenwich', 'multisite-ultimate'), - 'KEC' => __('Royal Borough of Kensington and Chelsea', 'multisite-ultimate'), - 'KTT' => __('Royal Borough of Kingston upon Thames', 'multisite-ultimate'), - 'RUT' => __('Rutland', 'multisite-ultimate'), - 'SH-HL' => __('Saint Helena', 'multisite-ultimate'), - 'SLF' => __('Salford', 'multisite-ultimate'), - 'SAW' => __('Sandwell', 'multisite-ultimate'), - 'SCT' => __('Scotland', 'multisite-ultimate'), - 'SCB' => __('Scottish Borders', 'multisite-ultimate'), - 'SFT' => __('Sefton', 'multisite-ultimate'), - 'SHF' => __('Sheffield', 'multisite-ultimate'), - 'ZET' => __('Shetland Islands', 'multisite-ultimate'), - 'SHR' => __('Shropshire', 'multisite-ultimate'), - 'SLG' => __('Slough', 'multisite-ultimate'), - 'SOL' => __('Solihull', 'multisite-ultimate'), - 'SOM' => __('Somerset', 'multisite-ultimate'), - 'SAY' => __('South Ayrshire', 'multisite-ultimate'), - 'SGC' => __('South Gloucestershire', 'multisite-ultimate'), - 'SLK' => __('South Lanarkshire', 'multisite-ultimate'), - 'STY' => __('South Tyneside', 'multisite-ultimate'), - 'SOS' => __('Southend-on-Sea', 'multisite-ultimate'), - 'SHN' => __('St Helens', 'multisite-ultimate'), - 'STS' => __('Staffordshire', 'multisite-ultimate'), - 'STG' => __('Stirling', 'multisite-ultimate'), - 'SKP' => __('Stockport', 'multisite-ultimate'), - 'STT' => __('Stockton-on-Tees', 'multisite-ultimate'), - 'STB' => __('Strabane District Council', 'multisite-ultimate'), - 'SFK' => __('Suffolk', 'multisite-ultimate'), - 'SRY' => __('Surrey', 'multisite-ultimate'), - 'SWD' => __('Swindon', 'multisite-ultimate'), - 'TAM' => __('Tameside', 'multisite-ultimate'), - 'TFW' => __('Telford and Wrekin', 'multisite-ultimate'), - 'THR' => __('Thurrock', 'multisite-ultimate'), - 'TOB' => __('Torbay', 'multisite-ultimate'), - 'TOF' => __('Torfaen', 'multisite-ultimate'), - 'TRF' => __('Trafford', 'multisite-ultimate'), - 'UKM' => __('United Kingdom', 'multisite-ultimate'), - 'VGL' => __('Vale of Glamorgan', 'multisite-ultimate'), - 'WKF' => __('Wakefield', 'multisite-ultimate'), - 'WLS' => __('Wales', 'multisite-ultimate'), - 'WLL' => __('Walsall', 'multisite-ultimate'), - 'WRT' => __('Warrington', 'multisite-ultimate'), - 'WAR' => __('Warwickshire', 'multisite-ultimate'), - 'WBK' => __('West Berkshire', 'multisite-ultimate'), - 'WDU' => __('West Dunbartonshire', 'multisite-ultimate'), - 'WLN' => __('West Lothian', 'multisite-ultimate'), - 'WSX' => __('West Sussex', 'multisite-ultimate'), - 'WIL' => __('Wiltshire', 'multisite-ultimate'), - 'WNM' => __('Windsor and Maidenhead', 'multisite-ultimate'), - 'WRL' => __('Wirral', 'multisite-ultimate'), - 'WOK' => __('Wokingham', 'multisite-ultimate'), - 'WOR' => __('Worcestershire', 'multisite-ultimate'), - 'WRX' => __('Wrexham County Borough', 'multisite-ultimate'), + 'ABE' => __('Aberdeen', 'ultimate-multisite'), + 'ABD' => __('Aberdeenshire', 'ultimate-multisite'), + 'ANS' => __('Angus', 'ultimate-multisite'), + 'ANT' => __('Antrim', 'ultimate-multisite'), + 'ANN' => __('Antrim and Newtownabbey', 'ultimate-multisite'), + 'ARD' => __('Ards', 'ultimate-multisite'), + 'AND' => __('Ards and North Down', 'ultimate-multisite'), + 'AGB' => __('Argyll and Bute', 'ultimate-multisite'), + 'ARM' => __('Armagh City and District Council', 'ultimate-multisite'), + 'ABC' => __('Armagh, Banbridge and Craigavon', 'ultimate-multisite'), + 'SH-AC' => __('Ascension Island', 'ultimate-multisite'), + 'BLA' => __('Ballymena Borough', 'ultimate-multisite'), + 'BLY' => __('Ballymoney', 'ultimate-multisite'), + 'BNB' => __('Banbridge', 'ultimate-multisite'), + 'BNS' => __('Barnsley', 'ultimate-multisite'), + 'BAS' => __('Bath and North East Somerset', 'ultimate-multisite'), + 'BDF' => __('Bedford', 'ultimate-multisite'), + 'BFS' => __('Belfast district', 'ultimate-multisite'), + 'BIR' => __('Birmingham', 'ultimate-multisite'), + 'BBD' => __('Blackburn with Darwen', 'ultimate-multisite'), + 'BPL' => __('Blackpool', 'ultimate-multisite'), + 'BGW' => __('Blaenau Gwent County Borough', 'ultimate-multisite'), + 'BOL' => __('Bolton', 'ultimate-multisite'), + 'BMH' => __('Bournemouth', 'ultimate-multisite'), + 'BRC' => __('Bracknell Forest', 'ultimate-multisite'), + 'BRD' => __('Bradford', 'ultimate-multisite'), + 'BGE' => __('Bridgend County Borough', 'ultimate-multisite'), + 'BNH' => __('Brighton and Hove', 'ultimate-multisite'), + 'BKM' => __('Buckinghamshire', 'ultimate-multisite'), + 'BUR' => __('Bury', 'ultimate-multisite'), + 'CAY' => __('Caerphilly County Borough', 'ultimate-multisite'), + 'CLD' => __('Calderdale', 'ultimate-multisite'), + 'CAM' => __('Cambridgeshire', 'ultimate-multisite'), + 'CMN' => __('Carmarthenshire', 'ultimate-multisite'), + 'CKF' => __('Carrickfergus Borough Council', 'ultimate-multisite'), + 'CSR' => __('Castlereagh', 'ultimate-multisite'), + 'CCG' => __('Causeway Coast and Glens', 'ultimate-multisite'), + 'CBF' => __('Central Bedfordshire', 'ultimate-multisite'), + 'CGN' => __('Ceredigion', 'ultimate-multisite'), + 'CHE' => __('Cheshire East', 'ultimate-multisite'), + 'CHW' => __('Cheshire West and Chester', 'ultimate-multisite'), + 'CRF' => __('City and County of Cardiff', 'ultimate-multisite'), + 'SWA' => __('City and County of Swansea', 'ultimate-multisite'), + 'BST' => __('City of Bristol', 'ultimate-multisite'), + 'DER' => __('City of Derby', 'ultimate-multisite'), + 'KHL' => __('City of Kingston upon Hull', 'ultimate-multisite'), + 'LCE' => __('City of Leicester', 'ultimate-multisite'), + 'LND' => __('City of London', 'ultimate-multisite'), + 'NGM' => __('City of Nottingham', 'ultimate-multisite'), + 'PTE' => __('City of Peterborough', 'ultimate-multisite'), + 'PLY' => __('City of Plymouth', 'ultimate-multisite'), + 'POR' => __('City of Portsmouth', 'ultimate-multisite'), + 'STH' => __('City of Southampton', 'ultimate-multisite'), + 'STE' => __('City of Stoke-on-Trent', 'ultimate-multisite'), + 'SND' => __('City of Sunderland', 'ultimate-multisite'), + 'WSM' => __('City of Westminster', 'ultimate-multisite'), + 'WLV' => __('City of Wolverhampton', 'ultimate-multisite'), + 'YOR' => __('City of York', 'ultimate-multisite'), + 'CLK' => __('Clackmannanshire', 'ultimate-multisite'), + 'CLR' => __('Coleraine Borough Council', 'ultimate-multisite'), + 'CWY' => __('Conwy County Borough', 'ultimate-multisite'), + 'CKT' => __('Cookstown District Council', 'ultimate-multisite'), + 'CON' => __('Cornwall', 'ultimate-multisite'), + 'DUR' => __('County Durham', 'ultimate-multisite'), + 'COV' => __('Coventry', 'ultimate-multisite'), + 'CGV' => __('Craigavon Borough Council', 'ultimate-multisite'), + 'CMA' => __('Cumbria', 'ultimate-multisite'), + 'DAL' => __('Darlington', 'ultimate-multisite'), + 'DEN' => __('Denbighshire', 'ultimate-multisite'), + 'DBY' => __('Derbyshire', 'ultimate-multisite'), + 'DRY' => __('Derry City Council', 'ultimate-multisite'), + 'DRS' => __('Derry City and Strabane', 'ultimate-multisite'), + 'DEV' => __('Devon', 'ultimate-multisite'), + 'DNC' => __('Doncaster', 'ultimate-multisite'), + 'DOR' => __('Dorset', 'ultimate-multisite'), + 'DOW' => __('Down District Council', 'ultimate-multisite'), + 'DUD' => __('Dudley', 'ultimate-multisite'), + 'DGY' => __('Dumfries and Galloway', 'ultimate-multisite'), + 'DND' => __('Dundee', 'ultimate-multisite'), + 'DGN' => __('Dungannon and South Tyrone Borough Council', 'ultimate-multisite'), + 'EAY' => __('East Ayrshire', 'ultimate-multisite'), + 'EDU' => __('East Dunbartonshire', 'ultimate-multisite'), + 'ELN' => __('East Lothian', 'ultimate-multisite'), + 'ERW' => __('East Renfrewshire', 'ultimate-multisite'), + 'ERY' => __('East Riding of Yorkshire', 'ultimate-multisite'), + 'ESX' => __('East Sussex', 'ultimate-multisite'), + 'EDH' => __('Edinburgh', 'ultimate-multisite'), + 'ENG' => __('England', 'ultimate-multisite'), + 'ESS' => __('Essex', 'ultimate-multisite'), + 'FAL' => __('Falkirk', 'ultimate-multisite'), + 'FER' => __('Fermanagh District Council', 'ultimate-multisite'), + 'FMO' => __('Fermanagh and Omagh', 'ultimate-multisite'), + 'FIF' => __('Fife', 'ultimate-multisite'), + 'FLN' => __('Flintshire', 'ultimate-multisite'), + 'GAT' => __('Gateshead', 'ultimate-multisite'), + 'GLG' => __('Glasgow', 'ultimate-multisite'), + 'GLS' => __('Gloucestershire', 'ultimate-multisite'), + 'GWN' => __('Gwynedd', 'ultimate-multisite'), + 'HAL' => __('Halton', 'ultimate-multisite'), + 'HAM' => __('Hampshire', 'ultimate-multisite'), + 'HPL' => __('Hartlepool', 'ultimate-multisite'), + 'HEF' => __('Herefordshire', 'ultimate-multisite'), + 'HRT' => __('Hertfordshire', 'ultimate-multisite'), + 'HLD' => __('Highland', 'ultimate-multisite'), + 'IVC' => __('Inverclyde', 'ultimate-multisite'), + 'IOW' => __('Isle of Wight', 'ultimate-multisite'), + 'IOS' => __('Isles of Scilly', 'ultimate-multisite'), + 'KEN' => __('Kent', 'ultimate-multisite'), + 'KIR' => __('Kirklees', 'ultimate-multisite'), + 'KWL' => __('Knowsley', 'ultimate-multisite'), + 'LAN' => __('Lancashire', 'ultimate-multisite'), + 'LRN' => __('Larne Borough Council', 'ultimate-multisite'), + 'LDS' => __('Leeds', 'ultimate-multisite'), + 'LEC' => __('Leicestershire', 'ultimate-multisite'), + 'LMV' => __('Limavady Borough Council', 'ultimate-multisite'), + 'LIN' => __('Lincolnshire', 'ultimate-multisite'), + 'LSB' => __('Lisburn City Council', 'ultimate-multisite'), + 'LBC' => __('Lisburn and Castlereagh', 'ultimate-multisite'), + 'LIV' => __('Liverpool', 'ultimate-multisite'), + 'BDG' => __('London Borough of Barking and Dagenham', 'ultimate-multisite'), + 'BNE' => __('London Borough of Barnet', 'ultimate-multisite'), + 'BEX' => __('London Borough of Bexley', 'ultimate-multisite'), + 'BEN' => __('London Borough of Brent', 'ultimate-multisite'), + 'BRY' => __('London Borough of Bromley', 'ultimate-multisite'), + 'CMD' => __('London Borough of Camden', 'ultimate-multisite'), + 'CRY' => __('London Borough of Croydon', 'ultimate-multisite'), + 'EAL' => __('London Borough of Ealing', 'ultimate-multisite'), + 'ENF' => __('London Borough of Enfield', 'ultimate-multisite'), + 'HCK' => __('London Borough of Hackney', 'ultimate-multisite'), + 'HMF' => __('London Borough of Hammersmith and Fulham', 'ultimate-multisite'), + 'HRY' => __('London Borough of Haringey', 'ultimate-multisite'), + 'HRW' => __('London Borough of Harrow', 'ultimate-multisite'), + 'HAV' => __('London Borough of Havering', 'ultimate-multisite'), + 'HIL' => __('London Borough of Hillingdon', 'ultimate-multisite'), + 'HNS' => __('London Borough of Hounslow', 'ultimate-multisite'), + 'ISL' => __('London Borough of Islington', 'ultimate-multisite'), + 'LBH' => __('London Borough of Lambeth', 'ultimate-multisite'), + 'LEW' => __('London Borough of Lewisham', 'ultimate-multisite'), + 'MRT' => __('London Borough of Merton', 'ultimate-multisite'), + 'NWM' => __('London Borough of Newham', 'ultimate-multisite'), + 'RDB' => __('London Borough of Redbridge', 'ultimate-multisite'), + 'RIC' => __('London Borough of Richmond upon Thames', 'ultimate-multisite'), + 'SWK' => __('London Borough of Southwark', 'ultimate-multisite'), + 'STN' => __('London Borough of Sutton', 'ultimate-multisite'), + 'TWH' => __('London Borough of Tower Hamlets', 'ultimate-multisite'), + 'WFT' => __('London Borough of Waltham Forest', 'ultimate-multisite'), + 'WND' => __('London Borough of Wandsworth', 'ultimate-multisite'), + 'MFT' => __('Magherafelt District Council', 'ultimate-multisite'), + 'MAN' => __('Manchester', 'ultimate-multisite'), + 'MDW' => __('Medway', 'ultimate-multisite'), + 'MTY' => __('Merthyr Tydfil County Borough', 'ultimate-multisite'), + 'WGN' => __('Metropolitan Borough of Wigan', 'ultimate-multisite'), + 'MUL' => __('Mid Ulster', 'ultimate-multisite'), + 'MEA' => __('Mid and East Antrim', 'ultimate-multisite'), + 'MDB' => __('Middlesbrough', 'ultimate-multisite'), + 'MLN' => __('Midlothian', 'ultimate-multisite'), + 'MIK' => __('Milton Keynes', 'ultimate-multisite'), + 'MON' => __('Monmouthshire', 'ultimate-multisite'), + 'MRY' => __('Moray', 'ultimate-multisite'), + 'MYL' => __('Moyle District Council', 'ultimate-multisite'), + 'NTL' => __('Neath Port Talbot County Borough', 'ultimate-multisite'), + 'NET' => __('Newcastle upon Tyne', 'ultimate-multisite'), + 'NWP' => __('Newport', 'ultimate-multisite'), + 'NYM' => __('Newry and Mourne District Council', 'ultimate-multisite'), + 'NMD' => __('Newry, Mourne and Down', 'ultimate-multisite'), + 'NTA' => __('Newtownabbey Borough Council', 'ultimate-multisite'), + 'NFK' => __('Norfolk', 'ultimate-multisite'), + 'NAY' => __('North Ayrshire', 'ultimate-multisite'), + 'NDN' => __('North Down Borough Council', 'ultimate-multisite'), + 'NEL' => __('North East Lincolnshire', 'ultimate-multisite'), + 'NLK' => __('North Lanarkshire', 'ultimate-multisite'), + 'NLN' => __('North Lincolnshire', 'ultimate-multisite'), + 'NSM' => __('North Somerset', 'ultimate-multisite'), + 'NTY' => __('North Tyneside', 'ultimate-multisite'), + 'NYK' => __('North Yorkshire', 'ultimate-multisite'), + 'NTH' => __('Northamptonshire', 'ultimate-multisite'), + 'NIR' => __('Northern Ireland', 'ultimate-multisite'), + 'NBL' => __('Northumberland', 'ultimate-multisite'), + 'NTT' => __('Nottinghamshire', 'ultimate-multisite'), + 'OLD' => __('Oldham', 'ultimate-multisite'), + 'OMH' => __('Omagh District Council', 'ultimate-multisite'), + 'ORK' => __('Orkney Islands', 'ultimate-multisite'), + 'ELS' => __('Outer Hebrides', 'ultimate-multisite'), + 'OXF' => __('Oxfordshire', 'ultimate-multisite'), + 'PEM' => __('Pembrokeshire', 'ultimate-multisite'), + 'PKN' => __('Perth and Kinross', 'ultimate-multisite'), + 'POL' => __('Poole', 'ultimate-multisite'), + 'POW' => __('Powys', 'ultimate-multisite'), + 'RDG' => __('Reading', 'ultimate-multisite'), + 'RCC' => __('Redcar and Cleveland', 'ultimate-multisite'), + 'RFW' => __('Renfrewshire', 'ultimate-multisite'), + 'RCT' => __('Rhondda Cynon Taf', 'ultimate-multisite'), + 'RCH' => __('Rochdale', 'ultimate-multisite'), + 'ROT' => __('Rotherham', 'ultimate-multisite'), + 'GRE' => __('Royal Borough of Greenwich', 'ultimate-multisite'), + 'KEC' => __('Royal Borough of Kensington and Chelsea', 'ultimate-multisite'), + 'KTT' => __('Royal Borough of Kingston upon Thames', 'ultimate-multisite'), + 'RUT' => __('Rutland', 'ultimate-multisite'), + 'SH-HL' => __('Saint Helena', 'ultimate-multisite'), + 'SLF' => __('Salford', 'ultimate-multisite'), + 'SAW' => __('Sandwell', 'ultimate-multisite'), + 'SCT' => __('Scotland', 'ultimate-multisite'), + 'SCB' => __('Scottish Borders', 'ultimate-multisite'), + 'SFT' => __('Sefton', 'ultimate-multisite'), + 'SHF' => __('Sheffield', 'ultimate-multisite'), + 'ZET' => __('Shetland Islands', 'ultimate-multisite'), + 'SHR' => __('Shropshire', 'ultimate-multisite'), + 'SLG' => __('Slough', 'ultimate-multisite'), + 'SOL' => __('Solihull', 'ultimate-multisite'), + 'SOM' => __('Somerset', 'ultimate-multisite'), + 'SAY' => __('South Ayrshire', 'ultimate-multisite'), + 'SGC' => __('South Gloucestershire', 'ultimate-multisite'), + 'SLK' => __('South Lanarkshire', 'ultimate-multisite'), + 'STY' => __('South Tyneside', 'ultimate-multisite'), + 'SOS' => __('Southend-on-Sea', 'ultimate-multisite'), + 'SHN' => __('St Helens', 'ultimate-multisite'), + 'STS' => __('Staffordshire', 'ultimate-multisite'), + 'STG' => __('Stirling', 'ultimate-multisite'), + 'SKP' => __('Stockport', 'ultimate-multisite'), + 'STT' => __('Stockton-on-Tees', 'ultimate-multisite'), + 'STB' => __('Strabane District Council', 'ultimate-multisite'), + 'SFK' => __('Suffolk', 'ultimate-multisite'), + 'SRY' => __('Surrey', 'ultimate-multisite'), + 'SWD' => __('Swindon', 'ultimate-multisite'), + 'TAM' => __('Tameside', 'ultimate-multisite'), + 'TFW' => __('Telford and Wrekin', 'ultimate-multisite'), + 'THR' => __('Thurrock', 'ultimate-multisite'), + 'TOB' => __('Torbay', 'ultimate-multisite'), + 'TOF' => __('Torfaen', 'ultimate-multisite'), + 'TRF' => __('Trafford', 'ultimate-multisite'), + 'UKM' => __('United Kingdom', 'ultimate-multisite'), + 'VGL' => __('Vale of Glamorgan', 'ultimate-multisite'), + 'WKF' => __('Wakefield', 'ultimate-multisite'), + 'WLS' => __('Wales', 'ultimate-multisite'), + 'WLL' => __('Walsall', 'ultimate-multisite'), + 'WRT' => __('Warrington', 'ultimate-multisite'), + 'WAR' => __('Warwickshire', 'ultimate-multisite'), + 'WBK' => __('West Berkshire', 'ultimate-multisite'), + 'WDU' => __('West Dunbartonshire', 'ultimate-multisite'), + 'WLN' => __('West Lothian', 'ultimate-multisite'), + 'WSX' => __('West Sussex', 'ultimate-multisite'), + 'WIL' => __('Wiltshire', 'ultimate-multisite'), + 'WNM' => __('Windsor and Maidenhead', 'ultimate-multisite'), + 'WRL' => __('Wirral', 'ultimate-multisite'), + 'WOK' => __('Wokingham', 'ultimate-multisite'), + 'WOR' => __('Worcestershire', 'ultimate-multisite'), + 'WRX' => __('Wrexham County Borough', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-in.php b/inc/country/class-country-in.php index e17eb181d..ae87f9ca2 100644 --- a/inc/country/class-country-in.php +++ b/inc/country/class-country-in.php @@ -99,7 +99,7 @@ class Country_IN extends Country { */ public function get_name() { - return __('India', 'multisite-ultimate'); + return __('India', 'ultimate-multisite'); } /** @@ -111,42 +111,42 @@ public function get_name() { protected function states() { return [ - 'AN' => __('Andaman and Nicobar Islands', 'multisite-ultimate'), - 'AP' => __('Andhra Pradesh', 'multisite-ultimate'), - 'AR' => __('Arunachal Pradesh', 'multisite-ultimate'), - 'AS' => __('Assam', 'multisite-ultimate'), - 'BR' => __('Bihar', 'multisite-ultimate'), - 'CH' => __('Chandigarh', 'multisite-ultimate'), - 'CT' => __('Chhattisgarh', 'multisite-ultimate'), - 'DH' => __('Dadra and Nagar Haveli and Daman and Diu', 'multisite-ultimate'), - 'DL' => __('Delhi', 'multisite-ultimate'), - 'GA' => __('Goa', 'multisite-ultimate'), - 'GJ' => __('Gujarat', 'multisite-ultimate'), - 'HR' => __('Haryana', 'multisite-ultimate'), - 'HP' => __('Himachal Pradesh', 'multisite-ultimate'), - 'JK' => __('Jammu and Kashmir', 'multisite-ultimate'), - 'JH' => __('Jharkhand', 'multisite-ultimate'), - 'KA' => __('Karnataka', 'multisite-ultimate'), - 'KL' => __('Kerala', 'multisite-ultimate'), - 'LA' => __('Ladakh', 'multisite-ultimate'), - 'LD' => __('Lakshadweep', 'multisite-ultimate'), - 'MP' => __('Madhya Pradesh', 'multisite-ultimate'), - 'MH' => __('Maharashtra', 'multisite-ultimate'), - 'MN' => __('Manipur', 'multisite-ultimate'), - 'ML' => __('Meghalaya', 'multisite-ultimate'), - 'MZ' => __('Mizoram', 'multisite-ultimate'), - 'NL' => __('Nagaland', 'multisite-ultimate'), - 'OR' => __('Odisha', 'multisite-ultimate'), - 'PY' => __('Puducherry', 'multisite-ultimate'), - 'PB' => __('Punjab', 'multisite-ultimate'), - 'RJ' => __('Rajasthan', 'multisite-ultimate'), - 'SK' => __('Sikkim', 'multisite-ultimate'), - 'TN' => __('Tamil Nadu', 'multisite-ultimate'), - 'TG' => __('Telangana', 'multisite-ultimate'), - 'TR' => __('Tripura', 'multisite-ultimate'), - 'UP' => __('Uttar Pradesh', 'multisite-ultimate'), - 'UT' => __('Uttarakhand', 'multisite-ultimate'), - 'WB' => __('West Bengal', 'multisite-ultimate'), + 'AN' => __('Andaman and Nicobar Islands', 'ultimate-multisite'), + 'AP' => __('Andhra Pradesh', 'ultimate-multisite'), + 'AR' => __('Arunachal Pradesh', 'ultimate-multisite'), + 'AS' => __('Assam', 'ultimate-multisite'), + 'BR' => __('Bihar', 'ultimate-multisite'), + 'CH' => __('Chandigarh', 'ultimate-multisite'), + 'CT' => __('Chhattisgarh', 'ultimate-multisite'), + 'DH' => __('Dadra and Nagar Haveli and Daman and Diu', 'ultimate-multisite'), + 'DL' => __('Delhi', 'ultimate-multisite'), + 'GA' => __('Goa', 'ultimate-multisite'), + 'GJ' => __('Gujarat', 'ultimate-multisite'), + 'HR' => __('Haryana', 'ultimate-multisite'), + 'HP' => __('Himachal Pradesh', 'ultimate-multisite'), + 'JK' => __('Jammu and Kashmir', 'ultimate-multisite'), + 'JH' => __('Jharkhand', 'ultimate-multisite'), + 'KA' => __('Karnataka', 'ultimate-multisite'), + 'KL' => __('Kerala', 'ultimate-multisite'), + 'LA' => __('Ladakh', 'ultimate-multisite'), + 'LD' => __('Lakshadweep', 'ultimate-multisite'), + 'MP' => __('Madhya Pradesh', 'ultimate-multisite'), + 'MH' => __('Maharashtra', 'ultimate-multisite'), + 'MN' => __('Manipur', 'ultimate-multisite'), + 'ML' => __('Meghalaya', 'ultimate-multisite'), + 'MZ' => __('Mizoram', 'ultimate-multisite'), + 'NL' => __('Nagaland', 'ultimate-multisite'), + 'OR' => __('Odisha', 'ultimate-multisite'), + 'PY' => __('Puducherry', 'ultimate-multisite'), + 'PB' => __('Punjab', 'ultimate-multisite'), + 'RJ' => __('Rajasthan', 'ultimate-multisite'), + 'SK' => __('Sikkim', 'ultimate-multisite'), + 'TN' => __('Tamil Nadu', 'ultimate-multisite'), + 'TG' => __('Telangana', 'ultimate-multisite'), + 'TR' => __('Tripura', 'ultimate-multisite'), + 'UP' => __('Uttar Pradesh', 'ultimate-multisite'), + 'UT' => __('Uttarakhand', 'ultimate-multisite'), + 'WB' => __('West Bengal', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-jp.php b/inc/country/class-country-jp.php index 0546f266f..f70e81342 100644 --- a/inc/country/class-country-jp.php +++ b/inc/country/class-country-jp.php @@ -110,7 +110,7 @@ class Country_JP extends Country { */ public function get_name() { - return __('Japan', 'multisite-ultimate'); + return __('Japan', 'ultimate-multisite'); } /** @@ -122,53 +122,53 @@ public function get_name() { protected function states() { return [ - '10' => __('Gunma Prefecture', 'multisite-ultimate'), - '11' => __('Saitama Prefecture', 'multisite-ultimate'), - '12' => __('Chiba Prefecture', 'multisite-ultimate'), - '13' => __('Tokyo', 'multisite-ultimate'), - '14' => __('Kanagawa Prefecture', 'multisite-ultimate'), - '15' => __('Niigata Prefecture', 'multisite-ultimate'), - '16' => __('Toyama Prefecture', 'multisite-ultimate'), - '17' => __('Ishikawa Prefecture', 'multisite-ultimate'), - '18' => __('Fukui Prefecture', 'multisite-ultimate'), - '19' => __('Yamanashi Prefecture', 'multisite-ultimate'), - '20' => __('Nagano Prefecture', 'multisite-ultimate'), - '21' => __('Gifu Prefecture', 'multisite-ultimate'), - '22' => __('Shizuoka Prefecture', 'multisite-ultimate'), - '23' => __('Aichi Prefecture', 'multisite-ultimate'), - '24' => __('Mie Prefecture', 'multisite-ultimate'), - '25' => __('Shiga Prefecture', 'multisite-ultimate'), - '26' => __('Kyōto Prefecture', 'multisite-ultimate'), - '27' => __('Ōsaka Prefecture', 'multisite-ultimate'), - '28' => __('Hyōgo Prefecture', 'multisite-ultimate'), - '29' => __('Nara Prefecture', 'multisite-ultimate'), - '30' => __('Wakayama Prefecture', 'multisite-ultimate'), - '31' => __('Tottori Prefecture', 'multisite-ultimate'), - '32' => __('Shimane Prefecture', 'multisite-ultimate'), - '33' => __('Okayama Prefecture', 'multisite-ultimate'), - '34' => __('Hiroshima Prefecture', 'multisite-ultimate'), - '35' => __('Yamaguchi Prefecture', 'multisite-ultimate'), - '36' => __('Tokushima Prefecture', 'multisite-ultimate'), - '37' => __('Kagawa Prefecture', 'multisite-ultimate'), - '38' => __('Ehime Prefecture', 'multisite-ultimate'), - '39' => __('Kōchi Prefecture', 'multisite-ultimate'), - '40' => __('Fukuoka Prefecture', 'multisite-ultimate'), - '41' => __('Saga Prefecture', 'multisite-ultimate'), - '42' => __('Nagasaki Prefecture', 'multisite-ultimate'), - '43' => __('Kumamoto Prefecture', 'multisite-ultimate'), - '44' => __('Ōita Prefecture', 'multisite-ultimate'), - '45' => __('Miyazaki Prefecture', 'multisite-ultimate'), - '46' => __('Kagoshima Prefecture', 'multisite-ultimate'), - '47' => __('Okinawa Prefecture', 'multisite-ultimate'), - '05' => __('Akita Prefecture', 'multisite-ultimate'), - '02' => __('Aomori Prefecture', 'multisite-ultimate'), - '07' => __('Fukushima Prefecture', 'multisite-ultimate'), - '01' => __('Hokkaidō Prefecture', 'multisite-ultimate'), - '08' => __('Ibaraki Prefecture', 'multisite-ultimate'), - '03' => __('Iwate Prefecture', 'multisite-ultimate'), - '04' => __('Miyagi Prefecture', 'multisite-ultimate'), - '09' => __('Tochigi Prefecture', 'multisite-ultimate'), - '06' => __('Yamagata Prefecture', 'multisite-ultimate'), + '10' => __('Gunma Prefecture', 'ultimate-multisite'), + '11' => __('Saitama Prefecture', 'ultimate-multisite'), + '12' => __('Chiba Prefecture', 'ultimate-multisite'), + '13' => __('Tokyo', 'ultimate-multisite'), + '14' => __('Kanagawa Prefecture', 'ultimate-multisite'), + '15' => __('Niigata Prefecture', 'ultimate-multisite'), + '16' => __('Toyama Prefecture', 'ultimate-multisite'), + '17' => __('Ishikawa Prefecture', 'ultimate-multisite'), + '18' => __('Fukui Prefecture', 'ultimate-multisite'), + '19' => __('Yamanashi Prefecture', 'ultimate-multisite'), + '20' => __('Nagano Prefecture', 'ultimate-multisite'), + '21' => __('Gifu Prefecture', 'ultimate-multisite'), + '22' => __('Shizuoka Prefecture', 'ultimate-multisite'), + '23' => __('Aichi Prefecture', 'ultimate-multisite'), + '24' => __('Mie Prefecture', 'ultimate-multisite'), + '25' => __('Shiga Prefecture', 'ultimate-multisite'), + '26' => __('Kyōto Prefecture', 'ultimate-multisite'), + '27' => __('Ōsaka Prefecture', 'ultimate-multisite'), + '28' => __('Hyōgo Prefecture', 'ultimate-multisite'), + '29' => __('Nara Prefecture', 'ultimate-multisite'), + '30' => __('Wakayama Prefecture', 'ultimate-multisite'), + '31' => __('Tottori Prefecture', 'ultimate-multisite'), + '32' => __('Shimane Prefecture', 'ultimate-multisite'), + '33' => __('Okayama Prefecture', 'ultimate-multisite'), + '34' => __('Hiroshima Prefecture', 'ultimate-multisite'), + '35' => __('Yamaguchi Prefecture', 'ultimate-multisite'), + '36' => __('Tokushima Prefecture', 'ultimate-multisite'), + '37' => __('Kagawa Prefecture', 'ultimate-multisite'), + '38' => __('Ehime Prefecture', 'ultimate-multisite'), + '39' => __('Kōchi Prefecture', 'ultimate-multisite'), + '40' => __('Fukuoka Prefecture', 'ultimate-multisite'), + '41' => __('Saga Prefecture', 'ultimate-multisite'), + '42' => __('Nagasaki Prefecture', 'ultimate-multisite'), + '43' => __('Kumamoto Prefecture', 'ultimate-multisite'), + '44' => __('Ōita Prefecture', 'ultimate-multisite'), + '45' => __('Miyazaki Prefecture', 'ultimate-multisite'), + '46' => __('Kagoshima Prefecture', 'ultimate-multisite'), + '47' => __('Okinawa Prefecture', 'ultimate-multisite'), + '05' => __('Akita Prefecture', 'ultimate-multisite'), + '02' => __('Aomori Prefecture', 'ultimate-multisite'), + '07' => __('Fukushima Prefecture', 'ultimate-multisite'), + '01' => __('Hokkaidō Prefecture', 'ultimate-multisite'), + '08' => __('Ibaraki Prefecture', 'ultimate-multisite'), + '03' => __('Iwate Prefecture', 'ultimate-multisite'), + '04' => __('Miyagi Prefecture', 'ultimate-multisite'), + '09' => __('Tochigi Prefecture', 'ultimate-multisite'), + '06' => __('Yamagata Prefecture', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-mx.php b/inc/country/class-country-mx.php index f27cecbe2..840d50266 100644 --- a/inc/country/class-country-mx.php +++ b/inc/country/class-country-mx.php @@ -95,7 +95,7 @@ class Country_MX extends Country { */ public function get_name() { - return __('Mexico', 'multisite-ultimate'); + return __('Mexico', 'ultimate-multisite'); } /** @@ -107,38 +107,38 @@ public function get_name() { protected function states() { return [ - 'AGU' => __('Aguascalientes', 'multisite-ultimate'), - 'BCN' => __('Baja California', 'multisite-ultimate'), - 'BCS' => __('Baja California Sur', 'multisite-ultimate'), - 'CAM' => __('Campeche', 'multisite-ultimate'), - 'CHP' => __('Chiapas', 'multisite-ultimate'), - 'CHH' => __('Chihuahua', 'multisite-ultimate'), - 'CDMX' => __('Ciudad de México', 'multisite-ultimate'), - 'COA' => __('Coahuila de Zaragoza', 'multisite-ultimate'), - 'COL' => __('Colima', 'multisite-ultimate'), - 'DUR' => __('Durango', 'multisite-ultimate'), - 'MEX' => __('Estado de México', 'multisite-ultimate'), - 'GUA' => __('Guanajuato', 'multisite-ultimate'), - 'GRO' => __('Guerrero', 'multisite-ultimate'), - 'HID' => __('Hidalgo', 'multisite-ultimate'), - 'JAL' => __('Jalisco', 'multisite-ultimate'), - 'MIC' => __('Michoacán de Ocampo', 'multisite-ultimate'), - 'MOR' => __('Morelos', 'multisite-ultimate'), - 'NAY' => __('Nayarit', 'multisite-ultimate'), - 'NLE' => __('Nuevo León', 'multisite-ultimate'), - 'OAX' => __('Oaxaca', 'multisite-ultimate'), - 'PUE' => __('Puebla', 'multisite-ultimate'), - 'QUE' => __('Querétaro', 'multisite-ultimate'), - 'ROO' => __('Quintana Roo', 'multisite-ultimate'), - 'SLP' => __('San Luis Potosí', 'multisite-ultimate'), - 'SIN' => __('Sinaloa', 'multisite-ultimate'), - 'SON' => __('Sonora', 'multisite-ultimate'), - 'TAB' => __('Tabasco', 'multisite-ultimate'), - 'TAM' => __('Tamaulipas', 'multisite-ultimate'), - 'TLA' => __('Tlaxcala', 'multisite-ultimate'), - 'VER' => __('Veracruz de Ignacio de la Llave', 'multisite-ultimate'), - 'YUC' => __('Yucatán', 'multisite-ultimate'), - 'ZAC' => __('Zacatecas', 'multisite-ultimate'), + 'AGU' => __('Aguascalientes', 'ultimate-multisite'), + 'BCN' => __('Baja California', 'ultimate-multisite'), + 'BCS' => __('Baja California Sur', 'ultimate-multisite'), + 'CAM' => __('Campeche', 'ultimate-multisite'), + 'CHP' => __('Chiapas', 'ultimate-multisite'), + 'CHH' => __('Chihuahua', 'ultimate-multisite'), + 'CDMX' => __('Ciudad de México', 'ultimate-multisite'), + 'COA' => __('Coahuila de Zaragoza', 'ultimate-multisite'), + 'COL' => __('Colima', 'ultimate-multisite'), + 'DUR' => __('Durango', 'ultimate-multisite'), + 'MEX' => __('Estado de México', 'ultimate-multisite'), + 'GUA' => __('Guanajuato', 'ultimate-multisite'), + 'GRO' => __('Guerrero', 'ultimate-multisite'), + 'HID' => __('Hidalgo', 'ultimate-multisite'), + 'JAL' => __('Jalisco', 'ultimate-multisite'), + 'MIC' => __('Michoacán de Ocampo', 'ultimate-multisite'), + 'MOR' => __('Morelos', 'ultimate-multisite'), + 'NAY' => __('Nayarit', 'ultimate-multisite'), + 'NLE' => __('Nuevo León', 'ultimate-multisite'), + 'OAX' => __('Oaxaca', 'ultimate-multisite'), + 'PUE' => __('Puebla', 'ultimate-multisite'), + 'QUE' => __('Querétaro', 'ultimate-multisite'), + 'ROO' => __('Quintana Roo', 'ultimate-multisite'), + 'SLP' => __('San Luis Potosí', 'ultimate-multisite'), + 'SIN' => __('Sinaloa', 'ultimate-multisite'), + 'SON' => __('Sonora', 'ultimate-multisite'), + 'TAB' => __('Tabasco', 'ultimate-multisite'), + 'TAM' => __('Tamaulipas', 'ultimate-multisite'), + 'TLA' => __('Tlaxcala', 'ultimate-multisite'), + 'VER' => __('Veracruz de Ignacio de la Llave', 'ultimate-multisite'), + 'YUC' => __('Yucatán', 'ultimate-multisite'), + 'ZAC' => __('Zacatecas', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-my.php b/inc/country/class-country-my.php index f2d6d954f..427a062c4 100644 --- a/inc/country/class-country-my.php +++ b/inc/country/class-country-my.php @@ -79,7 +79,7 @@ class Country_MY extends Country { */ public function get_name() { - return __('Malaysia', 'multisite-ultimate'); + return __('Malaysia', 'ultimate-multisite'); } /** @@ -91,22 +91,22 @@ public function get_name() { protected function states() { return [ - '10' => __('Selangor', 'multisite-ultimate'), - '11' => __('Terengganu', 'multisite-ultimate'), - '12' => __('Sabah', 'multisite-ultimate'), - '13' => __('Sarawak', 'multisite-ultimate'), - '14' => __('Kuala Lumpur', 'multisite-ultimate'), - '15' => __('Labuan', 'multisite-ultimate'), - '16' => __('Putrajaya', 'multisite-ultimate'), - '01' => __('Johor', 'multisite-ultimate'), - '02' => __('Kedah', 'multisite-ultimate'), - '03' => __('Kelantan', 'multisite-ultimate'), - '04' => __('Malacca', 'multisite-ultimate'), - '05' => __('Negeri Sembilan', 'multisite-ultimate'), - '06' => __('Pahang', 'multisite-ultimate'), - '07' => __('Penang', 'multisite-ultimate'), - '08' => __('Perak', 'multisite-ultimate'), - '09' => __('Perlis', 'multisite-ultimate'), + '10' => __('Selangor', 'ultimate-multisite'), + '11' => __('Terengganu', 'ultimate-multisite'), + '12' => __('Sabah', 'ultimate-multisite'), + '13' => __('Sarawak', 'ultimate-multisite'), + '14' => __('Kuala Lumpur', 'ultimate-multisite'), + '15' => __('Labuan', 'ultimate-multisite'), + '16' => __('Putrajaya', 'ultimate-multisite'), + '01' => __('Johor', 'ultimate-multisite'), + '02' => __('Kedah', 'ultimate-multisite'), + '03' => __('Kelantan', 'ultimate-multisite'), + '04' => __('Malacca', 'ultimate-multisite'), + '05' => __('Negeri Sembilan', 'ultimate-multisite'), + '06' => __('Pahang', 'ultimate-multisite'), + '07' => __('Penang', 'ultimate-multisite'), + '08' => __('Perak', 'ultimate-multisite'), + '09' => __('Perlis', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-ne.php b/inc/country/class-country-ne.php index c20c0c1d5..a9bc2c763 100644 --- a/inc/country/class-country-ne.php +++ b/inc/country/class-country-ne.php @@ -70,7 +70,7 @@ class Country_NE extends Country { */ public function get_name() { - return __('Niger', 'multisite-ultimate'); + return __('Niger', 'ultimate-multisite'); } /** @@ -82,13 +82,13 @@ public function get_name() { protected function states() { return [ - '1' => __('Agadez Region', 'multisite-ultimate'), - '2' => __('Diffa Region', 'multisite-ultimate'), - '3' => __('Dosso Region', 'multisite-ultimate'), - '4' => __('Maradi Region', 'multisite-ultimate'), - '5' => __('Tahoua Region', 'multisite-ultimate'), - '6' => __('Tillabéri Region', 'multisite-ultimate'), - '7' => __('Zinder Region', 'multisite-ultimate'), + '1' => __('Agadez Region', 'ultimate-multisite'), + '2' => __('Diffa Region', 'ultimate-multisite'), + '3' => __('Dosso Region', 'ultimate-multisite'), + '4' => __('Maradi Region', 'ultimate-multisite'), + '5' => __('Tahoua Region', 'ultimate-multisite'), + '6' => __('Tillabéri Region', 'ultimate-multisite'), + '7' => __('Zinder Region', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-nl.php b/inc/country/class-country-nl.php index 6299adc85..6caed2da4 100644 --- a/inc/country/class-country-nl.php +++ b/inc/country/class-country-nl.php @@ -75,7 +75,7 @@ class Country_NL extends Country { */ public function get_name() { - return __('Netherlands', 'multisite-ultimate'); + return __('Netherlands', 'ultimate-multisite'); } /** @@ -87,21 +87,21 @@ public function get_name() { protected function states() { return [ - 'BQ1' => __('Bonaire', 'multisite-ultimate'), - 'DR' => __('Drenthe', 'multisite-ultimate'), - 'FL' => __('Flevoland', 'multisite-ultimate'), - 'FR' => __('Friesland', 'multisite-ultimate'), - 'GE' => __('Gelderland', 'multisite-ultimate'), - 'GR' => __('Groningen', 'multisite-ultimate'), - 'LI' => __('Limburg', 'multisite-ultimate'), - 'NB' => __('North Brabant', 'multisite-ultimate'), - 'NH' => __('North Holland', 'multisite-ultimate'), - 'OV' => __('Overijssel', 'multisite-ultimate'), - 'BQ2' => __('Saba', 'multisite-ultimate'), - 'BQ3' => __('Sint Eustatius', 'multisite-ultimate'), - 'ZH' => __('South Holland', 'multisite-ultimate'), - 'UT' => __('Utrecht', 'multisite-ultimate'), - 'ZE' => __('Zeeland', 'multisite-ultimate'), + 'BQ1' => __('Bonaire', 'ultimate-multisite'), + 'DR' => __('Drenthe', 'ultimate-multisite'), + 'FL' => __('Flevoland', 'ultimate-multisite'), + 'FR' => __('Friesland', 'ultimate-multisite'), + 'GE' => __('Gelderland', 'ultimate-multisite'), + 'GR' => __('Groningen', 'ultimate-multisite'), + 'LI' => __('Limburg', 'ultimate-multisite'), + 'NB' => __('North Brabant', 'ultimate-multisite'), + 'NH' => __('North Holland', 'ultimate-multisite'), + 'OV' => __('Overijssel', 'ultimate-multisite'), + 'BQ2' => __('Saba', 'ultimate-multisite'), + 'BQ3' => __('Sint Eustatius', 'ultimate-multisite'), + 'ZH' => __('South Holland', 'ultimate-multisite'), + 'UT' => __('Utrecht', 'ultimate-multisite'), + 'ZE' => __('Zeeland', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-ru.php b/inc/country/class-country-ru.php index ca5f2bdcf..06d9be343 100644 --- a/inc/country/class-country-ru.php +++ b/inc/country/class-country-ru.php @@ -146,7 +146,7 @@ class Country_RU extends Country { */ public function get_name() { - return __('Russia', 'multisite-ultimate'); + return __('Russia', 'ultimate-multisite'); } /** @@ -158,90 +158,90 @@ public function get_name() { protected function states() { return [ - 'ALT' => __('Altai Krai', 'multisite-ultimate'), - 'AL' => __('Altai Republic', 'multisite-ultimate'), - 'AMU' => __('Amur Oblast', 'multisite-ultimate'), - 'ARK' => __('Arkhangelsk', 'multisite-ultimate'), - 'AST' => __('Astrakhan Oblast', 'multisite-ultimate'), - 'BEL' => __('Belgorod Oblast', 'multisite-ultimate'), - 'BRY' => __('Bryansk Oblast', 'multisite-ultimate'), - 'CE' => __('Chechen Republic', 'multisite-ultimate'), - 'CHE' => __('Chelyabinsk Oblast', 'multisite-ultimate'), - 'CHU' => __('Chukotka Autonomous Okrug', 'multisite-ultimate'), - 'CU' => __('Chuvash Republic', 'multisite-ultimate'), - 'IRK' => __('Irkutsk', 'multisite-ultimate'), - 'IVA' => __('Ivanovo Oblast', 'multisite-ultimate'), - 'YEV' => __('Jewish Autonomous Oblast', 'multisite-ultimate'), - 'KB' => __('Kabardino-Balkar Republic', 'multisite-ultimate'), - 'KGD' => __('Kaliningrad', 'multisite-ultimate'), - 'KLU' => __('Kaluga Oblast', 'multisite-ultimate'), - 'KAM' => __('Kamchatka Krai', 'multisite-ultimate'), - 'KC' => __('Karachay-Cherkess Republic', 'multisite-ultimate'), - 'KEM' => __('Kemerovo Oblast', 'multisite-ultimate'), - 'KHA' => __('Khabarovsk Krai', 'multisite-ultimate'), - 'KHM' => __('Khanty-Mansi Autonomous Okrug', 'multisite-ultimate'), - 'KIR' => __('Kirov Oblast', 'multisite-ultimate'), - 'KO' => __('Komi Republic', 'multisite-ultimate'), - 'KOS' => __('Kostroma Oblast', 'multisite-ultimate'), - 'KDA' => __('Krasnodar Krai', 'multisite-ultimate'), - 'KYA' => __('Krasnoyarsk Krai', 'multisite-ultimate'), - 'KGN' => __('Kurgan Oblast', 'multisite-ultimate'), - 'KRS' => __('Kursk Oblast', 'multisite-ultimate'), - 'LEN' => __('Leningrad Oblast', 'multisite-ultimate'), - 'LIP' => __('Lipetsk Oblast', 'multisite-ultimate'), - 'MAG' => __('Magadan Oblast', 'multisite-ultimate'), - 'ME' => __('Mari El Republic', 'multisite-ultimate'), - 'MOW' => __('Moscow', 'multisite-ultimate'), - 'MOS' => __('Moscow Oblast', 'multisite-ultimate'), - 'MUR' => __('Murmansk Oblast', 'multisite-ultimate'), - 'NEN' => __('Nenets Autonomous Okrug', 'multisite-ultimate'), - 'NIZ' => __('Nizhny Novgorod Oblast', 'multisite-ultimate'), - 'NGR' => __('Novgorod Oblast', 'multisite-ultimate'), - 'NVS' => __('Novosibirsk', 'multisite-ultimate'), - 'OMS' => __('Omsk Oblast', 'multisite-ultimate'), - 'ORE' => __('Orenburg Oblast', 'multisite-ultimate'), - 'ORL' => __('Oryol Oblast', 'multisite-ultimate'), - 'PNZ' => __('Penza Oblast', 'multisite-ultimate'), - 'PER' => __('Perm Krai', 'multisite-ultimate'), - 'PRI' => __('Primorsky Krai', 'multisite-ultimate'), - 'PSK' => __('Pskov Oblast', 'multisite-ultimate'), - 'AD' => __('Republic of Adygea', 'multisite-ultimate'), - 'BA' => __('Republic of Bashkortostan', 'multisite-ultimate'), - 'BU' => __('Republic of Buryatia', 'multisite-ultimate'), - 'DA' => __('Republic of Dagestan', 'multisite-ultimate'), - 'IN' => __('Republic of Ingushetia', 'multisite-ultimate'), - 'KL' => __('Republic of Kalmykia', 'multisite-ultimate'), - 'KR' => __('Republic of Karelia', 'multisite-ultimate'), - 'KK' => __('Republic of Khakassia', 'multisite-ultimate'), - 'MO' => __('Republic of Mordovia', 'multisite-ultimate'), - 'SE' => __('Republic of North Ossetia-Alania', 'multisite-ultimate'), - 'TA' => __('Republic of Tatarstan', 'multisite-ultimate'), - 'ROS' => __('Rostov Oblast', 'multisite-ultimate'), - 'RYA' => __('Ryazan Oblast', 'multisite-ultimate'), - 'SPE' => __('Saint Petersburg', 'multisite-ultimate'), - 'SA' => __('Sakha Republic', 'multisite-ultimate'), - 'SAK' => __('Sakhalin', 'multisite-ultimate'), - 'SAM' => __('Samara Oblast', 'multisite-ultimate'), - 'SAR' => __('Saratov Oblast', 'multisite-ultimate'), - 'UA-40' => __('Sevastopol', 'multisite-ultimate'), - 'SMO' => __('Smolensk Oblast', 'multisite-ultimate'), - 'STA' => __('Stavropol Krai', 'multisite-ultimate'), - 'SVE' => __('Sverdlovsk', 'multisite-ultimate'), - 'TAM' => __('Tambov Oblast', 'multisite-ultimate'), - 'TOM' => __('Tomsk Oblast', 'multisite-ultimate'), - 'TUL' => __('Tula Oblast', 'multisite-ultimate'), - 'TY' => __('Tuva Republic', 'multisite-ultimate'), - 'TVE' => __('Tver Oblast', 'multisite-ultimate'), - 'TYU' => __('Tyumen Oblast', 'multisite-ultimate'), - 'UD' => __('Udmurt Republic', 'multisite-ultimate'), - 'ULY' => __('Ulyanovsk Oblast', 'multisite-ultimate'), - 'VLA' => __('Vladimir Oblast', 'multisite-ultimate'), - 'VGG' => __('Volgograd Oblast', 'multisite-ultimate'), - 'VLG' => __('Vologda Oblast', 'multisite-ultimate'), - 'VOR' => __('Voronezh Oblast', 'multisite-ultimate'), - 'YAN' => __('Yamalo-Nenets Autonomous Okrug', 'multisite-ultimate'), - 'YAR' => __('Yaroslavl Oblast', 'multisite-ultimate'), - 'ZAB' => __('Zabaykalsky Krai', 'multisite-ultimate'), + 'ALT' => __('Altai Krai', 'ultimate-multisite'), + 'AL' => __('Altai Republic', 'ultimate-multisite'), + 'AMU' => __('Amur Oblast', 'ultimate-multisite'), + 'ARK' => __('Arkhangelsk', 'ultimate-multisite'), + 'AST' => __('Astrakhan Oblast', 'ultimate-multisite'), + 'BEL' => __('Belgorod Oblast', 'ultimate-multisite'), + 'BRY' => __('Bryansk Oblast', 'ultimate-multisite'), + 'CE' => __('Chechen Republic', 'ultimate-multisite'), + 'CHE' => __('Chelyabinsk Oblast', 'ultimate-multisite'), + 'CHU' => __('Chukotka Autonomous Okrug', 'ultimate-multisite'), + 'CU' => __('Chuvash Republic', 'ultimate-multisite'), + 'IRK' => __('Irkutsk', 'ultimate-multisite'), + 'IVA' => __('Ivanovo Oblast', 'ultimate-multisite'), + 'YEV' => __('Jewish Autonomous Oblast', 'ultimate-multisite'), + 'KB' => __('Kabardino-Balkar Republic', 'ultimate-multisite'), + 'KGD' => __('Kaliningrad', 'ultimate-multisite'), + 'KLU' => __('Kaluga Oblast', 'ultimate-multisite'), + 'KAM' => __('Kamchatka Krai', 'ultimate-multisite'), + 'KC' => __('Karachay-Cherkess Republic', 'ultimate-multisite'), + 'KEM' => __('Kemerovo Oblast', 'ultimate-multisite'), + 'KHA' => __('Khabarovsk Krai', 'ultimate-multisite'), + 'KHM' => __('Khanty-Mansi Autonomous Okrug', 'ultimate-multisite'), + 'KIR' => __('Kirov Oblast', 'ultimate-multisite'), + 'KO' => __('Komi Republic', 'ultimate-multisite'), + 'KOS' => __('Kostroma Oblast', 'ultimate-multisite'), + 'KDA' => __('Krasnodar Krai', 'ultimate-multisite'), + 'KYA' => __('Krasnoyarsk Krai', 'ultimate-multisite'), + 'KGN' => __('Kurgan Oblast', 'ultimate-multisite'), + 'KRS' => __('Kursk Oblast', 'ultimate-multisite'), + 'LEN' => __('Leningrad Oblast', 'ultimate-multisite'), + 'LIP' => __('Lipetsk Oblast', 'ultimate-multisite'), + 'MAG' => __('Magadan Oblast', 'ultimate-multisite'), + 'ME' => __('Mari El Republic', 'ultimate-multisite'), + 'MOW' => __('Moscow', 'ultimate-multisite'), + 'MOS' => __('Moscow Oblast', 'ultimate-multisite'), + 'MUR' => __('Murmansk Oblast', 'ultimate-multisite'), + 'NEN' => __('Nenets Autonomous Okrug', 'ultimate-multisite'), + 'NIZ' => __('Nizhny Novgorod Oblast', 'ultimate-multisite'), + 'NGR' => __('Novgorod Oblast', 'ultimate-multisite'), + 'NVS' => __('Novosibirsk', 'ultimate-multisite'), + 'OMS' => __('Omsk Oblast', 'ultimate-multisite'), + 'ORE' => __('Orenburg Oblast', 'ultimate-multisite'), + 'ORL' => __('Oryol Oblast', 'ultimate-multisite'), + 'PNZ' => __('Penza Oblast', 'ultimate-multisite'), + 'PER' => __('Perm Krai', 'ultimate-multisite'), + 'PRI' => __('Primorsky Krai', 'ultimate-multisite'), + 'PSK' => __('Pskov Oblast', 'ultimate-multisite'), + 'AD' => __('Republic of Adygea', 'ultimate-multisite'), + 'BA' => __('Republic of Bashkortostan', 'ultimate-multisite'), + 'BU' => __('Republic of Buryatia', 'ultimate-multisite'), + 'DA' => __('Republic of Dagestan', 'ultimate-multisite'), + 'IN' => __('Republic of Ingushetia', 'ultimate-multisite'), + 'KL' => __('Republic of Kalmykia', 'ultimate-multisite'), + 'KR' => __('Republic of Karelia', 'ultimate-multisite'), + 'KK' => __('Republic of Khakassia', 'ultimate-multisite'), + 'MO' => __('Republic of Mordovia', 'ultimate-multisite'), + 'SE' => __('Republic of North Ossetia-Alania', 'ultimate-multisite'), + 'TA' => __('Republic of Tatarstan', 'ultimate-multisite'), + 'ROS' => __('Rostov Oblast', 'ultimate-multisite'), + 'RYA' => __('Ryazan Oblast', 'ultimate-multisite'), + 'SPE' => __('Saint Petersburg', 'ultimate-multisite'), + 'SA' => __('Sakha Republic', 'ultimate-multisite'), + 'SAK' => __('Sakhalin', 'ultimate-multisite'), + 'SAM' => __('Samara Oblast', 'ultimate-multisite'), + 'SAR' => __('Saratov Oblast', 'ultimate-multisite'), + 'UA-40' => __('Sevastopol', 'ultimate-multisite'), + 'SMO' => __('Smolensk Oblast', 'ultimate-multisite'), + 'STA' => __('Stavropol Krai', 'ultimate-multisite'), + 'SVE' => __('Sverdlovsk', 'ultimate-multisite'), + 'TAM' => __('Tambov Oblast', 'ultimate-multisite'), + 'TOM' => __('Tomsk Oblast', 'ultimate-multisite'), + 'TUL' => __('Tula Oblast', 'ultimate-multisite'), + 'TY' => __('Tuva Republic', 'ultimate-multisite'), + 'TVE' => __('Tver Oblast', 'ultimate-multisite'), + 'TYU' => __('Tyumen Oblast', 'ultimate-multisite'), + 'UD' => __('Udmurt Republic', 'ultimate-multisite'), + 'ULY' => __('Ulyanovsk Oblast', 'ultimate-multisite'), + 'VLA' => __('Vladimir Oblast', 'ultimate-multisite'), + 'VGG' => __('Volgograd Oblast', 'ultimate-multisite'), + 'VLG' => __('Vologda Oblast', 'ultimate-multisite'), + 'VOR' => __('Voronezh Oblast', 'ultimate-multisite'), + 'YAN' => __('Yamalo-Nenets Autonomous Okrug', 'ultimate-multisite'), + 'YAR' => __('Yaroslavl Oblast', 'ultimate-multisite'), + 'ZAB' => __('Zabaykalsky Krai', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-sg.php b/inc/country/class-country-sg.php index 2b500c959..816449854 100644 --- a/inc/country/class-country-sg.php +++ b/inc/country/class-country-sg.php @@ -65,7 +65,7 @@ class Country_SG extends Country { */ public function get_name() { - return __('Singapore', 'multisite-ultimate'); + return __('Singapore', 'ultimate-multisite'); } /** @@ -77,11 +77,11 @@ public function get_name() { protected function states() { return [ - '01' => __('Central Singapore Community Development Council', 'multisite-ultimate'), - '02' => __('North East Community Development Council', 'multisite-ultimate'), - '03' => __('North West Community Development Council', 'multisite-ultimate'), - '04' => __('South East Community Development Council', 'multisite-ultimate'), - '05' => __('South West Community Development Council', 'multisite-ultimate'), + '01' => __('Central Singapore Community Development Council', 'ultimate-multisite'), + '02' => __('North East Community Development Council', 'ultimate-multisite'), + '03' => __('North West Community Development Council', 'ultimate-multisite'), + '04' => __('South East Community Development Council', 'ultimate-multisite'), + '05' => __('South West Community Development Council', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-tr.php b/inc/country/class-country-tr.php index 0b2498510..d3403e157 100644 --- a/inc/country/class-country-tr.php +++ b/inc/country/class-country-tr.php @@ -144,7 +144,7 @@ class Country_TR extends Country { */ public function get_name() { - return __('Turkey', 'multisite-ultimate'); + return __('Turkey', 'ultimate-multisite'); } /** @@ -156,87 +156,87 @@ public function get_name() { protected function states() { return [ - '10' => __('Balıkesir', 'multisite-ultimate'), - '11' => __('Bilecik', 'multisite-ultimate'), - '12' => __('Bingöl', 'multisite-ultimate'), - '13' => __('Bitlis', 'multisite-ultimate'), - '14' => __('Bolu', 'multisite-ultimate'), - '15' => __('Burdur', 'multisite-ultimate'), - '16' => __('Bursa', 'multisite-ultimate'), - '17' => __('Çanakkale', 'multisite-ultimate'), - '18' => __('Çankırı', 'multisite-ultimate'), - '19' => __('Çorum', 'multisite-ultimate'), - '20' => __('Denizli', 'multisite-ultimate'), - '21' => __('Diyarbakır', 'multisite-ultimate'), - '22' => __('Edirne', 'multisite-ultimate'), - '23' => __('Elazığ', 'multisite-ultimate'), - '24' => __('Erzincan', 'multisite-ultimate'), - '25' => __('Erzurum', 'multisite-ultimate'), - '26' => __('Eskişehir', 'multisite-ultimate'), - '27' => __('Gaziantep', 'multisite-ultimate'), - '28' => __('Giresun', 'multisite-ultimate'), - '29' => __('Gümüşhane', 'multisite-ultimate'), - '30' => __('Hakkâri', 'multisite-ultimate'), - '31' => __('Hatay', 'multisite-ultimate'), - '32' => __('Isparta', 'multisite-ultimate'), - '33' => __('Mersin', 'multisite-ultimate'), - '34' => __('Istanbul', 'multisite-ultimate'), - '35' => __('İzmir', 'multisite-ultimate'), - '36' => __('Kars', 'multisite-ultimate'), - '37' => __('Kastamonu', 'multisite-ultimate'), - '38' => __('Kayseri', 'multisite-ultimate'), - '39' => __('Kırklareli', 'multisite-ultimate'), - '40' => __('Kırşehir', 'multisite-ultimate'), - '41' => __('Kocaeli', 'multisite-ultimate'), - '42' => __('Konya', 'multisite-ultimate'), - '43' => __('Kütahya', 'multisite-ultimate'), - '44' => __('Malatya', 'multisite-ultimate'), - '45' => __('Manisa', 'multisite-ultimate'), - '46' => __('Kahramanmaraş', 'multisite-ultimate'), - '47' => __('Mardin', 'multisite-ultimate'), - '48' => __('Muğla', 'multisite-ultimate'), - '49' => __('Muş', 'multisite-ultimate'), - '50' => __('Nevşehir', 'multisite-ultimate'), - '51' => __('Niğde', 'multisite-ultimate'), - '52' => __('Ordu', 'multisite-ultimate'), - '53' => __('Rize', 'multisite-ultimate'), - '54' => __('Sakarya', 'multisite-ultimate'), - '55' => __('Samsun', 'multisite-ultimate'), - '56' => __('Siirt', 'multisite-ultimate'), - '57' => __('Sinop', 'multisite-ultimate'), - '58' => __('Sivas', 'multisite-ultimate'), - '59' => __('Tekirdağ', 'multisite-ultimate'), - '60' => __('Tokat', 'multisite-ultimate'), - '61' => __('Trabzon', 'multisite-ultimate'), - '62' => __('Tunceli', 'multisite-ultimate'), - '63' => __('Şanlıurfa', 'multisite-ultimate'), - '64' => __('Uşak', 'multisite-ultimate'), - '65' => __('Van', 'multisite-ultimate'), - '66' => __('Yozgat', 'multisite-ultimate'), - '67' => __('Zonguldak', 'multisite-ultimate'), - '68' => __('Aksaray', 'multisite-ultimate'), - '69' => __('Bayburt', 'multisite-ultimate'), - '70' => __('Karaman', 'multisite-ultimate'), - '71' => __('Kırıkkale', 'multisite-ultimate'), - '72' => __('Batman', 'multisite-ultimate'), - '73' => __('Şırnak', 'multisite-ultimate'), - '74' => __('Bartın', 'multisite-ultimate'), - '75' => __('Ardahan', 'multisite-ultimate'), - '76' => __('Iğdır', 'multisite-ultimate'), - '77' => __('Yalova', 'multisite-ultimate'), - '78' => __('Karabük', 'multisite-ultimate'), - '79' => __('Kilis', 'multisite-ultimate'), - '80' => __('Osmaniye', 'multisite-ultimate'), - '81' => __('Düzce', 'multisite-ultimate'), - '01' => __('Adana', 'multisite-ultimate'), - '02' => __('Adıyaman', 'multisite-ultimate'), - '03' => __('Afyonkarahisar', 'multisite-ultimate'), - '05' => __('Amasya', 'multisite-ultimate'), - '06' => __('Ankara', 'multisite-ultimate'), - '07' => __('Antalya', 'multisite-ultimate'), - '08' => __('Artvin', 'multisite-ultimate'), - '09' => __('Aydın', 'multisite-ultimate'), - '04' => __('Ağrı', 'multisite-ultimate'), + '10' => __('Balıkesir', 'ultimate-multisite'), + '11' => __('Bilecik', 'ultimate-multisite'), + '12' => __('Bingöl', 'ultimate-multisite'), + '13' => __('Bitlis', 'ultimate-multisite'), + '14' => __('Bolu', 'ultimate-multisite'), + '15' => __('Burdur', 'ultimate-multisite'), + '16' => __('Bursa', 'ultimate-multisite'), + '17' => __('Çanakkale', 'ultimate-multisite'), + '18' => __('Çankırı', 'ultimate-multisite'), + '19' => __('Çorum', 'ultimate-multisite'), + '20' => __('Denizli', 'ultimate-multisite'), + '21' => __('Diyarbakır', 'ultimate-multisite'), + '22' => __('Edirne', 'ultimate-multisite'), + '23' => __('Elazığ', 'ultimate-multisite'), + '24' => __('Erzincan', 'ultimate-multisite'), + '25' => __('Erzurum', 'ultimate-multisite'), + '26' => __('Eskişehir', 'ultimate-multisite'), + '27' => __('Gaziantep', 'ultimate-multisite'), + '28' => __('Giresun', 'ultimate-multisite'), + '29' => __('Gümüşhane', 'ultimate-multisite'), + '30' => __('Hakkâri', 'ultimate-multisite'), + '31' => __('Hatay', 'ultimate-multisite'), + '32' => __('Isparta', 'ultimate-multisite'), + '33' => __('Mersin', 'ultimate-multisite'), + '34' => __('Istanbul', 'ultimate-multisite'), + '35' => __('İzmir', 'ultimate-multisite'), + '36' => __('Kars', 'ultimate-multisite'), + '37' => __('Kastamonu', 'ultimate-multisite'), + '38' => __('Kayseri', 'ultimate-multisite'), + '39' => __('Kırklareli', 'ultimate-multisite'), + '40' => __('Kırşehir', 'ultimate-multisite'), + '41' => __('Kocaeli', 'ultimate-multisite'), + '42' => __('Konya', 'ultimate-multisite'), + '43' => __('Kütahya', 'ultimate-multisite'), + '44' => __('Malatya', 'ultimate-multisite'), + '45' => __('Manisa', 'ultimate-multisite'), + '46' => __('Kahramanmaraş', 'ultimate-multisite'), + '47' => __('Mardin', 'ultimate-multisite'), + '48' => __('Muğla', 'ultimate-multisite'), + '49' => __('Muş', 'ultimate-multisite'), + '50' => __('Nevşehir', 'ultimate-multisite'), + '51' => __('Niğde', 'ultimate-multisite'), + '52' => __('Ordu', 'ultimate-multisite'), + '53' => __('Rize', 'ultimate-multisite'), + '54' => __('Sakarya', 'ultimate-multisite'), + '55' => __('Samsun', 'ultimate-multisite'), + '56' => __('Siirt', 'ultimate-multisite'), + '57' => __('Sinop', 'ultimate-multisite'), + '58' => __('Sivas', 'ultimate-multisite'), + '59' => __('Tekirdağ', 'ultimate-multisite'), + '60' => __('Tokat', 'ultimate-multisite'), + '61' => __('Trabzon', 'ultimate-multisite'), + '62' => __('Tunceli', 'ultimate-multisite'), + '63' => __('Şanlıurfa', 'ultimate-multisite'), + '64' => __('Uşak', 'ultimate-multisite'), + '65' => __('Van', 'ultimate-multisite'), + '66' => __('Yozgat', 'ultimate-multisite'), + '67' => __('Zonguldak', 'ultimate-multisite'), + '68' => __('Aksaray', 'ultimate-multisite'), + '69' => __('Bayburt', 'ultimate-multisite'), + '70' => __('Karaman', 'ultimate-multisite'), + '71' => __('Kırıkkale', 'ultimate-multisite'), + '72' => __('Batman', 'ultimate-multisite'), + '73' => __('Şırnak', 'ultimate-multisite'), + '74' => __('Bartın', 'ultimate-multisite'), + '75' => __('Ardahan', 'ultimate-multisite'), + '76' => __('Iğdır', 'ultimate-multisite'), + '77' => __('Yalova', 'ultimate-multisite'), + '78' => __('Karabük', 'ultimate-multisite'), + '79' => __('Kilis', 'ultimate-multisite'), + '80' => __('Osmaniye', 'ultimate-multisite'), + '81' => __('Düzce', 'ultimate-multisite'), + '01' => __('Adana', 'ultimate-multisite'), + '02' => __('Adıyaman', 'ultimate-multisite'), + '03' => __('Afyonkarahisar', 'ultimate-multisite'), + '05' => __('Amasya', 'ultimate-multisite'), + '06' => __('Ankara', 'ultimate-multisite'), + '07' => __('Antalya', 'ultimate-multisite'), + '08' => __('Artvin', 'ultimate-multisite'), + '09' => __('Aydın', 'ultimate-multisite'), + '04' => __('Ağrı', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-us.php b/inc/country/class-country-us.php index 01e3d69d0..d9ae53eb6 100644 --- a/inc/country/class-country-us.php +++ b/inc/country/class-country-us.php @@ -115,7 +115,7 @@ class Country_US extends Country { */ public function get_name() { - return __('United States', 'multisite-ultimate'); + return __('United States', 'ultimate-multisite'); } /** @@ -127,72 +127,72 @@ public function get_name() { protected function states() { return [ - 'AL' => __('Alabama', 'multisite-ultimate'), - 'AK' => __('Alaska', 'multisite-ultimate'), - 'AS' => __('American Samoa', 'multisite-ultimate'), - 'AZ' => __('Arizona', 'multisite-ultimate'), - 'AR' => __('Arkansas', 'multisite-ultimate'), - 'UM-81' => __('Baker Island', 'multisite-ultimate'), - 'CA' => __('California', 'multisite-ultimate'), - 'CO' => __('Colorado', 'multisite-ultimate'), - 'CT' => __('Connecticut', 'multisite-ultimate'), - 'DE' => __('Delaware', 'multisite-ultimate'), - 'DC' => __('District of Columbia', 'multisite-ultimate'), - 'FL' => __('Florida', 'multisite-ultimate'), - 'GA' => __('Georgia', 'multisite-ultimate'), - 'GU' => __('Guam', 'multisite-ultimate'), - 'HI' => __('Hawaii', 'multisite-ultimate'), - 'UM-84' => __('Howland Island', 'multisite-ultimate'), - 'ID' => __('Idaho', 'multisite-ultimate'), - 'IL' => __('Illinois', 'multisite-ultimate'), - 'IN' => __('Indiana', 'multisite-ultimate'), - 'IA' => __('Iowa', 'multisite-ultimate'), - 'UM-86' => __('Jarvis Island', 'multisite-ultimate'), - 'UM-67' => __('Johnston Atoll', 'multisite-ultimate'), - 'KS' => __('Kansas', 'multisite-ultimate'), - 'KY' => __('Kentucky', 'multisite-ultimate'), - 'UM-89' => __('Kingman Reef', 'multisite-ultimate'), - 'LA' => __('Louisiana', 'multisite-ultimate'), - 'ME' => __('Maine', 'multisite-ultimate'), - 'MD' => __('Maryland', 'multisite-ultimate'), - 'MA' => __('Massachusetts', 'multisite-ultimate'), - 'MI' => __('Michigan', 'multisite-ultimate'), - 'UM-71' => __('Midway Atoll', 'multisite-ultimate'), - 'MN' => __('Minnesota', 'multisite-ultimate'), - 'MS' => __('Mississippi', 'multisite-ultimate'), - 'MO' => __('Missouri', 'multisite-ultimate'), - 'MT' => __('Montana', 'multisite-ultimate'), - 'UM-76' => __('Navassa Island', 'multisite-ultimate'), - 'NE' => __('Nebraska', 'multisite-ultimate'), - 'NV' => __('Nevada', 'multisite-ultimate'), - 'NH' => __('New Hampshire', 'multisite-ultimate'), - 'NJ' => __('New Jersey', 'multisite-ultimate'), - 'NM' => __('New Mexico', 'multisite-ultimate'), - 'NY' => __('New York', 'multisite-ultimate'), - 'NC' => __('North Carolina', 'multisite-ultimate'), - 'ND' => __('North Dakota', 'multisite-ultimate'), - 'MP' => __('Northern Mariana Islands', 'multisite-ultimate'), - 'OH' => __('Ohio', 'multisite-ultimate'), - 'OK' => __('Oklahoma', 'multisite-ultimate'), - 'OR' => __('Oregon', 'multisite-ultimate'), - 'UM-95' => __('Palmyra Atoll', 'multisite-ultimate'), - 'PA' => __('Pennsylvania', 'multisite-ultimate'), - 'PR' => __('Puerto Rico', 'multisite-ultimate'), - 'RI' => __('Rhode Island', 'multisite-ultimate'), - 'SC' => __('South Carolina', 'multisite-ultimate'), - 'SD' => __('South Dakota', 'multisite-ultimate'), - 'TN' => __('Tennessee', 'multisite-ultimate'), - 'TX' => __('Texas', 'multisite-ultimate'), - 'UM' => __('United States Minor Outlying Islands', 'multisite-ultimate'), - 'VI' => __('United States Virgin Islands', 'multisite-ultimate'), - 'UT' => __('Utah', 'multisite-ultimate'), - 'VT' => __('Vermont', 'multisite-ultimate'), - 'VA' => __('Virginia', 'multisite-ultimate'), - 'UM-79' => __('Wake Island', 'multisite-ultimate'), - 'WA' => __('Washington', 'multisite-ultimate'), - 'WV' => __('West Virginia', 'multisite-ultimate'), - 'WI' => __('Wisconsin', 'multisite-ultimate'), - 'WY' => __('Wyoming', 'multisite-ultimate'), + 'AL' => __('Alabama', 'ultimate-multisite'), + 'AK' => __('Alaska', 'ultimate-multisite'), + 'AS' => __('American Samoa', 'ultimate-multisite'), + 'AZ' => __('Arizona', 'ultimate-multisite'), + 'AR' => __('Arkansas', 'ultimate-multisite'), + 'UM-81' => __('Baker Island', 'ultimate-multisite'), + 'CA' => __('California', 'ultimate-multisite'), + 'CO' => __('Colorado', 'ultimate-multisite'), + 'CT' => __('Connecticut', 'ultimate-multisite'), + 'DE' => __('Delaware', 'ultimate-multisite'), + 'DC' => __('District of Columbia', 'ultimate-multisite'), + 'FL' => __('Florida', 'ultimate-multisite'), + 'GA' => __('Georgia', 'ultimate-multisite'), + 'GU' => __('Guam', 'ultimate-multisite'), + 'HI' => __('Hawaii', 'ultimate-multisite'), + 'UM-84' => __('Howland Island', 'ultimate-multisite'), + 'ID' => __('Idaho', 'ultimate-multisite'), + 'IL' => __('Illinois', 'ultimate-multisite'), + 'IN' => __('Indiana', 'ultimate-multisite'), + 'IA' => __('Iowa', 'ultimate-multisite'), + 'UM-86' => __('Jarvis Island', 'ultimate-multisite'), + 'UM-67' => __('Johnston Atoll', 'ultimate-multisite'), + 'KS' => __('Kansas', 'ultimate-multisite'), + 'KY' => __('Kentucky', 'ultimate-multisite'), + 'UM-89' => __('Kingman Reef', 'ultimate-multisite'), + 'LA' => __('Louisiana', 'ultimate-multisite'), + 'ME' => __('Maine', 'ultimate-multisite'), + 'MD' => __('Maryland', 'ultimate-multisite'), + 'MA' => __('Massachusetts', 'ultimate-multisite'), + 'MI' => __('Michigan', 'ultimate-multisite'), + 'UM-71' => __('Midway Atoll', 'ultimate-multisite'), + 'MN' => __('Minnesota', 'ultimate-multisite'), + 'MS' => __('Mississippi', 'ultimate-multisite'), + 'MO' => __('Missouri', 'ultimate-multisite'), + 'MT' => __('Montana', 'ultimate-multisite'), + 'UM-76' => __('Navassa Island', 'ultimate-multisite'), + 'NE' => __('Nebraska', 'ultimate-multisite'), + 'NV' => __('Nevada', 'ultimate-multisite'), + 'NH' => __('New Hampshire', 'ultimate-multisite'), + 'NJ' => __('New Jersey', 'ultimate-multisite'), + 'NM' => __('New Mexico', 'ultimate-multisite'), + 'NY' => __('New York', 'ultimate-multisite'), + 'NC' => __('North Carolina', 'ultimate-multisite'), + 'ND' => __('North Dakota', 'ultimate-multisite'), + 'MP' => __('Northern Mariana Islands', 'ultimate-multisite'), + 'OH' => __('Ohio', 'ultimate-multisite'), + 'OK' => __('Oklahoma', 'ultimate-multisite'), + 'OR' => __('Oregon', 'ultimate-multisite'), + 'UM-95' => __('Palmyra Atoll', 'ultimate-multisite'), + 'PA' => __('Pennsylvania', 'ultimate-multisite'), + 'PR' => __('Puerto Rico', 'ultimate-multisite'), + 'RI' => __('Rhode Island', 'ultimate-multisite'), + 'SC' => __('South Carolina', 'ultimate-multisite'), + 'SD' => __('South Dakota', 'ultimate-multisite'), + 'TN' => __('Tennessee', 'ultimate-multisite'), + 'TX' => __('Texas', 'ultimate-multisite'), + 'UM' => __('United States Minor Outlying Islands', 'ultimate-multisite'), + 'VI' => __('United States Virgin Islands', 'ultimate-multisite'), + 'UT' => __('Utah', 'ultimate-multisite'), + 'VT' => __('Vermont', 'ultimate-multisite'), + 'VA' => __('Virginia', 'ultimate-multisite'), + 'UM-79' => __('Wake Island', 'ultimate-multisite'), + 'WA' => __('Washington', 'ultimate-multisite'), + 'WV' => __('West Virginia', 'ultimate-multisite'), + 'WI' => __('Wisconsin', 'ultimate-multisite'), + 'WY' => __('Wyoming', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country-za.php b/inc/country/class-country-za.php index a4ca914a7..279f50d32 100644 --- a/inc/country/class-country-za.php +++ b/inc/country/class-country-za.php @@ -72,7 +72,7 @@ class Country_ZA extends Country { */ public function get_name() { - return __('South Africa', 'multisite-ultimate'); + return __('South Africa', 'ultimate-multisite'); } /** @@ -84,15 +84,15 @@ public function get_name() { protected function states() { return [ - 'EC' => __('Eastern Cape', 'multisite-ultimate'), - 'FS' => __('Free State', 'multisite-ultimate'), - 'GP' => __('Gauteng', 'multisite-ultimate'), - 'KZN' => __('KwaZulu-Natal', 'multisite-ultimate'), - 'LP' => __('Limpopo', 'multisite-ultimate'), - 'MP' => __('Mpumalanga', 'multisite-ultimate'), - 'NW' => __('North West', 'multisite-ultimate'), - 'NC' => __('Northern Cape', 'multisite-ultimate'), - 'WC' => __('Western Cape', 'multisite-ultimate'), + 'EC' => __('Eastern Cape', 'ultimate-multisite'), + 'FS' => __('Free State', 'ultimate-multisite'), + 'GP' => __('Gauteng', 'ultimate-multisite'), + 'KZN' => __('KwaZulu-Natal', 'ultimate-multisite'), + 'LP' => __('Limpopo', 'ultimate-multisite'), + 'MP' => __('Mpumalanga', 'ultimate-multisite'), + 'NW' => __('North West', 'ultimate-multisite'), + 'NC' => __('Northern Cape', 'ultimate-multisite'), + 'WC' => __('Western Cape', 'ultimate-multisite'), ]; } } diff --git a/inc/country/class-country.php b/inc/country/class-country.php index cb1a325e5..aba3565d6 100644 --- a/inc/country/class-country.php +++ b/inc/country/class-country.php @@ -104,7 +104,7 @@ public function get_states_as_options($placeholder = '') { $division_name = $this->get_administrative_division_name(); // translators: %s is the name of the administrative division (state, province, etc). - $placeholder_option[''] = '' !== $placeholder ? $placeholder : sprintf(__('Select your %s', 'multisite-ultimate'), $division_name); + $placeholder_option[''] = '' !== $placeholder ? $placeholder : sprintf(__('Select your %s', 'ultimate-multisite'), $division_name); } return array_merge($placeholder_option, $options); @@ -162,7 +162,7 @@ public function get_cities_as_options($state_code = '', $placeholder = '') { $placeholder_option = []; if (false !== $placeholder && $options) { - $placeholder_option[''] = '' !== $placeholder ? $placeholder : __('Select your city', 'multisite-ultimate'); + $placeholder_option[''] = '' !== $placeholder ? $placeholder : __('Select your city', 'ultimate-multisite'); } $options = array_combine($options, $options); @@ -195,7 +195,7 @@ protected function states() { */ public function get_municipality_name($state_code = null, $ucwords = false) { - $name = __('city', 'multisite-ultimate'); + $name = __('city', 'ultimate-multisite'); $name = $ucwords ? ucwords($name) : $name; @@ -217,18 +217,18 @@ public function get_municipality_name($state_code = null, $ucwords = false) { public function get_administrative_division_name($state_code = null, $ucwords = false) { $denominations = [ - 'province' => __('province', 'multisite-ultimate'), - 'state' => __('state', 'multisite-ultimate'), - 'territory' => __('territory', 'multisite-ultimate'), - 'region' => __('region', 'multisite-ultimate'), - 'department' => __('department', 'multisite-ultimate'), - 'district' => __('district', 'multisite-ultimate'), - 'prefecture' => __('prefecture', 'multisite-ultimate'), - 'autonomous_community' => __('autonomous community', 'multisite-ultimate'), - 'parish' => __('parish', 'multisite-ultimate'), - 'county' => __('county', 'multisite-ultimate'), - 'division' => __('division', 'multisite-ultimate'), - 'unknown' => __('state / province', 'multisite-ultimate'), + 'province' => __('province', 'ultimate-multisite'), + 'state' => __('state', 'ultimate-multisite'), + 'territory' => __('territory', 'ultimate-multisite'), + 'region' => __('region', 'ultimate-multisite'), + 'department' => __('department', 'ultimate-multisite'), + 'district' => __('district', 'ultimate-multisite'), + 'prefecture' => __('prefecture', 'ultimate-multisite'), + 'autonomous_community' => __('autonomous community', 'ultimate-multisite'), + 'parish' => __('parish', 'ultimate-multisite'), + 'county' => __('county', 'ultimate-multisite'), + 'division' => __('division', 'ultimate-multisite'), + 'unknown' => __('state / province', 'ultimate-multisite'), ]; $name = wu_get_isset($denominations, $this->state_type, $denominations['unknown']); diff --git a/inc/database/domains/class-domain-stage.php b/inc/database/domains/class-domain-stage.php index 4163ce7f6..88bf60ae4 100644 --- a/inc/database/domains/class-domain-stage.php +++ b/inc/database/domains/class-domain-stage.php @@ -62,11 +62,11 @@ protected function classes() { protected function labels() { return [ - static::FAILED => __('DNS Failed', 'multisite-ultimate'), - static::CHECKING_DNS => __('Checking DNS', 'multisite-ultimate'), - static::CHECKING_SSL => __('Checking SSL', 'multisite-ultimate'), - static::DONE => __('Ready', 'multisite-ultimate'), - static::DONE_WITHOUT_SSL => __('Ready (without SSL)', 'multisite-ultimate'), + static::FAILED => __('DNS Failed', 'ultimate-multisite'), + static::CHECKING_DNS => __('Checking DNS', 'ultimate-multisite'), + static::CHECKING_SSL => __('Checking SSL', 'ultimate-multisite'), + static::DONE => __('Ready', 'ultimate-multisite'), + static::DONE_WITHOUT_SSL => __('Ready (without SSL)', 'ultimate-multisite'), ]; } } diff --git a/inc/database/memberships/class-membership-status.php b/inc/database/memberships/class-membership-status.php index d9be42bce..5a8ec2c1a 100644 --- a/inc/database/memberships/class-membership-status.php +++ b/inc/database/memberships/class-membership-status.php @@ -65,12 +65,12 @@ protected function classes() { protected function labels() { return [ - static::PENDING => __('Pending', 'multisite-ultimate'), - static::ACTIVE => __('Active', 'multisite-ultimate'), - static::TRIALING => __('Trialing', 'multisite-ultimate'), - static::ON_HOLD => __('On Hold', 'multisite-ultimate'), - static::EXPIRED => __('Expired', 'multisite-ultimate'), - static::CANCELLED => __('Cancelled', 'multisite-ultimate'), + static::PENDING => __('Pending', 'ultimate-multisite'), + static::ACTIVE => __('Active', 'ultimate-multisite'), + static::TRIALING => __('Trialing', 'ultimate-multisite'), + static::ON_HOLD => __('On Hold', 'ultimate-multisite'), + static::EXPIRED => __('Expired', 'ultimate-multisite'), + static::CANCELLED => __('Cancelled', 'ultimate-multisite'), ]; } } diff --git a/inc/database/payments/class-payment-status.php b/inc/database/payments/class-payment-status.php index 7dc38d945..0f86e2c2c 100644 --- a/inc/database/payments/class-payment-status.php +++ b/inc/database/payments/class-payment-status.php @@ -87,13 +87,13 @@ protected function icon_classes() { protected function labels() { return [ - static::PENDING => __('Pending', 'multisite-ultimate'), - static::COMPLETED => __('Completed', 'multisite-ultimate'), - static::REFUND => __('Refunded', 'multisite-ultimate'), - static::PARTIAL_REFUND => __('Partially Refunded', 'multisite-ultimate'), - static::PARTIAL => __('Partially Paid', 'multisite-ultimate'), - static::FAILED => __('Failed', 'multisite-ultimate'), - static::CANCELLED => __('Cancelled', 'multisite-ultimate'), + static::PENDING => __('Pending', 'ultimate-multisite'), + static::COMPLETED => __('Completed', 'ultimate-multisite'), + static::REFUND => __('Refunded', 'ultimate-multisite'), + static::PARTIAL_REFUND => __('Partially Refunded', 'ultimate-multisite'), + static::PARTIAL => __('Partially Paid', 'ultimate-multisite'), + static::FAILED => __('Failed', 'ultimate-multisite'), + static::CANCELLED => __('Cancelled', 'ultimate-multisite'), ]; } } diff --git a/inc/database/products/class-product-type.php b/inc/database/products/class-product-type.php index fa91f0236..3c0a95272 100644 --- a/inc/database/products/class-product-type.php +++ b/inc/database/products/class-product-type.php @@ -56,9 +56,9 @@ protected function classes() { protected function labels() { return [ - static::PLAN => __('Plan', 'multisite-ultimate'), - static::PACKAGE => __('Package', 'multisite-ultimate'), - static::SERVICE => __('Service', 'multisite-ultimate'), + static::PLAN => __('Plan', 'ultimate-multisite'), + static::PACKAGE => __('Package', 'ultimate-multisite'), + static::SERVICE => __('Service', 'ultimate-multisite'), ]; } } diff --git a/inc/database/sites/class-site-type.php b/inc/database/sites/class-site-type.php index 812632a63..f66aa39a8 100644 --- a/inc/database/sites/class-site-type.php +++ b/inc/database/sites/class-site-type.php @@ -65,11 +65,11 @@ protected function classes() { protected function labels() { return [ - static::REGULAR => __('Regular Site', 'multisite-ultimate'), - static::SITE_TEMPLATE => __('Site Template', 'multisite-ultimate'), - static::CUSTOMER_OWNED => __('Customer-Owned', 'multisite-ultimate'), - static::PENDING => __('Pending', 'multisite-ultimate'), - static::MAIN => __('Main Site', 'multisite-ultimate'), + static::REGULAR => __('Regular Site', 'ultimate-multisite'), + static::SITE_TEMPLATE => __('Site Template', 'ultimate-multisite'), + static::CUSTOMER_OWNED => __('Customer-Owned', 'ultimate-multisite'), + static::PENDING => __('Pending', 'ultimate-multisite'), + static::MAIN => __('Main Site', 'ultimate-multisite'), ]; } } diff --git a/inc/debug/class-debug.php b/inc/debug/class-debug.php index 5caf671b9..14c0900de 100644 --- a/inc/debug/class-debug.php +++ b/inc/debug/class-debug.php @@ -71,37 +71,37 @@ public function add_debug_links(): void { - + - + - + - + [ - 'title' => __('Customers', 'multisite-ultimate'), - 'desc' => __('Toggle to generate customers.', 'multisite-ultimate'), + 'title' => __('Customers', 'ultimate-multisite'), + 'desc' => __('Toggle to generate customers.', 'ultimate-multisite'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'customers', ], ], 'customers_number' => [ - 'title' => __('Number of Customers', 'multisite-ultimate'), + 'title' => __('Number of Customers', 'ultimate-multisite'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -175,15 +175,15 @@ public function render_debug_generator_form(): void { ], ], 'products' => [ - 'title' => __('Products', 'multisite-ultimate'), - 'desc' => __('Toggle to generate products.', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), + 'desc' => __('Toggle to generate products.', 'ultimate-multisite'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'products', ], ], 'products_number' => [ - 'title' => __('Number of Products', 'multisite-ultimate'), + 'title' => __('Number of Products', 'ultimate-multisite'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -192,15 +192,15 @@ public function render_debug_generator_form(): void { ], ], 'memberships' => [ - 'title' => __('Memberships', 'multisite-ultimate'), - 'desc' => __('Toggle to generate memberships.', 'multisite-ultimate'), + 'title' => __('Memberships', 'ultimate-multisite'), + 'desc' => __('Toggle to generate memberships.', 'ultimate-multisite'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'memberships', ], ], 'memberships_number' => [ - 'title' => __('Number of Memberships', 'multisite-ultimate'), + 'title' => __('Number of Memberships', 'ultimate-multisite'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -209,15 +209,15 @@ public function render_debug_generator_form(): void { ], ], 'sites' => [ - 'title' => __('Sites', 'multisite-ultimate'), - 'desc' => __('Toggle to generate sites.', 'multisite-ultimate'), + 'title' => __('Sites', 'ultimate-multisite'), + 'desc' => __('Toggle to generate sites.', 'ultimate-multisite'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'sites', ], ], 'sites_number' => [ - 'title' => __('Number of Sites', 'multisite-ultimate'), + 'title' => __('Number of Sites', 'ultimate-multisite'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -226,15 +226,15 @@ public function render_debug_generator_form(): void { ], ], 'domains' => [ - 'title' => __('Domains', 'multisite-ultimate'), - 'desc' => __('Toggle to generate domains.', 'multisite-ultimate'), + 'title' => __('Domains', 'ultimate-multisite'), + 'desc' => __('Toggle to generate domains.', 'ultimate-multisite'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'domains', ], ], 'domains_number' => [ - 'title' => __('Number of Domains', 'multisite-ultimate'), + 'title' => __('Number of Domains', 'ultimate-multisite'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -243,15 +243,15 @@ public function render_debug_generator_form(): void { ], ], 'discount_codes' => [ - 'title' => __('Discount Codes', 'multisite-ultimate'), - 'desc' => __('Toggle to generate discount codes.', 'multisite-ultimate'), + 'title' => __('Discount Codes', 'ultimate-multisite'), + 'desc' => __('Toggle to generate discount codes.', 'ultimate-multisite'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'discount_codes', ], ], 'discount_codes_number' => [ - 'title' => __('Number of Discount Codes', 'multisite-ultimate'), + 'title' => __('Number of Discount Codes', 'ultimate-multisite'), 'type' => 'number', 'value' => 10, 'wrapper_html_attr' => [ @@ -260,15 +260,15 @@ public function render_debug_generator_form(): void { ], ], 'payments' => [ - 'title' => __('Payments', 'multisite-ultimate'), - 'desc' => __('Toggle to generate payments.', 'multisite-ultimate'), + 'title' => __('Payments', 'ultimate-multisite'), + 'desc' => __('Toggle to generate payments.', 'ultimate-multisite'), 'type' => 'toggle', 'html_attr' => [ 'v-model' => 'payments', ], ], 'payments_number' => [ - 'title' => __('Number of Payments', 'multisite-ultimate'), + 'title' => __('Number of Payments', 'ultimate-multisite'), 'type' => 'number', 'value' => 30, 'wrapper_html_attr' => [ @@ -277,7 +277,7 @@ public function render_debug_generator_form(): void { ], ], 'submit_button' => [ - 'title' => __('Generate Data →', 'multisite-ultimate'), + 'title' => __('Generate Data →', 'ultimate-multisite'), 'type' => 'submit', 'value' => 'save', 'classes' => 'button button-primary wu-w-full', @@ -400,8 +400,8 @@ public function render_debug_reset_database_form(): void { $fields = [ 'reset_only_fake_data' => [ - 'title' => __('Only reset generated data.', 'multisite-ultimate'), - 'desc' => __('Toggle this option to only remove data that was added by the generator previously. Untoggling this option will reset ALL data in Multisite Ultimate tables.', 'multisite-ultimate'), + 'title' => __('Only reset generated data.', 'ultimate-multisite'), + 'desc' => __('Toggle this option to only remove data that was added by the generator previously. Untoggling this option will reset ALL data in Multisite Ultimate tables.', 'ultimate-multisite'), 'type' => 'toggle', 'value' => true, 'html_attr' => [ @@ -409,7 +409,7 @@ public function render_debug_reset_database_form(): void { ], ], 'submit_button' => [ - 'title' => __('Reset Database →', 'multisite-ultimate'), + 'title' => __('Reset Database →', 'ultimate-multisite'), 'type' => 'submit', 'value' => 'save', 'classes' => 'button button-primary wu-w-full', @@ -486,10 +486,10 @@ public function render_debug_drop_database_form(): void { $fields = [ 'reset_note' => [ 'type' => 'note', - 'desc' => __('This action will drop the Multisite Ultimate database tables and is irreversable.', 'multisite-ultimate'), + 'desc' => __('This action will drop the Multisite Ultimate database tables and is irreversable.', 'ultimate-multisite'), ], 'submit_button' => [ - 'title' => __('Drop Database Tables →', 'multisite-ultimate'), + 'title' => __('Drop Database Tables →', 'ultimate-multisite'), 'type' => 'submit', 'value' => 'save', 'classes' => 'button button-primary wu-w-full', diff --git a/inc/deprecated/deprecated.php b/inc/deprecated/deprecated.php index 129cb01eb..1457dcf97 100644 --- a/inc/deprecated/deprecated.php +++ b/inc/deprecated/deprecated.php @@ -171,8 +171,8 @@ public function __construct($network = true, $atts = []) { 'parent' => 'wp-ultimo', 'capability' => 'manage_network', 'menu_icon' => 'dashicons-menu', - 'title' => __('Admin Page', 'multisite-ultimate'), - 'menu_title' => __('Admin Page', 'multisite-ultimate'), + 'title' => __('Admin Page', 'ultimate-multisite'), + 'menu_title' => __('Admin Page', 'ultimate-multisite'), ] ); diff --git a/inc/development/query-monitor/panel/class-overview.php b/inc/development/query-monitor/panel/class-overview.php index 90782c101..a938a8feb 100644 --- a/inc/development/query-monitor/panel/class-overview.php +++ b/inc/development/query-monitor/panel/class-overview.php @@ -43,7 +43,7 @@ public function __construct($collector) { */ public function name() { - return __('Multisite Ultimate', 'multisite-ultimate'); + return __('Multisite Ultimate', 'ultimate-multisite'); } /** @@ -105,7 +105,7 @@ public function panel_menu(array $menu) { $new_menu = [ 'wp-ultimo' => $this->menu( [ - 'title' => esc_html__('Multisite Ultimate', 'multisite-ultimate'), + 'title' => esc_html__('Multisite Ultimate', 'ultimate-multisite'), 'id' => 'wp-ultimo', ] ), diff --git a/inc/domain-mapping/class-helper.php b/inc/domain-mapping/class-helper.php index 2a1563236..8bf5e50a1 100644 --- a/inc/domain-mapping/class-helper.php +++ b/inc/domain-mapping/class-helper.php @@ -231,7 +231,7 @@ public static function has_valid_ssl_certificate($domain = '') { wu_log_add( 'domain-ssl-checks', // translators: % error message - sprintf(__('Certificate Invalid: %s', 'multisite-ultimate'), $e->getMessage()), + sprintf(__('Certificate Invalid: %s', 'ultimate-multisite'), $e->getMessage()), LogLevel::ERROR ); } diff --git a/inc/functions/admin.php b/inc/functions/admin.php index 5e0ac2bd0..266f9c385 100644 --- a/inc/functions/admin.php +++ b/inc/functions/admin.php @@ -22,9 +22,9 @@ function wu_render_empty_state($args = []) { $args = wp_parse_args( $args, [ - 'message' => __('This is not yet available...', 'multisite-ultimate'), - 'sub_message' => __('We\'re still working on this part of the product.', 'multisite-ultimate'), - 'link_label' => __('← Go Back', 'multisite-ultimate'), + 'message' => __('This is not yet available...', 'ultimate-multisite'), + 'sub_message' => __('We\'re still working on this part of the product.', 'ultimate-multisite'), + 'link_label' => __('← Go Back', 'ultimate-multisite'), 'link_url' => 'javascript:history.go(-1)', 'link_classes' => '', 'link_icon' => '', @@ -61,7 +61,7 @@ function wu_responsive_table_row($args = [], $first_row = [], $second_row = []) $args, [ 'id' => '', - 'title' => __('No Title', 'multisite-ultimate'), + 'title' => __('No Title', 'ultimate-multisite'), 'url' => '#', 'status' => '', 'image' => '', diff --git a/inc/functions/countries.php b/inc/functions/countries.php index 092def116..0adc77dc5 100644 --- a/inc/functions/countries.php +++ b/inc/functions/countries.php @@ -20,255 +20,255 @@ function wu_get_countries() { return apply_filters( 'wu_get_countries', [ - 'AF' => __('Afghanistan', 'multisite-ultimate'), - 'AX' => __('Åland Islands', 'multisite-ultimate'), - 'AL' => __('Albania', 'multisite-ultimate'), - 'DZ' => __('Algeria', 'multisite-ultimate'), - 'AS' => __('American Samoa', 'multisite-ultimate'), - 'AD' => __('Andorra', 'multisite-ultimate'), - 'AO' => __('Angola', 'multisite-ultimate'), - 'AI' => __('Anguilla', 'multisite-ultimate'), - 'AQ' => __('Antarctica', 'multisite-ultimate'), - 'AG' => __('Antigua and Barbuda', 'multisite-ultimate'), - 'AR' => __('Argentina', 'multisite-ultimate'), - 'AM' => __('Armenia', 'multisite-ultimate'), - 'AW' => __('Aruba', 'multisite-ultimate'), - 'AU' => __('Australia', 'multisite-ultimate'), - 'AT' => __('Austria', 'multisite-ultimate'), - 'AZ' => __('Azerbaijan', 'multisite-ultimate'), - 'BS' => __('Bahamas', 'multisite-ultimate'), - 'BH' => __('Bahrain', 'multisite-ultimate'), - 'BD' => __('Bangladesh', 'multisite-ultimate'), - 'BB' => __('Barbados', 'multisite-ultimate'), - 'BY' => __('Belarus', 'multisite-ultimate'), - 'BE' => __('Belgium', 'multisite-ultimate'), - 'PW' => __('Belau', 'multisite-ultimate'), - 'BZ' => __('Belize', 'multisite-ultimate'), - 'BJ' => __('Benin', 'multisite-ultimate'), - 'BM' => __('Bermuda', 'multisite-ultimate'), - 'BT' => __('Bhutan', 'multisite-ultimate'), - 'BO' => __('Bolivia', 'multisite-ultimate'), - 'BQ' => __('Bonaire, Saint Eustatius and Saba', 'multisite-ultimate'), - 'BA' => __('Bosnia and Herzegovina', 'multisite-ultimate'), - 'BW' => __('Botswana', 'multisite-ultimate'), - 'BV' => __('Bouvet Island', 'multisite-ultimate'), - 'BR' => __('Brazil', 'multisite-ultimate'), - 'IO' => __('British Indian Ocean Territory', 'multisite-ultimate'), - 'VG' => __('British Virgin Islands', 'multisite-ultimate'), - 'BN' => __('Brunei', 'multisite-ultimate'), - 'BG' => __('Bulgaria', 'multisite-ultimate'), - 'BF' => __('Burkina Faso', 'multisite-ultimate'), - 'BI' => __('Burundi', 'multisite-ultimate'), - 'KH' => __('Cambodia', 'multisite-ultimate'), - 'CM' => __('Cameroon', 'multisite-ultimate'), - 'CA' => __('Canada', 'multisite-ultimate'), - 'CV' => __('Cape Verde', 'multisite-ultimate'), - 'KY' => __('Cayman Islands', 'multisite-ultimate'), - 'CF' => __('Central African Republic', 'multisite-ultimate'), - 'TD' => __('Chad', 'multisite-ultimate'), - 'CL' => __('Chile', 'multisite-ultimate'), - 'CN' => __('China', 'multisite-ultimate'), - 'CX' => __('Christmas Island', 'multisite-ultimate'), - 'CC' => __('Cocos (Keeling) Islands', 'multisite-ultimate'), - 'CO' => __('Colombia', 'multisite-ultimate'), - 'KM' => __('Comoros', 'multisite-ultimate'), - 'CG' => __('Congo (Brazzaville)', 'multisite-ultimate'), - 'CD' => __('Congo (Kinshasa)', 'multisite-ultimate'), - 'CK' => __('Cook Islands', 'multisite-ultimate'), - 'CR' => __('Costa Rica', 'multisite-ultimate'), - 'HR' => __('Croatia', 'multisite-ultimate'), - 'CU' => __('Cuba', 'multisite-ultimate'), - 'CW' => __('Curaçao', 'multisite-ultimate'), - 'CY' => __('Cyprus', 'multisite-ultimate'), - 'CZ' => __('Czech Republic', 'multisite-ultimate'), - 'DK' => __('Denmark', 'multisite-ultimate'), - 'DJ' => __('Djibouti', 'multisite-ultimate'), - 'DM' => __('Dominica', 'multisite-ultimate'), - 'DO' => __('Dominican Republic', 'multisite-ultimate'), - 'EC' => __('Ecuador', 'multisite-ultimate'), - 'EG' => __('Egypt', 'multisite-ultimate'), - 'SV' => __('El Salvador', 'multisite-ultimate'), - 'GQ' => __('Equatorial Guinea', 'multisite-ultimate'), - 'ER' => __('Eritrea', 'multisite-ultimate'), - 'EE' => __('Estonia', 'multisite-ultimate'), - 'ET' => __('Ethiopia', 'multisite-ultimate'), - 'FK' => __('Falkland Islands', 'multisite-ultimate'), - 'FO' => __('Faroe Islands', 'multisite-ultimate'), - 'FJ' => __('Fiji', 'multisite-ultimate'), - 'FI' => __('Finland', 'multisite-ultimate'), - 'FR' => __('France', 'multisite-ultimate'), - 'GF' => __('French Guiana', 'multisite-ultimate'), - 'PF' => __('French Polynesia', 'multisite-ultimate'), - 'TF' => __('French Southern Territories', 'multisite-ultimate'), - 'GA' => __('Gabon', 'multisite-ultimate'), - 'GM' => __('Gambia', 'multisite-ultimate'), - 'GE' => __('Georgia', 'multisite-ultimate'), - 'DE' => __('Germany', 'multisite-ultimate'), - 'GH' => __('Ghana', 'multisite-ultimate'), - 'GI' => __('Gibraltar', 'multisite-ultimate'), - 'GR' => __('Greece', 'multisite-ultimate'), - 'GL' => __('Greenland', 'multisite-ultimate'), - 'GD' => __('Grenada', 'multisite-ultimate'), - 'GP' => __('Guadeloupe', 'multisite-ultimate'), - 'GU' => __('Guam', 'multisite-ultimate'), - 'GT' => __('Guatemala', 'multisite-ultimate'), - 'GG' => __('Guernsey', 'multisite-ultimate'), - 'GN' => __('Guinea', 'multisite-ultimate'), - 'GW' => __('Guinea-Bissau', 'multisite-ultimate'), - 'GY' => __('Guyana', 'multisite-ultimate'), - 'HT' => __('Haiti', 'multisite-ultimate'), - 'HM' => __('Heard Island and McDonald Islands', 'multisite-ultimate'), - 'HN' => __('Honduras', 'multisite-ultimate'), - 'HK' => __('Hong Kong', 'multisite-ultimate'), - 'HU' => __('Hungary', 'multisite-ultimate'), - 'IS' => __('Iceland', 'multisite-ultimate'), - 'IN' => __('India', 'multisite-ultimate'), - 'ID' => __('Indonesia', 'multisite-ultimate'), - 'IR' => __('Iran', 'multisite-ultimate'), - 'IQ' => __('Iraq', 'multisite-ultimate'), - 'IE' => __('Ireland', 'multisite-ultimate'), - 'IM' => __('Isle of Man', 'multisite-ultimate'), - 'IL' => __('Israel', 'multisite-ultimate'), - 'IT' => __('Italy', 'multisite-ultimate'), - 'CI' => __('Ivory Coast', 'multisite-ultimate'), - 'JM' => __('Jamaica', 'multisite-ultimate'), - 'JP' => __('Japan', 'multisite-ultimate'), - 'JE' => __('Jersey', 'multisite-ultimate'), - 'JO' => __('Jordan', 'multisite-ultimate'), - 'KZ' => __('Kazakhstan', 'multisite-ultimate'), - 'KE' => __('Kenya', 'multisite-ultimate'), - 'KI' => __('Kiribati', 'multisite-ultimate'), - 'KW' => __('Kuwait', 'multisite-ultimate'), - 'KG' => __('Kyrgyzstan', 'multisite-ultimate'), - 'LA' => __('Laos', 'multisite-ultimate'), - 'LV' => __('Latvia', 'multisite-ultimate'), - 'LB' => __('Lebanon', 'multisite-ultimate'), - 'LS' => __('Lesotho', 'multisite-ultimate'), - 'LR' => __('Liberia', 'multisite-ultimate'), - 'LY' => __('Libya', 'multisite-ultimate'), - 'LI' => __('Liechtenstein', 'multisite-ultimate'), - 'LT' => __('Lithuania', 'multisite-ultimate'), - 'LU' => __('Luxembourg', 'multisite-ultimate'), - 'MO' => __('Macao S.A.R., China', 'multisite-ultimate'), - 'MK' => __('Macedonia', 'multisite-ultimate'), - 'MG' => __('Madagascar', 'multisite-ultimate'), - 'MW' => __('Malawi', 'multisite-ultimate'), - 'MY' => __('Malaysia', 'multisite-ultimate'), - 'MV' => __('Maldives', 'multisite-ultimate'), - 'ML' => __('Mali', 'multisite-ultimate'), - 'MT' => __('Malta', 'multisite-ultimate'), - 'MH' => __('Marshall Islands', 'multisite-ultimate'), - 'MQ' => __('Martinique', 'multisite-ultimate'), - 'MR' => __('Mauritania', 'multisite-ultimate'), - 'MU' => __('Mauritius', 'multisite-ultimate'), - 'YT' => __('Mayotte', 'multisite-ultimate'), - 'MX' => __('Mexico', 'multisite-ultimate'), - 'FM' => __('Micronesia', 'multisite-ultimate'), - 'MD' => __('Moldova', 'multisite-ultimate'), - 'MC' => __('Monaco', 'multisite-ultimate'), - 'MN' => __('Mongolia', 'multisite-ultimate'), - 'ME' => __('Montenegro', 'multisite-ultimate'), - 'MS' => __('Montserrat', 'multisite-ultimate'), - 'MA' => __('Morocco', 'multisite-ultimate'), - 'MZ' => __('Mozambique', 'multisite-ultimate'), - 'MM' => __('Myanmar', 'multisite-ultimate'), - 'NA' => __('Namibia', 'multisite-ultimate'), - 'NR' => __('Nauru', 'multisite-ultimate'), - 'NP' => __('Nepal', 'multisite-ultimate'), - 'NL' => __('Netherlands', 'multisite-ultimate'), - 'NC' => __('New Caledonia', 'multisite-ultimate'), - 'NZ' => __('New Zealand', 'multisite-ultimate'), - 'NI' => __('Nicaragua', 'multisite-ultimate'), - 'NE' => __('Niger', 'multisite-ultimate'), - 'NG' => __('Nigeria', 'multisite-ultimate'), - 'NU' => __('Niue', 'multisite-ultimate'), - 'NF' => __('Norfolk Island', 'multisite-ultimate'), - 'MP' => __('Northern Mariana Islands', 'multisite-ultimate'), - 'KP' => __('North Korea', 'multisite-ultimate'), - 'NO' => __('Norway', 'multisite-ultimate'), - 'OM' => __('Oman', 'multisite-ultimate'), - 'PK' => __('Pakistan', 'multisite-ultimate'), - 'PS' => __('Palestinian Territory', 'multisite-ultimate'), - 'PA' => __('Panama', 'multisite-ultimate'), - 'PG' => __('Papua New Guinea', 'multisite-ultimate'), - 'PY' => __('Paraguay', 'multisite-ultimate'), - 'PE' => __('Peru', 'multisite-ultimate'), - 'PH' => __('Philippines', 'multisite-ultimate'), - 'PN' => __('Pitcairn', 'multisite-ultimate'), - 'PL' => __('Poland', 'multisite-ultimate'), - 'PT' => __('Portugal', 'multisite-ultimate'), - 'PR' => __('Puerto Rico', 'multisite-ultimate'), - 'QA' => __('Qatar', 'multisite-ultimate'), - 'RE' => __('Reunion', 'multisite-ultimate'), - 'RO' => __('Romania', 'multisite-ultimate'), - 'RU' => __('Russia', 'multisite-ultimate'), - 'RW' => __('Rwanda', 'multisite-ultimate'), - 'BL' => __('Saint Barthélemy', 'multisite-ultimate'), - 'SH' => __('Saint Helena', 'multisite-ultimate'), - 'KN' => __('Saint Kitts and Nevis', 'multisite-ultimate'), - 'LC' => __('Saint Lucia', 'multisite-ultimate'), - 'MF' => __('Saint Martin (French part)', 'multisite-ultimate'), - 'SX' => __('Saint Martin (Dutch part)', 'multisite-ultimate'), - 'PM' => __('Saint Pierre and Miquelon', 'multisite-ultimate'), - 'VC' => __('Saint Vincent and the Grenadines', 'multisite-ultimate'), - 'SM' => __('San Marino', 'multisite-ultimate'), - 'ST' => __('São Tomé and Príncipe', 'multisite-ultimate'), - 'SA' => __('Saudi Arabia', 'multisite-ultimate'), - 'SN' => __('Senegal', 'multisite-ultimate'), - 'RS' => __('Serbia', 'multisite-ultimate'), - 'SC' => __('Seychelles', 'multisite-ultimate'), - 'SL' => __('Sierra Leone', 'multisite-ultimate'), - 'SG' => __('Singapore', 'multisite-ultimate'), - 'SK' => __('Slovakia', 'multisite-ultimate'), - 'SI' => __('Slovenia', 'multisite-ultimate'), - 'SB' => __('Solomon Islands', 'multisite-ultimate'), - 'SO' => __('Somalia', 'multisite-ultimate'), - 'ZA' => __('South Africa', 'multisite-ultimate'), - 'GS' => __('South Georgia/Sandwich Islands', 'multisite-ultimate'), - 'KR' => __('South Korea', 'multisite-ultimate'), - 'SS' => __('South Sudan', 'multisite-ultimate'), - 'ES' => __('Spain', 'multisite-ultimate'), - 'LK' => __('Sri Lanka', 'multisite-ultimate'), - 'SD' => __('Sudan', 'multisite-ultimate'), - 'SR' => __('Suriname', 'multisite-ultimate'), - 'SJ' => __('Svalbard and Jan Mayen', 'multisite-ultimate'), - 'SZ' => __('Swaziland', 'multisite-ultimate'), - 'SE' => __('Sweden', 'multisite-ultimate'), - 'CH' => __('Switzerland', 'multisite-ultimate'), - 'SY' => __('Syria', 'multisite-ultimate'), - 'TW' => __('Taiwan', 'multisite-ultimate'), - 'TJ' => __('Tajikistan', 'multisite-ultimate'), - 'TZ' => __('Tanzania', 'multisite-ultimate'), - 'TH' => __('Thailand', 'multisite-ultimate'), - 'TL' => __('Timor-Leste', 'multisite-ultimate'), - 'TG' => __('Togo', 'multisite-ultimate'), - 'TK' => __('Tokelau', 'multisite-ultimate'), - 'TO' => __('Tonga', 'multisite-ultimate'), - 'TT' => __('Trinidad and Tobago', 'multisite-ultimate'), - 'TN' => __('Tunisia', 'multisite-ultimate'), - 'TR' => __('Turkey', 'multisite-ultimate'), - 'TM' => __('Turkmenistan', 'multisite-ultimate'), - 'TC' => __('Turks and Caicos Islands', 'multisite-ultimate'), - 'TV' => __('Tuvalu', 'multisite-ultimate'), - 'UG' => __('Uganda', 'multisite-ultimate'), - 'UA' => __('Ukraine', 'multisite-ultimate'), - 'AE' => __('United Arab Emirates', 'multisite-ultimate'), - 'GB' => __('United Kingdom (UK)', 'multisite-ultimate'), - 'US' => __('United States (US)', 'multisite-ultimate'), - 'UM' => __('United States (US) Minor Outlying Islands', 'multisite-ultimate'), - 'VI' => __('United States (US) Virgin Islands', 'multisite-ultimate'), - 'UY' => __('Uruguay', 'multisite-ultimate'), - 'UZ' => __('Uzbekistan', 'multisite-ultimate'), - 'VU' => __('Vanuatu', 'multisite-ultimate'), - 'VA' => __('Vatican', 'multisite-ultimate'), - 'VE' => __('Venezuela', 'multisite-ultimate'), - 'VN' => __('Vietnam', 'multisite-ultimate'), - 'WF' => __('Wallis and Futuna', 'multisite-ultimate'), - 'EH' => __('Western Sahara', 'multisite-ultimate'), - 'WS' => __('Samoa', 'multisite-ultimate'), - 'YE' => __('Yemen', 'multisite-ultimate'), - 'ZM' => __('Zambia', 'multisite-ultimate'), - 'ZW' => __('Zimbabwe', 'multisite-ultimate'), + 'AF' => __('Afghanistan', 'ultimate-multisite'), + 'AX' => __('Åland Islands', 'ultimate-multisite'), + 'AL' => __('Albania', 'ultimate-multisite'), + 'DZ' => __('Algeria', 'ultimate-multisite'), + 'AS' => __('American Samoa', 'ultimate-multisite'), + 'AD' => __('Andorra', 'ultimate-multisite'), + 'AO' => __('Angola', 'ultimate-multisite'), + 'AI' => __('Anguilla', 'ultimate-multisite'), + 'AQ' => __('Antarctica', 'ultimate-multisite'), + 'AG' => __('Antigua and Barbuda', 'ultimate-multisite'), + 'AR' => __('Argentina', 'ultimate-multisite'), + 'AM' => __('Armenia', 'ultimate-multisite'), + 'AW' => __('Aruba', 'ultimate-multisite'), + 'AU' => __('Australia', 'ultimate-multisite'), + 'AT' => __('Austria', 'ultimate-multisite'), + 'AZ' => __('Azerbaijan', 'ultimate-multisite'), + 'BS' => __('Bahamas', 'ultimate-multisite'), + 'BH' => __('Bahrain', 'ultimate-multisite'), + 'BD' => __('Bangladesh', 'ultimate-multisite'), + 'BB' => __('Barbados', 'ultimate-multisite'), + 'BY' => __('Belarus', 'ultimate-multisite'), + 'BE' => __('Belgium', 'ultimate-multisite'), + 'PW' => __('Belau', 'ultimate-multisite'), + 'BZ' => __('Belize', 'ultimate-multisite'), + 'BJ' => __('Benin', 'ultimate-multisite'), + 'BM' => __('Bermuda', 'ultimate-multisite'), + 'BT' => __('Bhutan', 'ultimate-multisite'), + 'BO' => __('Bolivia', 'ultimate-multisite'), + 'BQ' => __('Bonaire, Saint Eustatius and Saba', 'ultimate-multisite'), + 'BA' => __('Bosnia and Herzegovina', 'ultimate-multisite'), + 'BW' => __('Botswana', 'ultimate-multisite'), + 'BV' => __('Bouvet Island', 'ultimate-multisite'), + 'BR' => __('Brazil', 'ultimate-multisite'), + 'IO' => __('British Indian Ocean Territory', 'ultimate-multisite'), + 'VG' => __('British Virgin Islands', 'ultimate-multisite'), + 'BN' => __('Brunei', 'ultimate-multisite'), + 'BG' => __('Bulgaria', 'ultimate-multisite'), + 'BF' => __('Burkina Faso', 'ultimate-multisite'), + 'BI' => __('Burundi', 'ultimate-multisite'), + 'KH' => __('Cambodia', 'ultimate-multisite'), + 'CM' => __('Cameroon', 'ultimate-multisite'), + 'CA' => __('Canada', 'ultimate-multisite'), + 'CV' => __('Cape Verde', 'ultimate-multisite'), + 'KY' => __('Cayman Islands', 'ultimate-multisite'), + 'CF' => __('Central African Republic', 'ultimate-multisite'), + 'TD' => __('Chad', 'ultimate-multisite'), + 'CL' => __('Chile', 'ultimate-multisite'), + 'CN' => __('China', 'ultimate-multisite'), + 'CX' => __('Christmas Island', 'ultimate-multisite'), + 'CC' => __('Cocos (Keeling) Islands', 'ultimate-multisite'), + 'CO' => __('Colombia', 'ultimate-multisite'), + 'KM' => __('Comoros', 'ultimate-multisite'), + 'CG' => __('Congo (Brazzaville)', 'ultimate-multisite'), + 'CD' => __('Congo (Kinshasa)', 'ultimate-multisite'), + 'CK' => __('Cook Islands', 'ultimate-multisite'), + 'CR' => __('Costa Rica', 'ultimate-multisite'), + 'HR' => __('Croatia', 'ultimate-multisite'), + 'CU' => __('Cuba', 'ultimate-multisite'), + 'CW' => __('Curaçao', 'ultimate-multisite'), + 'CY' => __('Cyprus', 'ultimate-multisite'), + 'CZ' => __('Czech Republic', 'ultimate-multisite'), + 'DK' => __('Denmark', 'ultimate-multisite'), + 'DJ' => __('Djibouti', 'ultimate-multisite'), + 'DM' => __('Dominica', 'ultimate-multisite'), + 'DO' => __('Dominican Republic', 'ultimate-multisite'), + 'EC' => __('Ecuador', 'ultimate-multisite'), + 'EG' => __('Egypt', 'ultimate-multisite'), + 'SV' => __('El Salvador', 'ultimate-multisite'), + 'GQ' => __('Equatorial Guinea', 'ultimate-multisite'), + 'ER' => __('Eritrea', 'ultimate-multisite'), + 'EE' => __('Estonia', 'ultimate-multisite'), + 'ET' => __('Ethiopia', 'ultimate-multisite'), + 'FK' => __('Falkland Islands', 'ultimate-multisite'), + 'FO' => __('Faroe Islands', 'ultimate-multisite'), + 'FJ' => __('Fiji', 'ultimate-multisite'), + 'FI' => __('Finland', 'ultimate-multisite'), + 'FR' => __('France', 'ultimate-multisite'), + 'GF' => __('French Guiana', 'ultimate-multisite'), + 'PF' => __('French Polynesia', 'ultimate-multisite'), + 'TF' => __('French Southern Territories', 'ultimate-multisite'), + 'GA' => __('Gabon', 'ultimate-multisite'), + 'GM' => __('Gambia', 'ultimate-multisite'), + 'GE' => __('Georgia', 'ultimate-multisite'), + 'DE' => __('Germany', 'ultimate-multisite'), + 'GH' => __('Ghana', 'ultimate-multisite'), + 'GI' => __('Gibraltar', 'ultimate-multisite'), + 'GR' => __('Greece', 'ultimate-multisite'), + 'GL' => __('Greenland', 'ultimate-multisite'), + 'GD' => __('Grenada', 'ultimate-multisite'), + 'GP' => __('Guadeloupe', 'ultimate-multisite'), + 'GU' => __('Guam', 'ultimate-multisite'), + 'GT' => __('Guatemala', 'ultimate-multisite'), + 'GG' => __('Guernsey', 'ultimate-multisite'), + 'GN' => __('Guinea', 'ultimate-multisite'), + 'GW' => __('Guinea-Bissau', 'ultimate-multisite'), + 'GY' => __('Guyana', 'ultimate-multisite'), + 'HT' => __('Haiti', 'ultimate-multisite'), + 'HM' => __('Heard Island and McDonald Islands', 'ultimate-multisite'), + 'HN' => __('Honduras', 'ultimate-multisite'), + 'HK' => __('Hong Kong', 'ultimate-multisite'), + 'HU' => __('Hungary', 'ultimate-multisite'), + 'IS' => __('Iceland', 'ultimate-multisite'), + 'IN' => __('India', 'ultimate-multisite'), + 'ID' => __('Indonesia', 'ultimate-multisite'), + 'IR' => __('Iran', 'ultimate-multisite'), + 'IQ' => __('Iraq', 'ultimate-multisite'), + 'IE' => __('Ireland', 'ultimate-multisite'), + 'IM' => __('Isle of Man', 'ultimate-multisite'), + 'IL' => __('Israel', 'ultimate-multisite'), + 'IT' => __('Italy', 'ultimate-multisite'), + 'CI' => __('Ivory Coast', 'ultimate-multisite'), + 'JM' => __('Jamaica', 'ultimate-multisite'), + 'JP' => __('Japan', 'ultimate-multisite'), + 'JE' => __('Jersey', 'ultimate-multisite'), + 'JO' => __('Jordan', 'ultimate-multisite'), + 'KZ' => __('Kazakhstan', 'ultimate-multisite'), + 'KE' => __('Kenya', 'ultimate-multisite'), + 'KI' => __('Kiribati', 'ultimate-multisite'), + 'KW' => __('Kuwait', 'ultimate-multisite'), + 'KG' => __('Kyrgyzstan', 'ultimate-multisite'), + 'LA' => __('Laos', 'ultimate-multisite'), + 'LV' => __('Latvia', 'ultimate-multisite'), + 'LB' => __('Lebanon', 'ultimate-multisite'), + 'LS' => __('Lesotho', 'ultimate-multisite'), + 'LR' => __('Liberia', 'ultimate-multisite'), + 'LY' => __('Libya', 'ultimate-multisite'), + 'LI' => __('Liechtenstein', 'ultimate-multisite'), + 'LT' => __('Lithuania', 'ultimate-multisite'), + 'LU' => __('Luxembourg', 'ultimate-multisite'), + 'MO' => __('Macao S.A.R., China', 'ultimate-multisite'), + 'MK' => __('Macedonia', 'ultimate-multisite'), + 'MG' => __('Madagascar', 'ultimate-multisite'), + 'MW' => __('Malawi', 'ultimate-multisite'), + 'MY' => __('Malaysia', 'ultimate-multisite'), + 'MV' => __('Maldives', 'ultimate-multisite'), + 'ML' => __('Mali', 'ultimate-multisite'), + 'MT' => __('Malta', 'ultimate-multisite'), + 'MH' => __('Marshall Islands', 'ultimate-multisite'), + 'MQ' => __('Martinique', 'ultimate-multisite'), + 'MR' => __('Mauritania', 'ultimate-multisite'), + 'MU' => __('Mauritius', 'ultimate-multisite'), + 'YT' => __('Mayotte', 'ultimate-multisite'), + 'MX' => __('Mexico', 'ultimate-multisite'), + 'FM' => __('Micronesia', 'ultimate-multisite'), + 'MD' => __('Moldova', 'ultimate-multisite'), + 'MC' => __('Monaco', 'ultimate-multisite'), + 'MN' => __('Mongolia', 'ultimate-multisite'), + 'ME' => __('Montenegro', 'ultimate-multisite'), + 'MS' => __('Montserrat', 'ultimate-multisite'), + 'MA' => __('Morocco', 'ultimate-multisite'), + 'MZ' => __('Mozambique', 'ultimate-multisite'), + 'MM' => __('Myanmar', 'ultimate-multisite'), + 'NA' => __('Namibia', 'ultimate-multisite'), + 'NR' => __('Nauru', 'ultimate-multisite'), + 'NP' => __('Nepal', 'ultimate-multisite'), + 'NL' => __('Netherlands', 'ultimate-multisite'), + 'NC' => __('New Caledonia', 'ultimate-multisite'), + 'NZ' => __('New Zealand', 'ultimate-multisite'), + 'NI' => __('Nicaragua', 'ultimate-multisite'), + 'NE' => __('Niger', 'ultimate-multisite'), + 'NG' => __('Nigeria', 'ultimate-multisite'), + 'NU' => __('Niue', 'ultimate-multisite'), + 'NF' => __('Norfolk Island', 'ultimate-multisite'), + 'MP' => __('Northern Mariana Islands', 'ultimate-multisite'), + 'KP' => __('North Korea', 'ultimate-multisite'), + 'NO' => __('Norway', 'ultimate-multisite'), + 'OM' => __('Oman', 'ultimate-multisite'), + 'PK' => __('Pakistan', 'ultimate-multisite'), + 'PS' => __('Palestinian Territory', 'ultimate-multisite'), + 'PA' => __('Panama', 'ultimate-multisite'), + 'PG' => __('Papua New Guinea', 'ultimate-multisite'), + 'PY' => __('Paraguay', 'ultimate-multisite'), + 'PE' => __('Peru', 'ultimate-multisite'), + 'PH' => __('Philippines', 'ultimate-multisite'), + 'PN' => __('Pitcairn', 'ultimate-multisite'), + 'PL' => __('Poland', 'ultimate-multisite'), + 'PT' => __('Portugal', 'ultimate-multisite'), + 'PR' => __('Puerto Rico', 'ultimate-multisite'), + 'QA' => __('Qatar', 'ultimate-multisite'), + 'RE' => __('Reunion', 'ultimate-multisite'), + 'RO' => __('Romania', 'ultimate-multisite'), + 'RU' => __('Russia', 'ultimate-multisite'), + 'RW' => __('Rwanda', 'ultimate-multisite'), + 'BL' => __('Saint Barthélemy', 'ultimate-multisite'), + 'SH' => __('Saint Helena', 'ultimate-multisite'), + 'KN' => __('Saint Kitts and Nevis', 'ultimate-multisite'), + 'LC' => __('Saint Lucia', 'ultimate-multisite'), + 'MF' => __('Saint Martin (French part)', 'ultimate-multisite'), + 'SX' => __('Saint Martin (Dutch part)', 'ultimate-multisite'), + 'PM' => __('Saint Pierre and Miquelon', 'ultimate-multisite'), + 'VC' => __('Saint Vincent and the Grenadines', 'ultimate-multisite'), + 'SM' => __('San Marino', 'ultimate-multisite'), + 'ST' => __('São Tomé and Príncipe', 'ultimate-multisite'), + 'SA' => __('Saudi Arabia', 'ultimate-multisite'), + 'SN' => __('Senegal', 'ultimate-multisite'), + 'RS' => __('Serbia', 'ultimate-multisite'), + 'SC' => __('Seychelles', 'ultimate-multisite'), + 'SL' => __('Sierra Leone', 'ultimate-multisite'), + 'SG' => __('Singapore', 'ultimate-multisite'), + 'SK' => __('Slovakia', 'ultimate-multisite'), + 'SI' => __('Slovenia', 'ultimate-multisite'), + 'SB' => __('Solomon Islands', 'ultimate-multisite'), + 'SO' => __('Somalia', 'ultimate-multisite'), + 'ZA' => __('South Africa', 'ultimate-multisite'), + 'GS' => __('South Georgia/Sandwich Islands', 'ultimate-multisite'), + 'KR' => __('South Korea', 'ultimate-multisite'), + 'SS' => __('South Sudan', 'ultimate-multisite'), + 'ES' => __('Spain', 'ultimate-multisite'), + 'LK' => __('Sri Lanka', 'ultimate-multisite'), + 'SD' => __('Sudan', 'ultimate-multisite'), + 'SR' => __('Suriname', 'ultimate-multisite'), + 'SJ' => __('Svalbard and Jan Mayen', 'ultimate-multisite'), + 'SZ' => __('Swaziland', 'ultimate-multisite'), + 'SE' => __('Sweden', 'ultimate-multisite'), + 'CH' => __('Switzerland', 'ultimate-multisite'), + 'SY' => __('Syria', 'ultimate-multisite'), + 'TW' => __('Taiwan', 'ultimate-multisite'), + 'TJ' => __('Tajikistan', 'ultimate-multisite'), + 'TZ' => __('Tanzania', 'ultimate-multisite'), + 'TH' => __('Thailand', 'ultimate-multisite'), + 'TL' => __('Timor-Leste', 'ultimate-multisite'), + 'TG' => __('Togo', 'ultimate-multisite'), + 'TK' => __('Tokelau', 'ultimate-multisite'), + 'TO' => __('Tonga', 'ultimate-multisite'), + 'TT' => __('Trinidad and Tobago', 'ultimate-multisite'), + 'TN' => __('Tunisia', 'ultimate-multisite'), + 'TR' => __('Turkey', 'ultimate-multisite'), + 'TM' => __('Turkmenistan', 'ultimate-multisite'), + 'TC' => __('Turks and Caicos Islands', 'ultimate-multisite'), + 'TV' => __('Tuvalu', 'ultimate-multisite'), + 'UG' => __('Uganda', 'ultimate-multisite'), + 'UA' => __('Ukraine', 'ultimate-multisite'), + 'AE' => __('United Arab Emirates', 'ultimate-multisite'), + 'GB' => __('United Kingdom (UK)', 'ultimate-multisite'), + 'US' => __('United States (US)', 'ultimate-multisite'), + 'UM' => __('United States (US) Minor Outlying Islands', 'ultimate-multisite'), + 'VI' => __('United States (US) Virgin Islands', 'ultimate-multisite'), + 'UY' => __('Uruguay', 'ultimate-multisite'), + 'UZ' => __('Uzbekistan', 'ultimate-multisite'), + 'VU' => __('Vanuatu', 'ultimate-multisite'), + 'VA' => __('Vatican', 'ultimate-multisite'), + 'VE' => __('Venezuela', 'ultimate-multisite'), + 'VN' => __('Vietnam', 'ultimate-multisite'), + 'WF' => __('Wallis and Futuna', 'ultimate-multisite'), + 'EH' => __('Western Sahara', 'ultimate-multisite'), + 'WS' => __('Samoa', 'ultimate-multisite'), + 'YE' => __('Yemen', 'ultimate-multisite'), + 'ZM' => __('Zambia', 'ultimate-multisite'), + 'ZW' => __('Zimbabwe', 'ultimate-multisite'), ] ); } @@ -283,7 +283,7 @@ function wu_get_countries_as_options() { return array_merge( [ - '' => __('Select Country', 'multisite-ultimate'), + '' => __('Select Country', 'ultimate-multisite'), ], wu_get_countries() ); @@ -397,7 +397,7 @@ function wu_get_country_cities($country_code, $states, $key_name = 'id', $value_ */ function wu_get_country_name($country_code) { - $country_name = wu_get_isset(wu_get_countries(), $country_code, __('Not found', 'multisite-ultimate')); + $country_name = wu_get_isset(wu_get_countries(), $country_code, __('Not found', 'ultimate-multisite')); return apply_filters('wu_get_country_name', $country_name, $country_code); } diff --git a/inc/functions/currency.php b/inc/functions/currency.php index 284e00e09..d85113153 100644 --- a/inc/functions/currency.php +++ b/inc/functions/currency.php @@ -20,143 +20,143 @@ function wu_get_currencies(): array { 'wu_currencies', [ - 'AED' => __('United Arab Emirates Dirham', 'multisite-ultimate'), - 'AFN' => __('Afghan Afghani', 'multisite-ultimate'), - 'ALL' => __('Albanian Lek', 'multisite-ultimate'), - 'AMD' => __('Armenian Dram', 'multisite-ultimate'), - 'AOA' => __('Angolan Kwanza', 'multisite-ultimate'), - 'ARS' => __('Argentine Peso', 'multisite-ultimate'), - 'AUD' => __('Australian Dollar', 'multisite-ultimate'), - 'AWG' => __('Aruban Florin', 'multisite-ultimate'), - 'AZN' => __('Azerbaijani Manat', 'multisite-ultimate'), - 'BAM' => __('Bosnia & Herzegovina Convertible Mark', 'multisite-ultimate'), - 'BBD' => __('Barbadian Dollar', 'multisite-ultimate'), - 'BDT' => __('Bangladeshi Taka', 'multisite-ultimate'), - 'BGN' => __('Bulgarian Lev', 'multisite-ultimate'), - 'BIF' => __('Burundian Franc', 'multisite-ultimate'), - 'BMD' => __('Bermudian Dollar', 'multisite-ultimate'), - 'BND' => __('Brunei Dollar', 'multisite-ultimate'), - 'BOB' => __('Bolivian Boliviano', 'multisite-ultimate'), - 'BRL' => __('Brazilian Real', 'multisite-ultimate'), - 'BSD' => __('Bahamian Dollar', 'multisite-ultimate'), - 'BWP' => __('Botswana Pula', 'multisite-ultimate'), - 'BYN' => __('Belarusian Ruble', 'multisite-ultimate'), - 'BZD' => __('Belize Dollar', 'multisite-ultimate'), - 'CAD' => __('Canadian Dollar', 'multisite-ultimate'), - 'CDF' => __('Congolese Franc', 'multisite-ultimate'), - 'CHF' => __('Swiss Franc', 'multisite-ultimate'), - 'CLP' => __('Chilean Peso', 'multisite-ultimate'), - 'CNY' => __('Chinese Renminbi Yuan', 'multisite-ultimate'), - 'COP' => __('Colombian Peso', 'multisite-ultimate'), - 'CRC' => __('Costa Rican Colón', 'multisite-ultimate'), - 'CVE' => __('Cape Verdean Escudo', 'multisite-ultimate'), - 'CZK' => __('Czech Koruna', 'multisite-ultimate'), - 'DJF' => __('Djiboutian Franc', 'multisite-ultimate'), - 'DKK' => __('Danish Krone', 'multisite-ultimate'), - 'DOP' => __('Dominican Peso', 'multisite-ultimate'), - 'DZD' => __('Algerian Dinar', 'multisite-ultimate'), - 'EGP' => __('Egyptian Pound', 'multisite-ultimate'), - 'ETB' => __('Ethiopian Birr', 'multisite-ultimate'), - 'EUR' => __('Euro', 'multisite-ultimate'), - 'FJD' => __('Fijian Dollar', 'multisite-ultimate'), - 'FKP' => __('Falkland Islands Pound', 'multisite-ultimate'), - 'GBP' => __('British Pound', 'multisite-ultimate'), - 'GEL' => __('Georgian Lari', 'multisite-ultimate'), - 'GIP' => __('Gibraltar Pound', 'multisite-ultimate'), - 'GMD' => __('Gambian Dalasi', 'multisite-ultimate'), - 'GNF' => __('Guinean Franc', 'multisite-ultimate'), - 'GTQ' => __('Guatemalan Quetzal', 'multisite-ultimate'), - 'GYD' => __('Guyanese Dollar', 'multisite-ultimate'), - 'HKD' => __('Hong Kong Dollar', 'multisite-ultimate'), - 'HNL' => __('Honduran Lempira', 'multisite-ultimate'), - 'HRK' => __('Croatian Kuna', 'multisite-ultimate'), - 'HTG' => __('Haitian Gourde', 'multisite-ultimate'), - 'HUF' => __('Hungarian Forint', 'multisite-ultimate'), - 'IDR' => __('Indonesian Rupiah', 'multisite-ultimate'), - 'ILS' => __('Israeli New Sheqel', 'multisite-ultimate'), - 'INR' => __('Indian Rupee', 'multisite-ultimate'), - 'ISK' => __('Icelandic Króna', 'multisite-ultimate'), - 'JMD' => __('Jamaican Dollar', 'multisite-ultimate'), - 'JPY' => __('Japanese Yen', 'multisite-ultimate'), - 'KES' => __('Kenyan Shilling', 'multisite-ultimate'), - 'KGS' => __('Kyrgyzstani Som', 'multisite-ultimate'), - 'KHR' => __('Cambodian Riel', 'multisite-ultimate'), - 'KMF' => __('Comorian Franc', 'multisite-ultimate'), - 'KRW' => __('South Korean Won', 'multisite-ultimate'), - 'KYD' => __('Cayman Islands Dollar', 'multisite-ultimate'), - 'KZT' => __('Kazakhstani Tenge', 'multisite-ultimate'), - 'LAK' => __('Lao Kip', 'multisite-ultimate'), - 'LBP' => __('Lebanese Pound', 'multisite-ultimate'), - 'LKR' => __('Sri Lankan Rupee', 'multisite-ultimate'), - 'LRD' => __('Liberian Dollar', 'multisite-ultimate'), - 'LSL' => __('Lesotho Loti', 'multisite-ultimate'), - 'MAD' => __('Moroccan Dirham', 'multisite-ultimate'), - 'MDL' => __('Moldovan Leu', 'multisite-ultimate'), - 'MGA' => __('Malagasy Ariary', 'multisite-ultimate'), - 'MKD' => __('Macedonian Denar', 'multisite-ultimate'), - 'MMK' => __('Myanmar Kyat', 'multisite-ultimate'), - 'MNT' => __('Mongolian Tögrög', 'multisite-ultimate'), - 'MOP' => __('Macanese Pataca', 'multisite-ultimate'), - 'MRU' => __('Mauritanian Ouguiya', 'multisite-ultimate'), // MRO seems outdated, MRU modern replacements in ISO 4217. - 'MUR' => __('Mauritian Rupee', 'multisite-ultimate'), - 'MVR' => __('Maldivian Rufiyaa', 'multisite-ultimate'), - 'MWK' => __('Malawian Kwacha', 'multisite-ultimate'), - 'MXN' => __('Mexican Peso', 'multisite-ultimate'), - 'MYR' => __('Malaysian Ringgit', 'multisite-ultimate'), - 'MZN' => __('Mozambican Metical', 'multisite-ultimate'), - 'NAD' => __('Namibian Dollar', 'multisite-ultimate'), - 'NGN' => __('Nigerian Naira', 'multisite-ultimate'), - 'NIO' => __('Nicaraguan Córdoba', 'multisite-ultimate'), - 'NOK' => __('Norwegian Krone', 'multisite-ultimate'), - 'NPR' => __('Nepalese Rupee', 'multisite-ultimate'), - 'NZD' => __('New Zealand Dollar', 'multisite-ultimate'), - 'PAB' => __('Panamanian Balboa', 'multisite-ultimate'), - 'PEN' => __('Peruvian Nuevo Sol', 'multisite-ultimate'), - 'PGK' => __('Papua New Guinean Kina', 'multisite-ultimate'), - 'PHP' => __('Philippine Peso', 'multisite-ultimate'), - 'PKR' => __('Pakistani Rupee', 'multisite-ultimate'), - 'PLN' => __('Polish Złoty', 'multisite-ultimate'), - 'PYG' => __('Paraguayan Guaraní', 'multisite-ultimate'), - 'QAR' => __('Qatari Riyal', 'multisite-ultimate'), - 'RON' => __('Romanian Leu', 'multisite-ultimate'), - 'RSD' => __('Serbian Dinar', 'multisite-ultimate'), - 'RUB' => __('Russian Ruble', 'multisite-ultimate'), - 'RWF' => __('Rwandan Franc', 'multisite-ultimate'), - 'SAR' => __('Saudi Riyal', 'multisite-ultimate'), - 'SBD' => __('Solomon Islands Dollar', 'multisite-ultimate'), - 'SCR' => __('Seychellois Rupee', 'multisite-ultimate'), - 'SEK' => __('Swedish Krona', 'multisite-ultimate'), - 'SGD' => __('Singapore Dollar', 'multisite-ultimate'), - 'SHP' => __('Saint Helenian Pound', 'multisite-ultimate'), - 'SLE' => __('Sierra Leonean Leone', 'multisite-ultimate'), // SLL is outdated, SLE modern replacements in ISO 4217. - 'SOS' => __('Somali Shilling', 'multisite-ultimate'), - 'SRD' => __('Surinamese Dollar', 'multisite-ultimate'), - 'STD' => __('São Tomé and Príncipe Dobra', 'multisite-ultimate'), - 'SVC' => __('Salvadoran Colón', 'multisite-ultimate'), - 'SZL' => __('Swazi Lilangeni', 'multisite-ultimate'), - 'THB' => __('Thai Baht', 'multisite-ultimate'), - 'TJS' => __('Tajikistani Somoni', 'multisite-ultimate'), - 'TOP' => __('Tongan Paʻanga', 'multisite-ultimate'), - 'TRY' => __('Turkish Lira', 'multisite-ultimate'), - 'TTD' => __('Trinidad and Tobago Dollar', 'multisite-ultimate'), - 'TWD' => __('New Taiwan Dollar', 'multisite-ultimate'), - 'TZS' => __('Tanzanian Shilling', 'multisite-ultimate'), - 'UAH' => __('Ukrainian Hryvnia', 'multisite-ultimate'), - 'UGX' => __('Ugandan Shilling', 'multisite-ultimate'), - 'USD' => __('United States Dollar', 'multisite-ultimate'), - 'UYU' => __('Uruguayan Peso', 'multisite-ultimate'), - 'UZS' => __('Uzbekistani Som', 'multisite-ultimate'), - 'VND' => __('Vietnamese Đồng', 'multisite-ultimate'), - 'VUV' => __('Vanuatu Vatu', 'multisite-ultimate'), - 'WST' => __('Samoan Tala', 'multisite-ultimate'), - 'XAF' => __('Central African Cfa Franc', 'multisite-ultimate'), - 'XCD' => __('East Caribbean Dollar', 'multisite-ultimate'), - 'XOF' => __('West African Cfa Franc', 'multisite-ultimate'), - 'XPF' => __('Cfp Franc', 'multisite-ultimate'), - 'XCG' => __('Caribbean Guilder', 'multisite-ultimate'), - 'YER' => __('Yemeni Rial', 'multisite-ultimate'), - 'ZAR' => __('South African Rand', 'multisite-ultimate'), - 'ZMW' => __('Zambian Kwacha', 'multisite-ultimate'), + 'AED' => __('United Arab Emirates Dirham', 'ultimate-multisite'), + 'AFN' => __('Afghan Afghani', 'ultimate-multisite'), + 'ALL' => __('Albanian Lek', 'ultimate-multisite'), + 'AMD' => __('Armenian Dram', 'ultimate-multisite'), + 'AOA' => __('Angolan Kwanza', 'ultimate-multisite'), + 'ARS' => __('Argentine Peso', 'ultimate-multisite'), + 'AUD' => __('Australian Dollar', 'ultimate-multisite'), + 'AWG' => __('Aruban Florin', 'ultimate-multisite'), + 'AZN' => __('Azerbaijani Manat', 'ultimate-multisite'), + 'BAM' => __('Bosnia & Herzegovina Convertible Mark', 'ultimate-multisite'), + 'BBD' => __('Barbadian Dollar', 'ultimate-multisite'), + 'BDT' => __('Bangladeshi Taka', 'ultimate-multisite'), + 'BGN' => __('Bulgarian Lev', 'ultimate-multisite'), + 'BIF' => __('Burundian Franc', 'ultimate-multisite'), + 'BMD' => __('Bermudian Dollar', 'ultimate-multisite'), + 'BND' => __('Brunei Dollar', 'ultimate-multisite'), + 'BOB' => __('Bolivian Boliviano', 'ultimate-multisite'), + 'BRL' => __('Brazilian Real', 'ultimate-multisite'), + 'BSD' => __('Bahamian Dollar', 'ultimate-multisite'), + 'BWP' => __('Botswana Pula', 'ultimate-multisite'), + 'BYN' => __('Belarusian Ruble', 'ultimate-multisite'), + 'BZD' => __('Belize Dollar', 'ultimate-multisite'), + 'CAD' => __('Canadian Dollar', 'ultimate-multisite'), + 'CDF' => __('Congolese Franc', 'ultimate-multisite'), + 'CHF' => __('Swiss Franc', 'ultimate-multisite'), + 'CLP' => __('Chilean Peso', 'ultimate-multisite'), + 'CNY' => __('Chinese Renminbi Yuan', 'ultimate-multisite'), + 'COP' => __('Colombian Peso', 'ultimate-multisite'), + 'CRC' => __('Costa Rican Colón', 'ultimate-multisite'), + 'CVE' => __('Cape Verdean Escudo', 'ultimate-multisite'), + 'CZK' => __('Czech Koruna', 'ultimate-multisite'), + 'DJF' => __('Djiboutian Franc', 'ultimate-multisite'), + 'DKK' => __('Danish Krone', 'ultimate-multisite'), + 'DOP' => __('Dominican Peso', 'ultimate-multisite'), + 'DZD' => __('Algerian Dinar', 'ultimate-multisite'), + 'EGP' => __('Egyptian Pound', 'ultimate-multisite'), + 'ETB' => __('Ethiopian Birr', 'ultimate-multisite'), + 'EUR' => __('Euro', 'ultimate-multisite'), + 'FJD' => __('Fijian Dollar', 'ultimate-multisite'), + 'FKP' => __('Falkland Islands Pound', 'ultimate-multisite'), + 'GBP' => __('British Pound', 'ultimate-multisite'), + 'GEL' => __('Georgian Lari', 'ultimate-multisite'), + 'GIP' => __('Gibraltar Pound', 'ultimate-multisite'), + 'GMD' => __('Gambian Dalasi', 'ultimate-multisite'), + 'GNF' => __('Guinean Franc', 'ultimate-multisite'), + 'GTQ' => __('Guatemalan Quetzal', 'ultimate-multisite'), + 'GYD' => __('Guyanese Dollar', 'ultimate-multisite'), + 'HKD' => __('Hong Kong Dollar', 'ultimate-multisite'), + 'HNL' => __('Honduran Lempira', 'ultimate-multisite'), + 'HRK' => __('Croatian Kuna', 'ultimate-multisite'), + 'HTG' => __('Haitian Gourde', 'ultimate-multisite'), + 'HUF' => __('Hungarian Forint', 'ultimate-multisite'), + 'IDR' => __('Indonesian Rupiah', 'ultimate-multisite'), + 'ILS' => __('Israeli New Sheqel', 'ultimate-multisite'), + 'INR' => __('Indian Rupee', 'ultimate-multisite'), + 'ISK' => __('Icelandic Króna', 'ultimate-multisite'), + 'JMD' => __('Jamaican Dollar', 'ultimate-multisite'), + 'JPY' => __('Japanese Yen', 'ultimate-multisite'), + 'KES' => __('Kenyan Shilling', 'ultimate-multisite'), + 'KGS' => __('Kyrgyzstani Som', 'ultimate-multisite'), + 'KHR' => __('Cambodian Riel', 'ultimate-multisite'), + 'KMF' => __('Comorian Franc', 'ultimate-multisite'), + 'KRW' => __('South Korean Won', 'ultimate-multisite'), + 'KYD' => __('Cayman Islands Dollar', 'ultimate-multisite'), + 'KZT' => __('Kazakhstani Tenge', 'ultimate-multisite'), + 'LAK' => __('Lao Kip', 'ultimate-multisite'), + 'LBP' => __('Lebanese Pound', 'ultimate-multisite'), + 'LKR' => __('Sri Lankan Rupee', 'ultimate-multisite'), + 'LRD' => __('Liberian Dollar', 'ultimate-multisite'), + 'LSL' => __('Lesotho Loti', 'ultimate-multisite'), + 'MAD' => __('Moroccan Dirham', 'ultimate-multisite'), + 'MDL' => __('Moldovan Leu', 'ultimate-multisite'), + 'MGA' => __('Malagasy Ariary', 'ultimate-multisite'), + 'MKD' => __('Macedonian Denar', 'ultimate-multisite'), + 'MMK' => __('Myanmar Kyat', 'ultimate-multisite'), + 'MNT' => __('Mongolian Tögrög', 'ultimate-multisite'), + 'MOP' => __('Macanese Pataca', 'ultimate-multisite'), + 'MRU' => __('Mauritanian Ouguiya', 'ultimate-multisite'), // MRO seems outdated, MRU modern replacements in ISO 4217. + 'MUR' => __('Mauritian Rupee', 'ultimate-multisite'), + 'MVR' => __('Maldivian Rufiyaa', 'ultimate-multisite'), + 'MWK' => __('Malawian Kwacha', 'ultimate-multisite'), + 'MXN' => __('Mexican Peso', 'ultimate-multisite'), + 'MYR' => __('Malaysian Ringgit', 'ultimate-multisite'), + 'MZN' => __('Mozambican Metical', 'ultimate-multisite'), + 'NAD' => __('Namibian Dollar', 'ultimate-multisite'), + 'NGN' => __('Nigerian Naira', 'ultimate-multisite'), + 'NIO' => __('Nicaraguan Córdoba', 'ultimate-multisite'), + 'NOK' => __('Norwegian Krone', 'ultimate-multisite'), + 'NPR' => __('Nepalese Rupee', 'ultimate-multisite'), + 'NZD' => __('New Zealand Dollar', 'ultimate-multisite'), + 'PAB' => __('Panamanian Balboa', 'ultimate-multisite'), + 'PEN' => __('Peruvian Nuevo Sol', 'ultimate-multisite'), + 'PGK' => __('Papua New Guinean Kina', 'ultimate-multisite'), + 'PHP' => __('Philippine Peso', 'ultimate-multisite'), + 'PKR' => __('Pakistani Rupee', 'ultimate-multisite'), + 'PLN' => __('Polish Złoty', 'ultimate-multisite'), + 'PYG' => __('Paraguayan Guaraní', 'ultimate-multisite'), + 'QAR' => __('Qatari Riyal', 'ultimate-multisite'), + 'RON' => __('Romanian Leu', 'ultimate-multisite'), + 'RSD' => __('Serbian Dinar', 'ultimate-multisite'), + 'RUB' => __('Russian Ruble', 'ultimate-multisite'), + 'RWF' => __('Rwandan Franc', 'ultimate-multisite'), + 'SAR' => __('Saudi Riyal', 'ultimate-multisite'), + 'SBD' => __('Solomon Islands Dollar', 'ultimate-multisite'), + 'SCR' => __('Seychellois Rupee', 'ultimate-multisite'), + 'SEK' => __('Swedish Krona', 'ultimate-multisite'), + 'SGD' => __('Singapore Dollar', 'ultimate-multisite'), + 'SHP' => __('Saint Helenian Pound', 'ultimate-multisite'), + 'SLE' => __('Sierra Leonean Leone', 'ultimate-multisite'), // SLL is outdated, SLE modern replacements in ISO 4217. + 'SOS' => __('Somali Shilling', 'ultimate-multisite'), + 'SRD' => __('Surinamese Dollar', 'ultimate-multisite'), + 'STD' => __('São Tomé and Príncipe Dobra', 'ultimate-multisite'), + 'SVC' => __('Salvadoran Colón', 'ultimate-multisite'), + 'SZL' => __('Swazi Lilangeni', 'ultimate-multisite'), + 'THB' => __('Thai Baht', 'ultimate-multisite'), + 'TJS' => __('Tajikistani Somoni', 'ultimate-multisite'), + 'TOP' => __('Tongan Paʻanga', 'ultimate-multisite'), + 'TRY' => __('Turkish Lira', 'ultimate-multisite'), + 'TTD' => __('Trinidad and Tobago Dollar', 'ultimate-multisite'), + 'TWD' => __('New Taiwan Dollar', 'ultimate-multisite'), + 'TZS' => __('Tanzanian Shilling', 'ultimate-multisite'), + 'UAH' => __('Ukrainian Hryvnia', 'ultimate-multisite'), + 'UGX' => __('Ugandan Shilling', 'ultimate-multisite'), + 'USD' => __('United States Dollar', 'ultimate-multisite'), + 'UYU' => __('Uruguayan Peso', 'ultimate-multisite'), + 'UZS' => __('Uzbekistani Som', 'ultimate-multisite'), + 'VND' => __('Vietnamese Đồng', 'ultimate-multisite'), + 'VUV' => __('Vanuatu Vatu', 'ultimate-multisite'), + 'WST' => __('Samoan Tala', 'ultimate-multisite'), + 'XAF' => __('Central African Cfa Franc', 'ultimate-multisite'), + 'XCD' => __('East Caribbean Dollar', 'ultimate-multisite'), + 'XOF' => __('West African Cfa Franc', 'ultimate-multisite'), + 'XPF' => __('Cfp Franc', 'ultimate-multisite'), + 'XCG' => __('Caribbean Guilder', 'ultimate-multisite'), + 'YER' => __('Yemeni Rial', 'ultimate-multisite'), + 'ZAR' => __('South African Rand', 'ultimate-multisite'), + 'ZMW' => __('Zambian Kwacha', 'ultimate-multisite'), ] ); diff --git a/inc/functions/customer.php b/inc/functions/customer.php index c1624ce82..769524581 100644 --- a/inc/functions/customer.php +++ b/inc/functions/customer.php @@ -160,7 +160,7 @@ function wu_create_customer($customer_data) { if (!is_email($customer_data['email'])) { return new \WP_Error( 'invalid_email', - __('The email address is invalid.', 'multisite-ultimate'), + __('The email address is invalid.', 'ultimate-multisite'), $customer_data ); } @@ -176,14 +176,14 @@ function wu_create_customer($customer_data) { } if (false === $user_id) { - return new \WP_Error('user', __('We were not able to create a new user with the provided username and email address combination.', 'multisite-ultimate'), $customer_data); + return new \WP_Error('user', __('We were not able to create a new user with the provided username and email address combination.', 'ultimate-multisite'), $customer_data); } } else { $user_id = $user->ID; } if ( ! get_userdata($user_id)) { - return new \WP_Error('user_id', __('We were not able to find a user with the given user_id.', 'multisite-ultimate'), $customer_data); + return new \WP_Error('user_id', __('We were not able to find a user with the given user_id.', 'ultimate-multisite'), $customer_data); } $customer = new Customer( diff --git a/inc/functions/date.php b/inc/functions/date.php index c4604d768..84ddc6ca8 100644 --- a/inc/functions/date.php +++ b/inc/functions/date.php @@ -112,13 +112,13 @@ function wu_filter_duration_unit($unit, $length) { switch ($unit) { case 'day': - $new_unit = $length > 1 ? __('Days', 'multisite-ultimate') : __('Day', 'multisite-ultimate'); + $new_unit = $length > 1 ? __('Days', 'ultimate-multisite') : __('Day', 'ultimate-multisite'); break; case 'month': - $new_unit = $length > 1 ? __('Months', 'multisite-ultimate') : __('Month', 'multisite-ultimate'); + $new_unit = $length > 1 ? __('Months', 'ultimate-multisite') : __('Month', 'ultimate-multisite'); break; case 'year': - $new_unit = $length > 1 ? __('Years', 'multisite-ultimate') : __('Year', 'multisite-ultimate'); + $new_unit = $length > 1 ? __('Years', 'ultimate-multisite') : __('Year', 'ultimate-multisite'); break; default: break; @@ -145,7 +145,7 @@ function wu_human_time_diff($from, $limit = '-5 days', $to = false): string { if ($timestamp_from <= $limit) { // translators: %s: date. - return sprintf(__('on %s', 'multisite-ultimate'), date_i18n(get_option('date_format'), $timestamp_from)); + return sprintf(__('on %s', 'ultimate-multisite'), date_i18n(get_option('date_format'), $timestamp_from)); } if (false === $to) { @@ -153,7 +153,7 @@ function wu_human_time_diff($from, $limit = '-5 days', $to = false): string { } // translators: %s is a relative past date. - $placeholder = wu_get_current_time('timestamp') > $timestamp_from ? __('%s ago', 'multisite-ultimate') : __('In %s', 'multisite-ultimate'); + $placeholder = wu_get_current_time('timestamp') > $timestamp_from ? __('%s ago', 'ultimate-multisite') : __('In %s', 'ultimate-multisite'); return sprintf($placeholder, human_time_diff($timestamp_from, $to)); } diff --git a/inc/functions/gateway.php b/inc/functions/gateway.php index 18376de3b..b990f7d2a 100644 --- a/inc/functions/gateway.php +++ b/inc/functions/gateway.php @@ -26,7 +26,7 @@ function wu_register_gateway($id, $title, $desc, $class_name, $hidden = false) { if ( ! did_action('wu_register_gateways')) { - _doing_it_wrong(__FUNCTION__, esc_html__('You should not register new payment gateways before the wu_register_gateways hook.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(__FUNCTION__, esc_html__('You should not register new payment gateways before the wu_register_gateways hook.', 'ultimate-multisite'), '2.0.0'); } return Gateway_Manager::get_instance()->register_gateway($id, $title, $desc, $class_name, $hidden); diff --git a/inc/functions/limitations.php b/inc/functions/limitations.php index 0a791ca4f..b1ee8f2ce 100644 --- a/inc/functions/limitations.php +++ b/inc/functions/limitations.php @@ -65,7 +65,7 @@ function wu_has_product($product_slug, $blocking = false, $site_id = '') { $site = wu_get_site($site_id); if (empty($site)) { - return new \WP_Error('site-not-found', __('Invalid site ID', 'multisite-ultimate')); + return new \WP_Error('site-not-found', __('Invalid site ID', 'ultimate-multisite')); } $membership = $site->get_membership(); @@ -104,7 +104,7 @@ function wu_is_membership_active($site_id = '') { $site = wu_get_site($site_id); if (empty($site)) { - return new \WP_Error('site-not-found', __('Invalid site ID', 'multisite-ultimate')); + return new \WP_Error('site-not-found', __('Invalid site ID', 'ultimate-multisite')); } $membership = $site->get_membership(); diff --git a/inc/functions/markup-helpers.php b/inc/functions/markup-helpers.php index 83f98b022..c4695f0be 100644 --- a/inc/functions/markup-helpers.php +++ b/inc/functions/markup-helpers.php @@ -157,7 +157,7 @@ function wu_tooltip_text($tooltip): void { function wu_preview_image($image_url, $label = false): string { if (empty($label)) { - $label = __('Preview', 'multisite-ultimate'); + $label = __('Preview', 'ultimate-multisite'); } return sprintf(' %s %s', $image_url, "", $label); diff --git a/inc/functions/membership.php b/inc/functions/membership.php index 25f394b42..20a9f19a9 100644 --- a/inc/functions/membership.php +++ b/inc/functions/membership.php @@ -374,14 +374,14 @@ function wu_get_membership_new_cart($membership) { $difference = $membership->get_amount() - $cart->get_recurring_total(); if (round(abs($difference), wu_currency_decimal_filter()) > 0) { - $type_translate = $difference < 0 ? __('credit', 'multisite-ultimate') : __('debit', 'multisite-ultimate'); + $type_translate = $difference < 0 ? __('credit', 'ultimate-multisite') : __('debit', 'ultimate-multisite'); $line_item_params = [ 'hash' => 'ADJUSTMENT', 'type' => $difference < 0 ? 'credit' : 'fee', // translators: %s is the type of adjustment (credit or debit). - 'title' => sprintf(__('Adjustment %s', 'multisite-ultimate'), $type_translate), - 'description' => __('Amount adjustment based on previous deal.', 'multisite-ultimate'), + 'title' => sprintf(__('Adjustment %s', 'ultimate-multisite'), $type_translate), + 'description' => __('Amount adjustment based on previous deal.', 'ultimate-multisite'), 'unit_price' => $difference, 'discountable' => false, 'taxable' => false, @@ -401,14 +401,14 @@ function wu_get_membership_new_cart($membership) { $y = $cart->get_total(); $difference = $membership->get_initial_amount() - $cart->get_total(); - $type_translate = $difference < 0 ? __('credit', 'multisite-ultimate') : __('debit', 'multisite-ultimate'); + $type_translate = $difference < 0 ? __('credit', 'ultimate-multisite') : __('debit', 'ultimate-multisite'); $line_item_params = [ 'hash' => 'INITADJUSTMENT', 'type' => $difference < 0 ? 'credit' : 'fee', // translators: %s is the type of adjustment (credit or debit). - 'title' => sprintf(__('Adjustment %s', 'multisite-ultimate'), $type_translate), - 'description' => __('Initial amount adjustment based on previous deal.', 'multisite-ultimate'), + 'title' => sprintf(__('Adjustment %s', 'ultimate-multisite'), $type_translate), + 'description' => __('Initial amount adjustment based on previous deal.', 'ultimate-multisite'), 'unit_price' => $difference, 'discountable' => false, 'taxable' => false, diff --git a/inc/functions/mock.php b/inc/functions/mock.php index e832a0a5e..d5cd4fd79 100644 --- a/inc/functions/mock.php +++ b/inc/functions/mock.php @@ -21,9 +21,9 @@ function wu_mock_site($seed = false) { $atts = apply_filters( 'wu_mock_site', [ - 'title' => __('Example Site', 'multisite-ultimate'), - 'description' => __('This is an example of a site description.', 'multisite-ultimate'), - 'domain' => __('examplesite.dev', 'multisite-ultimate'), + 'title' => __('Example Site', 'ultimate-multisite'), + 'description' => __('This is an example of a site description.', 'ultimate-multisite'), + 'domain' => __('examplesite.dev', 'ultimate-multisite'), 'path' => '/', ] ); @@ -66,7 +66,7 @@ function wu_mock_product() { $product = new \WP_Ultimo\Models\Product( [ - 'name' => __('Test Product', 'multisite-ultimate'), + 'name' => __('Test Product', 'ultimate-multisite'), ] ); diff --git a/inc/functions/settings.php b/inc/functions/settings.php index d396040ca..bf077c2f4 100644 --- a/inc/functions/settings.php +++ b/inc/functions/settings.php @@ -109,7 +109,7 @@ function wu_register_settings_side_panel($section_slug, $atts) { $atts = wp_parse_args( $atts, [ - 'title' => __('Side Panel', 'multisite-ultimate'), + 'title' => __('Side Panel', 'ultimate-multisite'), 'render' => '__return_false', 'show' => '__return_true', ] diff --git a/inc/functions/sunrise.php b/inc/functions/sunrise.php index 732311436..d016695a2 100644 --- a/inc/functions/sunrise.php +++ b/inc/functions/sunrise.php @@ -36,7 +36,7 @@ function wu_should_load_sunrise() { function wu_get_setting_early($setting, $default_value = false) { if (did_action('wp_ultimo_load')) { - _doing_it_wrong('wu_get_setting_early', esc_html__('Regular setting APIs are already available. You should use wu_get_setting() instead.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong('wu_get_setting_early', esc_html__('Regular setting APIs are already available. You should use wu_get_setting() instead.', 'ultimate-multisite'), '2.0.0'); } $settings_key = \WP_Ultimo\Settings::KEY; @@ -59,7 +59,7 @@ function wu_get_setting_early($setting, $default_value = false) { function wu_save_setting_early($key, $value) { if (did_action('wp_ultimo_load')) { - _doing_it_wrong('wu_save_setting_early', esc_html__('Regular setting APIs are already available. You should use wu_save_setting() instead.', 'multisite-ultimate'), '2.0.20'); + _doing_it_wrong('wu_save_setting_early', esc_html__('Regular setting APIs are already available. You should use wu_save_setting() instead.', 'ultimate-multisite'), '2.0.20'); } $settings_key = \WP_Ultimo\Settings::KEY; diff --git a/inc/functions/user.php b/inc/functions/user.php index 502f83922..1bdb7793a 100644 --- a/inc/functions/user.php +++ b/inc/functions/user.php @@ -25,7 +25,7 @@ function wu_get_roles_as_options($add_default_option = false) { $roles = []; if ($add_default_option) { - $roles['default'] = __('Use Multisite Ultimate default', 'multisite-ultimate'); + $roles['default'] = __('Use Multisite Ultimate default', 'ultimate-multisite'); } $editable_roles = get_editable_roles(); diff --git a/inc/gateways/class-base-gateway.php b/inc/gateways/class-base-gateway.php index fec4cdf21..cc31dfab1 100644 --- a/inc/gateways/class-base-gateway.php +++ b/inc/gateways/class-base-gateway.php @@ -614,18 +614,18 @@ public function process_membership_update(&$membership, $customer) { public function get_amount_update_message($to_customer = false) { if ( ! $this->supports_amount_update()) { - $message = __('The current payment integration will be cancelled.', 'multisite-ultimate'); + $message = __('The current payment integration will be cancelled.', 'ultimate-multisite'); if ($to_customer) { - $message .= ' ' . __('You will receive a new invoice on the next billing cycle.', 'multisite-ultimate'); + $message .= ' ' . __('You will receive a new invoice on the next billing cycle.', 'ultimate-multisite'); } else { - $message .= ' ' . __('The customer will receive a new invoice on the next billing cycle.', 'multisite-ultimate'); + $message .= ' ' . __('The customer will receive a new invoice on the next billing cycle.', 'ultimate-multisite'); } return $message; } - return __('The current payment integration will be updated.', 'multisite-ultimate'); + return __('The current payment integration will be updated.', 'ultimate-multisite'); } /** diff --git a/inc/gateways/class-base-stripe-gateway.php b/inc/gateways/class-base-stripe-gateway.php index 86b72525e..ba1c2418a 100644 --- a/inc/gateways/class-base-stripe-gateway.php +++ b/inc/gateways/class-base-stripe-gateway.php @@ -230,7 +230,7 @@ public function add_site_actions($actions, $atts, $site, $membership) { if ( ! empty($s_subscription_id)) { $actions['change_payment_method'] = [ - 'label' => __('Change Payment Method', 'multisite-ultimate'), + 'label' => __('Change Payment Method', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'href' => add_query_arg( [ @@ -266,7 +266,7 @@ public function maybe_redirect_to_portal(): void { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - wp_die(esc_html__('You are not allowed to modify this membership.', 'multisite-ultimate')); + wp_die(esc_html__('You are not allowed to modify this membership.', 'ultimate-multisite')); } $gateway_id = $membership->get_gateway(); @@ -343,7 +343,7 @@ public function maybe_redirect_to_portal(): void { ], ], 'business_profile' => [ - 'headline' => __('Manage your membership payment methods.', 'multisite-ultimate'), + 'headline' => __('Manage your membership payment methods.', 'ultimate-multisite'), ], ] ); @@ -376,7 +376,7 @@ public function get_public_title() { $gateway_id = wu_replace_dashes($this->id); - return wu_get_setting("{$gateway_id}_public_title", __('Credit Card', 'multisite-ultimate')); + return wu_get_setting("{$gateway_id}_public_title", __('Credit Card', 'ultimate-multisite')); } /** @@ -393,7 +393,7 @@ public function settings(): void { 'payment-gateways', "{$gateway_id}_enable_portal", [ - 'title' => __('Use Stripe Billing Portal', 'multisite-ultimate'), + 'title' => __('Use Stripe Billing Portal', 'ultimate-multisite'), 'desc' => 'Add a link to the Billing Portal in the site actions widget so your customer can change the payment method used in Stripe (additional charges from Stripe could be applied).', 'type' => 'toggle', 'default' => 0, @@ -542,7 +542,7 @@ public function check_keys_status($settings, $settings_to_save, $saved_settings) * The secret key is invalid; */ $t = "{$id}_{$stripe_mode}_sk_key_status"; - wu_save_setting("{$id}_{$stripe_mode}_sk_key_status", __('Invalid API Key provided', 'multisite-ultimate')); + wu_save_setting("{$id}_{$stripe_mode}_sk_key_status", __('Invalid API Key provided', 'ultimate-multisite')); } } @@ -566,7 +566,7 @@ public function check_keys_status($settings, $settings_to_save, $saved_settings) /** * The public key is invalid; */ - wu_save_setting("{$id}_{$stripe_mode}_pk_key_status", __('Invalid API Key provided', 'multisite-ultimate')); + wu_save_setting("{$id}_{$stripe_mode}_pk_key_status", __('Invalid API Key provided', 'ultimate-multisite')); } } } @@ -692,7 +692,7 @@ public function process_membership_update(&$membership, $customer) { $gateway_subscription_id = $membership->get_gateway_subscription_id(); if (empty($gateway_subscription_id)) { - return new \WP_Error('wu_stripe_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'multisite-ultimate')); + return new \WP_Error('wu_stripe_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'ultimate-multisite')); } $this->setup_api_keys(); @@ -776,7 +776,7 @@ public function process_membership_update(&$membership, $customer) { if (count($credits) > 1) { $credit = [ 'amount' => array_sum(wp_list_pluck($credits, 'amount')), - 'description' => __('Amount adjustment based on custom deal.', 'multisite-ultimate'), + 'description' => __('Amount adjustment based on custom deal.', 'ultimate-multisite'), ]; } else { $credit = $credits[0]; @@ -1060,7 +1060,7 @@ protected function create_recurring_payment($membership, $cart, $payment_method, $start_date = $datetime->getTimestamp() - HOUR_IN_SECONDS; // Reduce by 60 seconds to account for inaccurate server times. if (empty($payment_method)) { - throw new \Exception(esc_html__('Invalid payment method', 'multisite-ultimate')); + throw new \Exception(esc_html__('Invalid payment method', 'ultimate-multisite')); } /* @@ -1266,7 +1266,7 @@ protected function get_credit_coupon($cart) { $coupon_data = [ 'id' => sprintf('%s-%s-%s', $s_amount, $currency, 'once'), - 'name' => __('Account credit and other discounts', 'multisite-ultimate'), + 'name' => __('Account credit and other discounts', 'ultimate-multisite'), 'amount_off' => $s_amount, 'duration' => 'once', 'currency' => $currency, @@ -1735,7 +1735,7 @@ public function process_refund($amount, $payment, $membership, $customer): bool $gateway_payment_id = $payment->get_gateway_payment_id(); if (empty($gateway_payment_id)) { - throw new \Exception(esc_html__('Gateway payment ID not found. Cannot process refund automatically.', 'multisite-ultimate')); + throw new \Exception(esc_html__('Gateway payment ID not found. Cannot process refund automatically.', 'ultimate-multisite')); } /** @@ -1754,7 +1754,7 @@ public function process_refund($amount, $payment, $membership, $customer): bool $gateway_payment_id = $invoice->charge; } else { - throw new \Exception(esc_html__('Gateway payment ID not valid.', 'multisite-ultimate')); + throw new \Exception(esc_html__('Gateway payment ID not valid.', 'ultimate-multisite')); } /* @@ -1887,7 +1887,7 @@ protected function get_stripe_error($e) { $wp_error->add($error['code'], $this->get_localized_error_message($error['code'], $e->getMessage())); } else { - $wp_error->add('unknown_error', __('An unknown error has occurred.', 'multisite-ultimate')); + $wp_error->add('unknown_error', __('An unknown error has occurred.', 'ultimate-multisite')); } return $wp_error; @@ -1910,7 +1910,7 @@ protected function get_localized_error_message($error_code, $error_message = '') // TODO: Fetch a translated message from an error_code => error_message map. // translators: 1 is the error code and 2 the message. - return sprintf(__('An error has occurred (code: %1$s; message: %2$s).', 'multisite-ultimate'), $error_code, $error_message); + return sprintf(__('An error has occurred (code: %1$s; message: %2$s).', 'ultimate-multisite'), $error_code, $error_message); } /** @@ -1951,7 +1951,7 @@ public function process_webhooks() { // for extra security, retrieve from the Stripe API if ( ! isset($received_event->id)) { - throw new \Exception(esc_html__('Event ID not found.', 'multisite-ultimate')); + throw new \Exception(esc_html__('Event ID not found.', 'ultimate-multisite')); } // Set the right mode for this request @@ -2054,7 +2054,7 @@ public function process_webhooks() { if ($this->get_id() !== $membership->get_gateway()) { // translators: %s is the customer ID. - throw new Ignorable_Exception(esc_html(sprintf(__('Exiting Stripe webhook - This call must be handled by %s webhook', 'multisite-ultimate'), $membership->get_gateway()))); + throw new Ignorable_Exception(esc_html(sprintf(__('Exiting Stripe webhook - This call must be handled by %s webhook', 'ultimate-multisite'), $membership->get_gateway()))); } /* @@ -2332,7 +2332,7 @@ public function process_webhooks() { * Throws to inform that * we have a duplicate payment. */ - throw new Ignorable_Exception(esc_html__('Duplicate payment.', 'multisite-ultimate')); + throw new Ignorable_Exception(esc_html__('Duplicate payment.', 'ultimate-multisite')); } } @@ -2349,13 +2349,13 @@ public function process_webhooks() { $payment = wu_get_payment($payment_id); if (empty($payment)) { - throw new Ignorable_Exception(esc_html__('Payment not found on refund webhook call.', 'multisite-ultimate')); + throw new Ignorable_Exception(esc_html__('Payment not found on refund webhook call.', 'ultimate-multisite')); } $is_refundable = in_array($payment->get_status(), wu_get_refundable_payment_types(), true); if ( ! $is_refundable) { - throw new Ignorable_Exception(esc_html__('Payment is not refundable.', 'multisite-ultimate')); + throw new Ignorable_Exception(esc_html__('Payment is not refundable.', 'ultimate-multisite')); } /* @@ -2406,7 +2406,7 @@ public function process_webhooks() { if ($membership->is_active()) { $membership->cancel(); - $membership->add_note(['text' => __('Membership cancelled via Stripe webhook.', 'multisite-ultimate')]); + $membership->add_note(['text' => __('Membership cancelled via Stripe webhook.', 'ultimate-multisite')]); } else { wu_log_add('stripe', sprintf('Membership #%d is not active - not cancelling account.', $membership->get_id())); } @@ -2439,7 +2439,7 @@ public function get_saved_card_options() { foreach ($saved_payment_methods as $saved_payment_method) { $options[ $saved_payment_method->id ] = sprintf( // translators: 1 is the card brand (e.g. VISA), and 2 is the last 4 digits. - __('%1$s ending in %2$s', 'multisite-ultimate'), + __('%1$s ending in %2$s', 'ultimate-multisite'), strtoupper((string) $saved_payment_method->card->brand), $saved_payment_method->card->last4 ); @@ -2469,7 +2469,7 @@ public function update_card_fields(): void { // phpcs:disable ?>

- +

@@ -2615,7 +2615,7 @@ public function maybe_create_plan($args) { // Name and price are required. if (empty($args['name']) || empty($args['price'])) { - return new \WP_Error('missing_name_price', __('Missing plan name or price.', 'multisite-ultimate')); + return new \WP_Error('missing_name_price', __('Missing plan name or price.', 'ultimate-multisite')); } /* @@ -2636,7 +2636,7 @@ public function maybe_create_plan($args) { } if (empty($plan_id)) { - return new \WP_Error('empty_plan_id', __('Empty plan ID.', 'multisite-ultimate')); + return new \WP_Error('empty_plan_id', __('Empty plan ID.', 'ultimate-multisite')); } // Convert price to Stripe format. @@ -2717,7 +2717,7 @@ private function maybe_create_product($name, $id = '') { // Name are required. if (empty($name)) { - return new \WP_Error('missing_name', __('Missing product name.', 'multisite-ultimate')); + return new \WP_Error('missing_name', __('Missing product name.', 'ultimate-multisite')); } if (empty($id)) { @@ -2729,7 +2729,7 @@ private function maybe_create_product($name, $id = '') { } if (empty($product_id)) { - return new \WP_Error('empty_product_id', __('Empty product ID.', 'multisite-ultimate')); + return new \WP_Error('empty_product_id', __('Empty product ID.', 'ultimate-multisite')); } // First check to see if a product exists with this ID. If so, return that. diff --git a/inc/gateways/class-manual-gateway.php b/inc/gateways/class-manual-gateway.php index 94d42ee67..f6cd63992 100644 --- a/inc/gateways/class-manual-gateway.php +++ b/inc/gateways/class-manual-gateway.php @@ -87,8 +87,8 @@ public function settings(): void { 'payment-gateways', 'manual_header', [ - 'title' => __('Manual', 'multisite-ultimate'), - 'desc' => __('Use the settings section below to configure the manual payment method. This method allows your customers to manually pay for their memberships, but those payments require manual confirmation on your part.', 'multisite-ultimate'), + 'title' => __('Manual', 'ultimate-multisite'), + 'desc' => __('Use the settings section below to configure the manual payment method. This method allows your customers to manually pay for their memberships, but those payments require manual confirmation on your part.', 'ultimate-multisite'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -101,11 +101,11 @@ public function settings(): void { 'payment-gateways', 'manual_payment_instructions', [ - 'title' => __('Payment Instructions', 'multisite-ultimate'), - 'desc' => __('This instructions will be shown to the customer on the thank you page, as well as be sent via email.', 'multisite-ultimate'), + 'title' => __('Payment Instructions', 'ultimate-multisite'), + 'desc' => __('This instructions will be shown to the customer on the thank you page, as well as be sent via email.', 'ultimate-multisite'), 'type' => 'wp_editor', 'allow_html' => true, - 'default' => __('Payment instructions here.', 'multisite-ultimate'), + 'default' => __('Payment instructions here.', 'ultimate-multisite'), 'require' => [ 'active_gateways' => 'manual', ], @@ -141,9 +141,9 @@ public function process_membership_update(&$membership, $customer) { public function get_amount_update_message($to_customer = false) { if ($to_customer) { - $message = __('You will receive a updated invoice on the next billing cycle.', 'multisite-ultimate'); + $message = __('You will receive a updated invoice on the next billing cycle.', 'ultimate-multisite'); } else { - $message = __('The customer will receive a updated invoice on the next billing cycle.', 'multisite-ultimate'); + $message = __('The customer will receive a updated invoice on the next billing cycle.', 'ultimate-multisite'); } return $message; @@ -355,7 +355,7 @@ public function process_refund($amount, $payment, $membership, $customer): void */ public function fields() { - $message = __('After you finish signing up, we will send you an email with instructions to finalize the payment. Your account will be pending until the payment is finalized and confirmed.', 'multisite-ultimate'); + $message = __('After you finish signing up, we will send you an email with instructions to finalize the payment. Your account will be pending until the payment is finalized and confirmed.', 'ultimate-multisite'); return sprintf('

%s

', $message); } @@ -388,7 +388,7 @@ public function add_payment_instructions_block($payment, $membership, $customer)

- +

diff --git a/inc/gateways/class-paypal-gateway.php b/inc/gateways/class-paypal-gateway.php index 7fbe1cbb8..3953ab018 100644 --- a/inc/gateways/class-paypal-gateway.php +++ b/inc/gateways/class-paypal-gateway.php @@ -190,8 +190,8 @@ public function settings(): void { 'payment-gateways', 'paypal_header', [ - 'title' => __('PayPal', 'multisite-ultimate'), - 'desc' => __('Use the settings section below to configure PayPal Express as a payment method.', 'multisite-ultimate'), + 'title' => __('PayPal', 'ultimate-multisite'), + 'desc' => __('Use the settings section below to configure PayPal Express as a payment method.', 'ultimate-multisite'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -204,8 +204,8 @@ public function settings(): void { 'payment-gateways', 'paypal_sandbox_mode', [ - 'title' => __('PayPal Sandbox Mode', 'multisite-ultimate'), - 'desc' => __('Toggle this to put PayPal on sandbox mode. This is useful for testing and making sure PayPal is correctly setup to handle your payments.', 'multisite-ultimate'), + 'title' => __('PayPal Sandbox Mode', 'ultimate-multisite'), + 'desc' => __('Toggle this to put PayPal on sandbox mode. This is useful for testing and making sure PayPal is correctly setup to handle your payments.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'html_attr' => [ @@ -221,10 +221,10 @@ public function settings(): void { 'payment-gateways', 'paypal_test_username', [ - 'title' => __('PayPal Test Username', 'multisite-ultimate'), + 'title' => __('PayPal Test Username', 'ultimate-multisite'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the TEST username, not the live one.', 'multisite-ultimate'), - 'placeholder' => __('e.g. username_api1.username.co', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the TEST username, not the live one.', 'ultimate-multisite'), + 'placeholder' => __('e.g. username_api1.username.co', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -239,10 +239,10 @@ public function settings(): void { 'payment-gateways', 'paypal_test_password', [ - 'title' => __('PayPal Test Password', 'multisite-ultimate'), + 'title' => __('PayPal Test Password', 'ultimate-multisite'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the TEST password, not the live one.', 'multisite-ultimate'), - 'placeholder' => __('e.g. IUOSABK987HJG88N', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the TEST password, not the live one.', 'ultimate-multisite'), + 'placeholder' => __('e.g. IUOSABK987HJG88N', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -257,10 +257,10 @@ public function settings(): void { 'payment-gateways', 'paypal_test_signature', [ - 'title' => __('PayPal Test Signature', 'multisite-ultimate'), + 'title' => __('PayPal Test Signature', 'ultimate-multisite'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the TEST signature, not the live one.', 'multisite-ultimate'), - 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the TEST signature, not the live one.', 'ultimate-multisite'), + 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -275,10 +275,10 @@ public function settings(): void { 'payment-gateways', 'paypal_live_username', [ - 'title' => __('PayPal Live Username', 'multisite-ultimate'), + 'title' => __('PayPal Live Username', 'ultimate-multisite'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the LIVE username, not the test one.', 'multisite-ultimate'), - 'placeholder' => __('e.g. username_api1.username.co', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the LIVE username, not the test one.', 'ultimate-multisite'), + 'placeholder' => __('e.g. username_api1.username.co', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -293,10 +293,10 @@ public function settings(): void { 'payment-gateways', 'paypal_live_password', [ - 'title' => __('PayPal Live Password', 'multisite-ultimate'), + 'title' => __('PayPal Live Password', 'ultimate-multisite'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the LIVE password, not the test one.', 'multisite-ultimate'), - 'placeholder' => __('e.g. IUOSABK987HJG88N', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the LIVE password, not the test one.', 'ultimate-multisite'), + 'placeholder' => __('e.g. IUOSABK987HJG88N', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -311,10 +311,10 @@ public function settings(): void { 'payment-gateways', 'paypal_live_signature', [ - 'title' => __('PayPal Live Signature', 'multisite-ultimate'), + 'title' => __('PayPal Live Signature', 'ultimate-multisite'), 'desc' => '', - 'tooltip' => __('Make sure you are placing the LIVE signature, not the test one.', 'multisite-ultimate'), - 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the LIVE signature, not the test one.', 'ultimate-multisite'), + 'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -342,7 +342,7 @@ public function process_membership_update(&$membership, $customer) { $gateway_subscription_id = $membership->get_gateway_subscription_id(); if (empty($gateway_subscription_id)) { - return new \WP_Error('wu_paypal_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'multisite-ultimate')); + return new \WP_Error('wu_paypal_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'ultimate-multisite')); } $original = $membership->_get_original(); @@ -350,7 +350,7 @@ public function process_membership_update(&$membership, $customer) { $has_duration_change = $membership->get_duration() !== absint(wu_get_isset($original, 'duration')) || $membership->get_duration_unit() !== wu_get_isset($original, 'duration_unit'); if ($has_duration_change) { - return new \WP_Error('wu_paypal_no_duration_change', __('Error: PayPal does not support changing the duration of a subscription.', 'multisite-ultimate')); + return new \WP_Error('wu_paypal_no_duration_change', __('Error: PayPal does not support changing the duration of a subscription.', 'ultimate-multisite')); } /** @@ -368,7 +368,7 @@ public function process_membership_update(&$membership, $customer) { 'VERSION' => '124', 'METHOD' => 'UpdateRecurringPaymentsProfile', 'PROFILEID' => $gateway_subscription_id, - 'NOTE' => __('Membership update', 'multisite-ultimate'), + 'NOTE' => __('Membership update', 'ultimate-multisite'), 'DESC' => $description, 'AMT' => $temp_payment->get_total() - $temp_payment->get_tax_total(), 'TAXAMT' => $temp_payment->get_tax_total(), @@ -400,7 +400,7 @@ public function process_membership_update(&$membership, $customer) { } if ('failure' === strtolower((string) $body['ACK'])) { - return new \WP_Error($body['L_ERRORCODE0'], __('PayPal Error:', 'multisite-ultimate') . ' ' . $body['L_LONGMESSAGE0']); + return new \WP_Error($body['L_ERRORCODE0'], __('PayPal Error:', 'ultimate-multisite') . ' ' . $body['L_LONGMESSAGE0']); } return true; @@ -505,7 +505,7 @@ public function process_checkout($payment, $membership, $customer, $cart, $type) $date = wp_date(get_option('date_format'), strtotime($membership->get_date_trial_end(), wu_get_current_time('timestamp', true))); // translators: %1$s is the date it will end - $notes[] = sprintf(__('Your trial period will end on %1$s.', 'multisite-ultimate'), $date); + $notes[] = sprintf(__('Your trial period will end on %1$s.', 'ultimate-multisite'), $date); } if ($is_recurring && $should_auto_renew) { @@ -524,25 +524,25 @@ public function process_checkout($payment, $membership, $customer, $cart, $type) if ('downgrade' === $type) { if ($is_trial_setup) { // translators: $1$s the date membership will start, $2$s amount to be billed. - $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s every month.', 'multisite-ultimate'), $date, $recurring_total_format); + $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s every month.', 'ultimate-multisite'), $date, $recurring_total_format); } else { $date_renew = wp_date(get_option('date_format'), strtotime($membership->get_date_expiration(), wu_get_current_time('timestamp', true))); // translators: $1$s the date membership will start, $2$s amount to be billed, %3$s the description of how often. - $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'multisite-ultimate'), $date_renew, $recurring_total_format, $desc); + $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'ultimate-multisite'), $date_renew, $recurring_total_format, $desc); } } elseif ($is_trial_setup) { // translators: $1$s amount to be billed, $2$s how often - $notes[] = sprintf(__('After the first payment you will be billed %1$s %2$s.', 'multisite-ultimate'), $recurring_total_format, $desc); + $notes[] = sprintf(__('After the first payment you will be billed %1$s %2$s.', 'ultimate-multisite'), $recurring_total_format, $desc); } else { // translators: $1$s amount to be billed, $2$s how often - $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'multisite-ultimate'), $recurring_total_format, $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'ultimate-multisite'), $recurring_total_format, $desc); } } elseif ($is_trial_setup) { // translators: $1$s amount to be billed, $2$s how often - $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'multisite-ultimate'), $recurring_total_format, $desc); + $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'ultimate-multisite'), $recurring_total_format, $desc); } else { // translators: $1$s how often - $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'multisite-ultimate'), $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'ultimate-multisite'), $desc); } } @@ -582,12 +582,12 @@ public function process_checkout($payment, $membership, $customer, $cart, $type) $discounts_total = $cart->get_total_discounts(); if ( ! empty($discounts_total)) { - __('Account credit and other discounts', 'multisite-ultimate'); + __('Account credit and other discounts', 'ultimate-multisite'); $args = array_merge( $args, [ - "L_PAYMENTREQUEST_0_NAME{$product_index}" => __('Account credit and other discounts', 'multisite-ultimate'), + "L_PAYMENTREQUEST_0_NAME{$product_index}" => __('Account credit and other discounts', 'ultimate-multisite'), "L_PAYMENTREQUEST_0_AMT{$product_index}" => $discounts_total, "L_PAYMENTREQUEST_0_QTY{$product_index}" => 1, ] @@ -658,7 +658,7 @@ public function process_checkout($payment, $membership, $customer, $cart, $type) /* * If we get here, something went wrong. */ - throw new \Exception(esc_html__('Something has gone wrong, please try again', 'multisite-ultimate')); + throw new \Exception(esc_html__('Something has gone wrong, please try again', 'ultimate-multisite')); } /** @@ -718,7 +718,7 @@ public function process_refund($amount, $payment, $membership, $customer) { $gateway_payment_id = $payment->get_gateway_payment_id(); if (empty($gateway_payment_id)) { - throw new \Exception(esc_html__('Gateway payment ID not found. Cannot process refund automatically.', 'multisite-ultimate')); + throw new \Exception(esc_html__('Gateway payment ID not found. Cannot process refund automatically.', 'ultimate-multisite')); } $refund_type = 'Partial'; @@ -780,7 +780,7 @@ public function process_refund($amount, $payment, $membership, $customer) { return true; } - throw new \Exception(esc_html__('Something went wrong.', 'multisite-ultimate')); + throw new \Exception(esc_html__('Something went wrong.', 'ultimate-multisite')); } /** @@ -795,7 +795,7 @@ public function process_refund($amount, $payment, $membership, $customer) { */ public function fields() { - $message = __('You will be redirected to PayPal to complete the purchase.', 'multisite-ultimate'); + $message = __('You will be redirected to PayPal to complete the purchase.', 'ultimate-multisite'); return sprintf('

%s

', $message); } @@ -831,7 +831,7 @@ public function process_confirmation(): void { $details = $this->get_checkout_details(wu_request('token')); if (empty($details)) { - wp_die(esc_html__('PayPal token no longer valid.', 'multisite-ultimate')); + wp_die(esc_html__('PayPal token no longer valid.', 'ultimate-multisite')); } /* @@ -845,7 +845,7 @@ public function process_confirmation(): void { * Bail. */ if (empty($payment)) { - wp_die(esc_html__('Pending payment does not exist.', 'multisite-ultimate')); + wp_die(esc_html__('Pending payment does not exist.', 'ultimate-multisite')); } /* @@ -857,7 +857,7 @@ public function process_confirmation(): void { $original_cart = $payment->get_meta('wu_original_cart'); if (empty($original_cart)) { - wp_die(esc_html__('Original cart does not exist.', 'multisite-ultimate')); + wp_die(esc_html__('Original cart does not exist.', 'ultimate-multisite')); } /* @@ -869,7 +869,7 @@ public function process_confirmation(): void { $is_recurring = $original_cart->has_recurring(); if (empty($membership) || empty($customer)) { - $error = new \WP_Error('no-membership', esc_html__('Missing membership or customer data.', 'multisite-ultimate')); + $error = new \WP_Error('no-membership', esc_html__('Missing membership or customer data.', 'ultimate-multisite')); wp_die($error); // phpcs:ignore WordPress.Security.EscapeOutput } @@ -957,7 +957,7 @@ public function process_webhooks(): bool { } if (empty($membership)) { - throw new \Exception(esc_html__('Exiting PayPal Express IPN - membership ID not found.', 'multisite-ultimate')); + throw new \Exception(esc_html__('Exiting PayPal Express IPN - membership ID not found.', 'ultimate-multisite')); } wu_log_add('paypal', sprintf('Processing IPN for membership #%d.', $membership->get_id())); @@ -1076,15 +1076,15 @@ public function process_webhooks(): bool { // Recurring payment failed. // translators: %s: Transaction ID - $membership->add_note(['text' => sprintf(__('Transaction ID %s failed in PayPal.', 'multisite-ultimate'), $posted['txn_id'])]); + $membership->add_note(['text' => sprintf(__('Transaction ID %s failed in PayPal.', 'ultimate-multisite'), $posted['txn_id'])]); die('Subscription payment failed'); } elseif ('pending' === strtolower((string) $posted['payment_status'])) { // Recurring payment pending (such as echeck). - $pending_reason = ! empty($posted['pending_reason']) ? $posted['pending_reason'] : __('unknown', 'multisite-ultimate'); + $pending_reason = ! empty($posted['pending_reason']) ? $posted['pending_reason'] : __('unknown', 'ultimate-multisite'); // translators: %1$s: Transaction ID, %2$s: Pending reason - $membership->add_note(['text' => sprintf(__('Transaction ID %1$s is pending in PayPal for reason: %2$s', 'multisite-ultimate'), $posted['txn_id'], $pending_reason)]); + $membership->add_note(['text' => sprintf(__('Transaction ID %1$s is pending in PayPal for reason: %2$s', 'ultimate-multisite'), $posted['txn_id'], $pending_reason)]); die('Subscription payment pending'); } @@ -1128,9 +1128,9 @@ public function process_webhooks(): bool { // Initial payment failed, so set the user back to pending. $membership->set_status('pending'); - $membership->add_note(['text' => __('Initial payment failed in PayPal Express.', 'multisite-ultimate')]); + $membership->add_note(['text' => __('Initial payment failed in PayPal Express.', 'ultimate-multisite')]); - $this->error_message = __('Initial payment failed.', 'multisite-ultimate'); + $this->error_message = __('Initial payment failed.', 'ultimate-multisite'); } else { // If this is a completed payment plan, we can skip any cancellation actions. This is handled in renewals. @@ -1143,7 +1143,7 @@ public function process_webhooks(): bool { // user is marked as cancelled but retains access until end of term $membership->cancel(); - $membership->add_note(['text' => __('Membership cancelled via PayPal Express IPN.', 'multisite-ultimate')]); + $membership->add_note(['text' => __('Membership cancelled via PayPal Express IPN.', 'ultimate-multisite')]); } break; @@ -1386,8 +1386,8 @@ protected function create_recurring_profile($details, $cart, $payment, $membersh } } else { wp_die( - esc_html__('Something has gone wrong, please try again', 'multisite-ultimate'), - esc_html__('Error', 'multisite-ultimate'), + esc_html__('Something has gone wrong, please try again', 'ultimate-multisite'), + esc_html__('Error', 'ultimate-multisite'), [ 'back_link' => true, 'response' => '401', @@ -1539,8 +1539,8 @@ protected function complete_single_payment($details, $cart, $payment, $membershi } } else { wp_die( - esc_html__('Something has gone wrong, please try again', 'multisite-ultimate'), - esc_html__('Error', 'multisite-ultimate'), + esc_html__('Something has gone wrong, please try again', 'ultimate-multisite'), + esc_html__('Error', 'ultimate-multisite'), [ 'back_link' => true, 'response' => '401', @@ -1562,10 +1562,10 @@ public function confirmation_form() { $checkout_details = $this->get_checkout_details($token); if ( ! is_array($checkout_details)) { - $error = is_wp_error($checkout_details) ? $checkout_details->get_error_message() : __('Invalid response code from PayPal', 'multisite-ultimate'); + $error = is_wp_error($checkout_details) ? $checkout_details->get_error_message() : __('Invalid response code from PayPal', 'ultimate-multisite'); // translators: %s is the paypal error message. - return '

' . sprintf(__('An unexpected PayPal error occurred. Error message: %s.', 'multisite-ultimate'), $error) . '

'; + return '

' . sprintf(__('An unexpected PayPal error occurred. Error message: %s.', 'ultimate-multisite'), $error) . '

'; } /* diff --git a/inc/gateways/class-stripe-checkout-gateway.php b/inc/gateways/class-stripe-checkout-gateway.php index 839b815bd..e5912546e 100644 --- a/inc/gateways/class-stripe-checkout-gateway.php +++ b/inc/gateways/class-stripe-checkout-gateway.php @@ -47,8 +47,8 @@ public function settings(): void { 'payment-gateways', 'stripe_checkout_header', [ - 'title' => __('Stripe Checkout', 'multisite-ultimate'), - 'desc' => __('Use the settings section below to configure Stripe Checkout as a payment method.', 'multisite-ultimate'), + 'title' => __('Stripe Checkout', 'ultimate-multisite'), + 'desc' => __('Use the settings section below to configure Stripe Checkout as a payment method.', 'ultimate-multisite'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -61,10 +61,10 @@ public function settings(): void { 'payment-gateways', 'stripe_checkout_public_title', [ - 'title' => __('Stripe Public Name', 'multisite-ultimate'), - 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'multisite-ultimate'), + 'title' => __('Stripe Public Name', 'ultimate-multisite'), + 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'ultimate-multisite'), 'type' => 'text', - 'default' => __('Credit Card', 'multisite-ultimate'), + 'default' => __('Credit Card', 'ultimate-multisite'), 'require' => [ 'active_gateways' => 'stripe-checkout', ], @@ -75,8 +75,8 @@ public function settings(): void { 'payment-gateways', 'stripe_checkout_sandbox_mode', [ - 'title' => __('Stripe Checkout Sandbox Mode', 'multisite-ultimate'), - 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'multisite-ultimate'), + 'title' => __('Stripe Checkout Sandbox Mode', 'ultimate-multisite'), + 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, 'html_attr' => [ @@ -94,10 +94,10 @@ public function settings(): void { 'payment-gateways', 'stripe_checkout_test_pk_key', [ - 'title' => __('Stripe Test Publishable Key', 'multisite-ultimate'), + 'title' => __('Stripe Test Publishable Key', 'ultimate-multisite'), 'desc' => ! empty($pk_test_status) ? sprintf($error_message_wrap, $pk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'multisite-ultimate'), - 'placeholder' => __('pk_test_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'ultimate-multisite'), + 'placeholder' => __('pk_test_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -114,10 +114,10 @@ public function settings(): void { 'payment-gateways', 'stripe_checkout_test_sk_key', [ - 'title' => __('Stripe Test Secret Key', 'multisite-ultimate'), + 'title' => __('Stripe Test Secret Key', 'ultimate-multisite'), 'desc' => ! empty($sk_test_status) ? sprintf($error_message_wrap, $sk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'multisite-ultimate'), - 'placeholder' => __('sk_test_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'ultimate-multisite'), + 'placeholder' => __('sk_test_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -134,10 +134,10 @@ public function settings(): void { 'payment-gateways', 'stripe_checkout_live_pk_key', [ - 'title' => __('Stripe Live Publishable Key', 'multisite-ultimate'), + 'title' => __('Stripe Live Publishable Key', 'ultimate-multisite'), 'desc' => ! empty($pk_status) ? sprintf($error_message_wrap, $pk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'multisite-ultimate'), - 'placeholder' => __('pk_live_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'ultimate-multisite'), + 'placeholder' => __('pk_live_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -154,10 +154,10 @@ public function settings(): void { 'payment-gateways', 'stripe_checkout_live_sk_key', [ - 'title' => __('Stripe Live Secret Key', 'multisite-ultimate'), + 'title' => __('Stripe Live Secret Key', 'ultimate-multisite'), 'desc' => ! empty($sk_status) ? sprintf($error_message_wrap, $sk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'multisite-ultimate'), - 'placeholder' => __('sk_live_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'ultimate-multisite'), + 'placeholder' => __('sk_live_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -168,15 +168,15 @@ public function settings(): void { ] ); - $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, Multisite Ultimate will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'multisite-ultimate')); + $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, Multisite Ultimate will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'ultimate-multisite')); wu_register_settings_field( 'payment-gateways', 'stripe_checkout_webhook_listener_explanation', [ - 'title' => __('Webhook Listener URL', 'multisite-ultimate'), + 'title' => __('Webhook Listener URL', 'ultimate-multisite'), 'desc' => $webhook_message, - 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'multisite-ultimate'), + 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'ultimate-multisite'), 'type' => 'text-display', 'copy' => true, 'default' => $this->get_webhook_listener_url(), @@ -397,7 +397,7 @@ public function process_confirmation(): void { */ public function fields(): string { - $message = __('You will be redirected to a checkout to complete the purchase.', 'multisite-ultimate'); + $message = __('You will be redirected to a checkout to complete the purchase.', 'ultimate-multisite'); return sprintf('

%s

', $message); } @@ -419,7 +419,7 @@ public function payment_methods() { $fields = [ "payment_method_{$payment_method}" => [ 'type' => 'text-display', - 'title' => __('Saved Cards', 'multisite-ultimate'), + 'title' => __('Saved Cards', 'ultimate-multisite'), 'display_value' => $card, ], ]; diff --git a/inc/gateways/class-stripe-gateway.php b/inc/gateways/class-stripe-gateway.php index 8d384674e..f892d46b6 100644 --- a/inc/gateways/class-stripe-gateway.php +++ b/inc/gateways/class-stripe-gateway.php @@ -74,8 +74,8 @@ public function settings(): void { 'payment-gateways', 'stripe_header', [ - 'title' => __('Stripe', 'multisite-ultimate'), - 'desc' => __('Use the settings section below to configure Stripe as a payment method.', 'multisite-ultimate'), + 'title' => __('Stripe', 'ultimate-multisite'), + 'desc' => __('Use the settings section below to configure Stripe as a payment method.', 'ultimate-multisite'), 'type' => 'header', 'show_as_submenu' => true, 'require' => [ @@ -88,10 +88,10 @@ public function settings(): void { 'payment-gateways', 'stripe_public_title', [ - 'title' => __('Stripe Public Name', 'multisite-ultimate'), - 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'multisite-ultimate'), + 'title' => __('Stripe Public Name', 'ultimate-multisite'), + 'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'ultimate-multisite'), 'type' => 'text', - 'default' => __('Credit Card', 'multisite-ultimate'), + 'default' => __('Credit Card', 'ultimate-multisite'), 'require' => [ 'active_gateways' => 'stripe', ], @@ -102,8 +102,8 @@ public function settings(): void { 'payment-gateways', 'stripe_sandbox_mode', [ - 'title' => __('Stripe Sandbox Mode', 'multisite-ultimate'), - 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'multisite-ultimate'), + 'title' => __('Stripe Sandbox Mode', 'ultimate-multisite'), + 'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, 'html_attr' => [ @@ -121,10 +121,10 @@ public function settings(): void { 'payment-gateways', 'stripe_test_pk_key', [ - 'title' => __('Stripe Test Publishable Key', 'multisite-ultimate'), + 'title' => __('Stripe Test Publishable Key', 'ultimate-multisite'), 'desc' => ! empty($pk_test_status) ? sprintf($error_message_wrap, $pk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'multisite-ultimate'), - 'placeholder' => __('pk_test_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'ultimate-multisite'), + 'placeholder' => __('pk_test_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -141,10 +141,10 @@ public function settings(): void { 'payment-gateways', 'stripe_test_sk_key', [ - 'title' => __('Stripe Test Secret Key', 'multisite-ultimate'), + 'title' => __('Stripe Test Secret Key', 'ultimate-multisite'), 'desc' => ! empty($sk_test_status) ? sprintf($error_message_wrap, $sk_test_status) : '', - 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'multisite-ultimate'), - 'placeholder' => __('sk_test_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'ultimate-multisite'), + 'placeholder' => __('sk_test_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -161,10 +161,10 @@ public function settings(): void { 'payment-gateways', 'stripe_live_pk_key', [ - 'title' => __('Stripe Live Publishable Key', 'multisite-ultimate'), + 'title' => __('Stripe Live Publishable Key', 'ultimate-multisite'), 'desc' => ! empty($pk_status) ? sprintf($error_message_wrap, $pk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'multisite-ultimate'), - 'placeholder' => __('pk_live_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'ultimate-multisite'), + 'placeholder' => __('pk_live_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -181,10 +181,10 @@ public function settings(): void { 'payment-gateways', 'stripe_live_sk_key', [ - 'title' => __('Stripe Live Secret Key', 'multisite-ultimate'), + 'title' => __('Stripe Live Secret Key', 'ultimate-multisite'), 'desc' => ! empty($sk_status) ? sprintf($error_message_wrap, $sk_status) : '', - 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'multisite-ultimate'), - 'placeholder' => __('sk_live_***********', 'multisite-ultimate'), + 'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'ultimate-multisite'), + 'placeholder' => __('sk_live_***********', 'ultimate-multisite'), 'type' => 'text', 'default' => '', 'capability' => 'manage_api_keys', @@ -195,15 +195,15 @@ public function settings(): void { ] ); - $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, Multisite Ultimate will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'multisite-ultimate')); + $webhook_message = sprintf('%s', __('Whenever you change your Stripe settings, Multisite Ultimate will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'ultimate-multisite')); wu_register_settings_field( 'payment-gateways', 'stripe_webhook_listener_explanation', [ - 'title' => __('Webhook Listener URL', 'multisite-ultimate'), + 'title' => __('Webhook Listener URL', 'ultimate-multisite'), 'desc' => $webhook_message, - 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'multisite-ultimate'), + 'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'ultimate-multisite'), 'type' => 'text-display', 'copy' => true, 'default' => $this->get_webhook_listener_url(), @@ -258,7 +258,7 @@ public function run_preflight() { if (is_wp_error($s_customer)) { // translators: %s is the error message. - return new \WP_Error($s_customer->get_error_code(), sprintf(__('Error creating Stripe customer: %s', 'multisite-ultimate'), $s_customer->get_error_message())); + return new \WP_Error($s_customer->get_error_code(), sprintf(__('Error creating Stripe customer: %s', 'ultimate-multisite'), $s_customer->get_error_message())); } $this->membership->set_gateway_customer_id($s_customer->id); @@ -512,7 +512,7 @@ public function process_checkout($payment, $membership, $customer, $cart, $type) $payment_intent_id = $payment->get_meta('stripe_payment_intent_id'); if (empty($payment_intent_id)) { - throw new \Exception(esc_html__('Missing Stripe payment intent, please try again or contact support if the issue persists.', 'multisite-ultimate')); + throw new \Exception(esc_html__('Missing Stripe payment intent, please try again or contact support if the issue persists.', 'ultimate-multisite')); } /** @@ -547,7 +547,7 @@ public function process_checkout($payment, $membership, $customer, $cart, $type) $s_customer = $this->get_or_create_customer($customer->get_id(), $customer->get_user_id(), $payment_intent->customer); // translators: first is the customer id, then the customer email. - $description = sprintf(__('Customer ID: %1$d - User Email: %2$s', 'multisite-ultimate'), $customer->get_id(), $customer->get_email_address()); + $description = sprintf(__('Customer ID: %1$d - User Email: %2$s', 'ultimate-multisite'), $customer->get_id(), $customer->get_email_address()); if (strlen($description) > 350) { $description = substr($description, 0, 350); @@ -648,12 +648,12 @@ public function fields(): string { $card_options = $this->get_saved_card_options(); if ($card_options) { - $card_options['add-new'] = __('Add new card', 'multisite-ultimate'); + $card_options['add-new'] = __('Add new card', 'ultimate-multisite'); $fields = [ 'payment_method' => [ 'type' => 'radio', - 'title' => __('Saved Payment Methods', 'multisite-ultimate'), + 'title' => __('Saved Payment Methods', 'ultimate-multisite'), 'value' => wu_request('payment_method'), 'options' => $card_options, 'html_attr' => [ @@ -718,7 +718,7 @@ public function payment_methods() { $fields = [ "payment_method_{$payment_method}" => [ 'type' => 'text-display', - 'title' => __('Saved Cards', 'multisite-ultimate'), + 'title' => __('Saved Cards', 'ultimate-multisite'), 'display_value' => $card, ], ]; diff --git a/inc/helpers/class-screenshot.php b/inc/helpers/class-screenshot.php index ab6e6c9c4..7156721fb 100644 --- a/inc/helpers/class-screenshot.php +++ b/inc/helpers/class-screenshot.php @@ -58,7 +58,7 @@ public static function take_screenshot($url) { public static function save_image_from_url($url) { // translators: %s is the API URL. - $log_prefix = sprintf(__('Downloading image from "%s":', 'multisite-ultimate'), $url) . ' '; + $log_prefix = sprintf(__('Downloading image from "%s":', 'ultimate-multisite'), $url) . ' '; $response = wp_remote_get( $url, @@ -83,7 +83,7 @@ public static function save_image_from_url($url) { * Check if the results contain a PNG header. */ if (! str_starts_with($response['body'], "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a")) { - wu_log_add('screenshot-generator', $log_prefix . __('Result is not a PNG file.', 'multisite-ultimate'), LogLevel::ERROR); + wu_log_add('screenshot-generator', $log_prefix . __('Result is not a PNG file.', 'ultimate-multisite'), LogLevel::ERROR); return false; } @@ -122,7 +122,7 @@ public static function save_image_from_url($url) { // Assign metadata to attachment wp_update_attachment_metadata($attach_id, $attach_data); - wu_log_add('screenshot-generator', $log_prefix . __('Success!', 'multisite-ultimate')); + wu_log_add('screenshot-generator', $log_prefix . __('Success!', 'ultimate-multisite')); return $attach_id; } diff --git a/inc/helpers/class-site-duplicator.php b/inc/helpers/class-site-duplicator.php index 836c10249..e9f9ceb28 100644 --- a/inc/helpers/class-site-duplicator.php +++ b/inc/helpers/class-site-duplicator.php @@ -21,10 +21,10 @@ } if ( ! defined('MUCD_NETWORK_PAGE_DUPLICATE_COPY_FILE_ERROR')) { // translators: %s the file path that failed. - define('MUCD_NETWORK_PAGE_DUPLICATE_COPY_FILE_ERROR', __('Failed to copy files : check permissions on %s', 'multisite-ultimate')); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound + define('MUCD_NETWORK_PAGE_DUPLICATE_COPY_FILE_ERROR', __('Failed to copy files : check permissions on %s', 'ultimate-multisite')); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound } if ( ! defined('MUCD_NETWORK_PAGE_DUPLICATE_VIEW_LOG')) { - define('MUCD_NETWORK_PAGE_DUPLICATE_VIEW_LOG', __('View log', 'multisite-ultimate')); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound + define('MUCD_NETWORK_PAGE_DUPLICATE_VIEW_LOG', __('View log', 'ultimate-multisite')); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound } if ( ! defined('MUCD_MAX_NUMBER_OF_SITE')) { define('MUCD_MAX_NUMBER_OF_SITE', 5000); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound @@ -66,7 +66,7 @@ public static function duplicate_site($from_site_id, $title, $args = []) { if (is_wp_error($duplicate_site)) { // translators: %s id the template site id and %s is the error message returned. - $message = sprintf(__('Attempt to duplicate site %1$d failed: %2$s', 'multisite-ultimate'), $from_site_id, $duplicate_site->get_error_message()); + $message = sprintf(__('Attempt to duplicate site %1$d failed: %2$s', 'ultimate-multisite'), $from_site_id, $duplicate_site->get_error_message()); wu_log_add('site-duplication', $message, LogLevel::ERROR); @@ -74,7 +74,7 @@ public static function duplicate_site($from_site_id, $title, $args = []) { } // translators: %1$d is the ID of the site template used, and %2$d is the id of the new site. - $message = sprintf(__('Attempt to duplicate site %1$d successful - New site id: %2$d', 'multisite-ultimate'), $from_site_id, $duplicate_site); + $message = sprintf(__('Attempt to duplicate site %1$d successful - New site id: %2$d', 'ultimate-multisite'), $from_site_id, $duplicate_site); wu_log_add('site-duplication', $message); @@ -118,7 +118,7 @@ public static function override_site($from_site_id, $to_site_id, $args = []) { if (is_wp_error($duplicate_site_id)) { // translators: %s id the template site id and %s is the error message returned. - $message = sprintf(__('Attempt to override site %1$d with data from site %2$d failed: %3$s', 'multisite-ultimate'), $from_site_id, $to_site_id, $duplicate_site_id->get_error_message()); + $message = sprintf(__('Attempt to override site %1$d with data from site %2$d failed: %3$s', 'ultimate-multisite'), $from_site_id, $to_site_id, $duplicate_site_id->get_error_message()); wu_log_add('site-duplication', $message, LogLevel::ERROR); @@ -142,7 +142,7 @@ public static function override_site($from_site_id, $to_site_id, $args = []) { if ($saved) { // translators: %1$d is the ID of the site template used, and %2$d is the ID of the overriden site. - $message = sprintf(__('Attempt to override site %1$d with data from site %2$d successful.', 'multisite-ultimate'), $from_site_id, $duplicate_site_id); + $message = sprintf(__('Attempt to override site %1$d with data from site %2$d successful.', 'ultimate-multisite'), $from_site_id, $duplicate_site_id); wu_log_add('site-duplication', $message); @@ -198,7 +198,7 @@ protected static function process_duplication($args) { $wpdb->hide_errors(); if ( ! $args->from_site_id) { - return new \WP_Error('from_site_id_required', __('You need to provide a valid site to duplicate.', 'multisite-ultimate')); + return new \WP_Error('from_site_id_required', __('You need to provide a valid site to duplicate.', 'ultimate-multisite')); } $user_id = ! empty($args->user_id) ? $args->user_id : self::create_admin($args->email, $site_domain); @@ -220,7 +220,7 @@ protected static function process_duplication($args) { } if ( ! is_numeric($args->to_site_id)) { - return new \WP_Error('site_creation_failed', __('An attempt to create a new site failed.', 'multisite-ultimate')); + return new \WP_Error('site_creation_failed', __('An attempt to create a new site failed.', 'ultimate-multisite')); } if ( ! is_super_admin($user_id) && ! get_user_option('primary_blog', $user_id)) { @@ -284,7 +284,7 @@ public static function create_admin($email, $domain) { $user_id = wpmu_create_user($domain, $password, $email); if (false === $user_id) { - return new \WP_Error('user_creation_error', __('We were not able to create a new admin user for the site being duplicated.', 'multisite-ultimate')); + return new \WP_Error('user_creation_error', __('We were not able to create a new admin user for the site being duplicated.', 'ultimate-multisite')); } else { wp_new_user_notification($user_id); } diff --git a/inc/helpers/class-validator.php b/inc/helpers/class-validator.php index 80c87908b..982528eb7 100644 --- a/inc/helpers/class-validator.php +++ b/inc/helpers/class-validator.php @@ -64,7 +64,7 @@ class Validator { public function __construct() { // translators: %s is the field name. - $field_required_message = sprintf(__('The %s field is required', 'multisite-ultimate'), ':attribute'); + $field_required_message = sprintf(__('The %s field is required', 'ultimate-multisite'), ':attribute'); $validation_error_messages = apply_filters( 'wu_validator_error_messages', @@ -73,17 +73,17 @@ public function __construct() { 'required_without' => $field_required_message, 'required_with' => $field_required_message, // translators: %s is the email field identifier - 'email' => sprintf(__('The %s is not a valid email', 'multisite-ultimate'), ':attribute'), + 'email' => sprintf(__('The %s is not a valid email', 'ultimate-multisite'), ':attribute'), // translators: 1st %s is the field name; 2nd is the allowed value - 'min' => sprintf(__('The %1$s minimum is %2$s', 'multisite-ultimate'), ':attribute', ':min'), + 'min' => sprintf(__('The %1$s minimum is %2$s', 'ultimate-multisite'), ':attribute', ':min'), // translators: 1st %s is the field name; 2nd is the allowed value - 'max' => sprintf(__('The %1$s maximum is %2$s', 'multisite-ultimate'), ':attribute', ':max'), + 'max' => sprintf(__('The %1$s maximum is %2$s', 'ultimate-multisite'), ':attribute', ':max'), // translators: %s is the field identifier - 'alpha_dash' => sprintf(__('The %s only allows a-z, 0-9, _ and -', 'multisite-ultimate'), ':attribute'), + 'alpha_dash' => sprintf(__('The %s only allows a-z, 0-9, _ and -', 'ultimate-multisite'), ':attribute'), // translators: %s is the field identifier - 'lowercase' => sprintf(__('The %s must be lowercase', 'multisite-ultimate'), ':attribute'), + 'lowercase' => sprintf(__('The %s must be lowercase', 'ultimate-multisite'), ':attribute'), // translators: %s is the field identifier - 'integer' => sprintf(__('The %s must be integer', 'multisite-ultimate'), ':attribute'), + 'integer' => sprintf(__('The %s must be integer', 'ultimate-multisite'), ':attribute'), ], $this ); @@ -92,8 +92,8 @@ public function __construct() { $this->validator->setTranslations( [ - 'and' => __('and', 'multisite-ultimate'), - 'or' => __('or', 'multisite-ultimate'), + 'and' => __('and', 'ultimate-multisite'), + 'or' => __('or', 'ultimate-multisite'), ] ); diff --git a/inc/helpers/class-woocommerce-api-client.php b/inc/helpers/class-woocommerce-api-client.php index 4af480f25..04e87a238 100644 --- a/inc/helpers/class-woocommerce-api-client.php +++ b/inc/helpers/class-woocommerce-api-client.php @@ -88,7 +88,7 @@ private function execute_request($endpoint, $params = [], $method = 'GET') { 'woocommerce_api_error', sprintf( /* translators: %1$s: HTTP response code, %2$s: response body */ - __('WooCommerce API request failed with status %1$s: %2$s', 'multisite-ultimate'), + __('WooCommerce API request failed with status %1$s: %2$s', 'ultimate-multisite'), $response_code, $response_body ) @@ -100,7 +100,7 @@ private function execute_request($endpoint, $params = [], $method = 'GET') { if (null === $data) { return new WP_Error( 'json_decode_error', - __('Failed to decode API response JSON', 'multisite-ultimate') + __('Failed to decode API response JSON', 'ultimate-multisite') ); } diff --git a/inc/helpers/class-wp-config.php b/inc/helpers/class-wp-config.php index 4134023ad..a999bd86e 100644 --- a/inc/helpers/class-wp-config.php +++ b/inc/helpers/class-wp-config.php @@ -37,7 +37,7 @@ public function inject_wp_config_constant($constant, $value) { if ( ! is_writable($config_path)) { // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_is_writable // translators: %s is the file name. - return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'multisite-ultimate'), $config_path)); + return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'ultimate-multisite'), $config_path)); } $config = file($config_path); @@ -52,7 +52,7 @@ public function inject_wp_config_constant($constant, $value) { $hook_line = $this->find_reference_hook_line($config); if (false === $hook_line) { - return new \WP_Error('unknown-wpconfig', __("Multisite Ultimate can't recognize your wp-config.php, please revert it to original state for further process.", 'multisite-ultimate')); + return new \WP_Error('unknown-wpconfig', __("Multisite Ultimate can't recognize your wp-config.php, please revert it to original state for further process.", 'ultimate-multisite')); } $config = $this->inject_contents($config, $hook_line + 1, PHP_EOL . $content . PHP_EOL); @@ -180,7 +180,7 @@ public function revert($constant) { if ( ! is_writable($config_path)) { // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_is_writable // translators: %s is the file name. - return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'multisite-ultimate'), $config_path)); + return new \WP_Error('not-writeable', sprintf(__('The file %s is not writable', 'ultimate-multisite'), $config_path)); } $config = file($config_path); diff --git a/inc/helpers/validation-rules/class-checkout-steps.php b/inc/helpers/validation-rules/class-checkout-steps.php index 028e87bf7..e2681fea0 100644 --- a/inc/helpers/validation-rules/class-checkout-steps.php +++ b/inc/helpers/validation-rules/class-checkout-steps.php @@ -76,7 +76,7 @@ public function check($value): bool { foreach ($required_fields_list as $field_slug) { if (! in_array($field_slug, $all_fields_list, true)) { // translators: %s is a placeholder for the field name - $this->message = sprintf(__('The %s field must be present in at least one of the checkout form steps.', 'multisite-ultimate'), wu_slug_to_name($field_slug)); + $this->message = sprintf(__('The %s field must be present in at least one of the checkout form steps.', 'ultimate-multisite'), wu_slug_to_name($field_slug)); return false; } @@ -113,7 +113,7 @@ public function check($value): bool { if (empty($found_submittable_field_types)) { // translators: %s is a placeholder for the step name - $this->message = sprintf(__('The %s step is missing a submit field', 'multisite-ultimate'), $step['name']); + $this->message = sprintf(__('The %s step is missing a submit field', 'ultimate-multisite'), $step['name']); return false; } diff --git a/inc/helpers/validation-rules/class-price-variations.php b/inc/helpers/validation-rules/class-price-variations.php index a65ea8967..5f1c729ff 100644 --- a/inc/helpers/validation-rules/class-price-variations.php +++ b/inc/helpers/validation-rules/class-price-variations.php @@ -84,7 +84,7 @@ public function check($value): bool { * Check if it is the same as the main duration */ if ($this->parameter('duration') == $duration && $this->parameter('duration_unit') === $unit) { - $this->message = __('This product cannot have a price variation for the same duration and duration unit values as the product itself.', 'multisite-ultimate'); + $this->message = __('This product cannot have a price variation for the same duration and duration unit values as the product itself.', 'ultimate-multisite'); return false; } diff --git a/inc/helpers/validation-rules/class-products.php b/inc/helpers/validation-rules/class-products.php index b59db83c9..5b03198a2 100644 --- a/inc/helpers/validation-rules/class-products.php +++ b/inc/helpers/validation-rules/class-products.php @@ -55,7 +55,7 @@ public function check($products) : bool { // phpcs:ignore return true; } - $this->message = __('A plan is required.', 'multisite-ultimate'); + $this->message = __('A plan is required.', 'ultimate-multisite'); return false; } diff --git a/inc/helpers/validation-rules/class-site-template.php b/inc/helpers/validation-rules/class-site-template.php index fd65fcf6e..ea8e6ffc6 100644 --- a/inc/helpers/validation-rules/class-site-template.php +++ b/inc/helpers/validation-rules/class-site-template.php @@ -56,14 +56,14 @@ public function check($template_id) : bool { // phpcs:ignore $site = wu_get_site($template_id); if (! $site || ($site->get_type() !== Site_Type::SITE_TEMPLATE && $site->get_type() !== Site_Type::CUSTOMER_OWNED)) { - $this->message = __('The Template ID does not correspond to a valid Template', 'multisite-ultimate'); + $this->message = __('The Template ID does not correspond to a valid Template', 'ultimate-multisite'); return false; } if ($site->get_type() === Site_Type::CUSTOMER_OWNED) { if (! wu_get_setting('allow_own_site_as_template')) { - $this->message = __('You can not use your sites as template', 'multisite-ultimate'); + $this->message = __('You can not use your sites as template', 'ultimate-multisite'); return false; } @@ -71,7 +71,7 @@ public function check($template_id) : bool { // phpcs:ignore $customer = wu_get_current_customer(); if (! $customer || $site->get_customer_id() !== $customer->get_id()) { - $this->message = __('The selected template is not available.', 'multisite-ultimate'); + $this->message = __('The selected template is not available.', 'ultimate-multisite'); return false; } @@ -103,7 +103,7 @@ public function check($template_id) : bool { // phpcs:ignore if (is_array($allowed_templates) && !in_array($template_id, $allowed_templates)) { // phpcs:ignore - $this->message = __('The selected template is not available for this product.', 'multisite-ultimate'); + $this->message = __('The selected template is not available for this product.', 'ultimate-multisite'); return false; } diff --git a/inc/helpers/validation-rules/class-unique.php b/inc/helpers/validation-rules/class-unique.php index f4a03f664..831dd4c42 100644 --- a/inc/helpers/validation-rules/class-unique.php +++ b/inc/helpers/validation-rules/class-unique.php @@ -81,7 +81,7 @@ public function check($value): bool { * Customize the error message for the customer. */ if (in_array($model, $user_models, true)) { - $this->message = __('A customer with the same email address or username already exists.', 'multisite-ultimate'); + $this->message = __('A customer with the same email address or username already exists.', 'ultimate-multisite'); } if ( ! $existing) { diff --git a/inc/installers/class-core-installer.php b/inc/installers/class-core-installer.php index bcef92598..92d72d87c 100644 --- a/inc/installers/class-core-installer.php +++ b/inc/installers/class-core-installer.php @@ -41,7 +41,7 @@ function () { if ( ! (defined('SUNRISE') && SUNRISE)) { // translators: %1$s opening a tag, %2$s closing a tag. - throw new \Exception(sprintf(esc_html__('You are using Closte and they prevent the wp-config.php file from being written to. %1$s Follow these instructions to do it manually %2$s.', 'multisite-ultimate'), sprintf('', esc_attr(wu_get_documentation_url('wp-ultimo-closte-config'))), '')); + throw new \Exception(sprintf(esc_html__('You are using Closte and they prevent the wp-config.php file from being written to. %1$s Follow these instructions to do it manually %2$s.', 'ultimate-multisite'), sprintf('', esc_attr(wu_get_documentation_url('wp-ultimo-closte-config'))), '')); } return true; @@ -66,21 +66,21 @@ public function get_steps() { $steps['database_tables'] = [ 'done' => $has_tables_installed, - 'title' => __('Create Database Tables', 'multisite-ultimate'), - 'description' => __('Multisite Ultimate uses custom tables for performance reasons. We need to create those tables and make sure they are setup properly before we can activate the plugin.', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Creating default tables...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Create Database Tables', 'ultimate-multisite'), + 'description' => __('Multisite Ultimate uses custom tables for performance reasons. We need to create those tables and make sure they are setup properly before we can activate the plugin.', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Creating default tables...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('installation-errors'), ]; $steps['sunrise'] = [ 'done' => defined('SUNRISE') && SUNRISE && defined('WP_ULTIMO_SUNRISE_VERSION'), - 'title' => __('Install sunrise.php File', 'multisite-ultimate'), - 'description' => __('We need to add our own sunrise.php file to the wp-content folder in order to be able to control access to sites and plugins before anything else happens on WordPress. ', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Installing sunrise file...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Install sunrise.php File', 'ultimate-multisite'), + 'description' => __('We need to add our own sunrise.php file to the wp-content folder in order to be able to control access to sites and plugins before anything else happens on WordPress. ', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Installing sunrise file...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('installation-errors'), ]; @@ -115,7 +115,7 @@ public function _install_database_tables(): void { if (false === $success) { // translators: %s is the name of a database table, e.g. wu_memberships. - $error_message = sprintf(__('Installation of the table %s failed', 'multisite-ultimate'), $table->get_name()); + $error_message = sprintf(__('Installation of the table %s failed', 'ultimate-multisite'), $table->get_name()); throw new \Exception(esc_html($error_message)); } diff --git a/inc/installers/class-default-content-installer.php b/inc/installers/class-default-content-installer.php index 722f57309..8c29b2e15 100644 --- a/inc/installers/class-default-content-installer.php +++ b/inc/installers/class-default-content-installer.php @@ -147,55 +147,55 @@ public function get_steps() { $steps['create_template_site'] = [ 'done' => $this->done_creating_template_site(), - 'title' => __('Create Example Template Site', 'multisite-ultimate'), - 'description' => __('This will create a template site on your network that you can use as a starting point.', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Creating Template Site...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Create Example Template Site', 'ultimate-multisite'), + 'description' => __('This will create a template site on your network that you can use as a starting point.', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Creating Template Site...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('installation-errors'), 'checked' => true, ]; $steps['create_products'] = [ 'done' => $this->done_creating_products(), - 'title' => __('Create Example Products', 'multisite-ultimate'), - 'description' => __('This action will create example products (plans, packages, and services), so you have an starting point.', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Creating Products...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Create Example Products', 'ultimate-multisite'), + 'description' => __('This action will create example products (plans, packages, and services), so you have an starting point.', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Creating Products...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('installation-errors'), 'checked' => true, ]; $steps['create_checkout'] = [ 'done' => $this->done_creating_checkout_forms(), - 'title' => __('Create a Checkout Form', 'multisite-ultimate'), - 'description' => __('This action will create a single-step checkout form that your customers will use to place purchases, as well as the page that goes with it.', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Creating Checkout Form and Registration Page...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Create a Checkout Form', 'ultimate-multisite'), + 'description' => __('This action will create a single-step checkout form that your customers will use to place purchases, as well as the page that goes with it.', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Creating Checkout Form and Registration Page...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('installation-errors'), 'checked' => true, ]; $steps['create_emails'] = [ 'done' => $this->done_creating_emails(), - 'title' => __('Create the System Emails', 'multisite-ultimate'), - 'description' => __('This action will create all emails sent by Multisite Ultimate.', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Creating System Emails...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Create the System Emails', 'ultimate-multisite'), + 'description' => __('This action will create all emails sent by Multisite Ultimate.', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Creating System Emails...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('installation-errors'), 'checked' => true, ]; $steps['create_login_page'] = [ 'done' => $this->done_creating_login_page(), - 'title' => __('Create Custom Login Page', 'multisite-ultimate'), - 'description' => __('This action will create a custom login page and replace the default one.', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Creating Custom Login Page...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Create Custom Login Page', 'ultimate-multisite'), + 'description' => __('This action will create a custom login page and replace the default one.', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Creating Custom Login Page...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('installation-errors'), 'checked' => true, ]; @@ -219,7 +219,7 @@ public function _install_create_template_site(): void { $template_site = [ 'domain' => $d->domain, 'path' => $d->path, - 'title' => __('Template Site', 'multisite-ultimate'), + 'title' => __('Template Site', 'ultimate-multisite'), 'type' => 'site_template', ]; @@ -230,7 +230,7 @@ public function _install_create_template_site(): void { } if ( ! $status) { - $error_message = __('Template Site was not created. Maybe a site with the /template path already exists?', 'multisite-ultimate'); + $error_message = __('Template Site was not created. Maybe a site with the /template path already exists?', 'ultimate-multisite'); throw new \Exception(esc_html($error_message)); } @@ -261,8 +261,8 @@ public function _install_create_products(): void { * Free Plan */ $products[] = [ - 'name' => __('Free', 'multisite-ultimate'), - 'description' => __('This is an example of a free plan.', 'multisite-ultimate'), + 'name' => __('Free', 'ultimate-multisite'), + 'description' => __('This is an example of a free plan.', 'ultimate-multisite'), 'currency' => wu_get_setting('currency_symbol', 'USD'), 'pricing_type' => 'free', 'duration' => 1, @@ -281,8 +281,8 @@ public function _install_create_products(): void { * Premium Plan */ $products[] = [ - 'name' => __('Premium', 'multisite-ultimate'), - 'description' => __('This is an example of a paid plan.', 'multisite-ultimate'), + 'name' => __('Premium', 'ultimate-multisite'), + 'description' => __('This is an example of a paid plan.', 'ultimate-multisite'), 'currency' => wu_get_setting('currency_symbol', 'USD'), 'pricing_type' => 'paid', 'type' => 'plan', @@ -301,8 +301,8 @@ public function _install_create_products(): void { * Service */ $products[] = [ - 'name' => __('SEO Consulting', 'multisite-ultimate'), - 'description' => __('This is an example of a service that you can create and charge customers for.', 'multisite-ultimate'), + 'name' => __('SEO Consulting', 'ultimate-multisite'), + 'description' => __('This is an example of a service that you can create and charge customers for.', 'ultimate-multisite'), 'currency' => wu_get_setting('currency_symbol', 'USD'), 'pricing_type' => 'paid', 'type' => 'service', @@ -340,7 +340,7 @@ public function _install_create_products(): void { public function _install_create_checkout(): void { $checkout_form = [ - 'name' => __('Registration Form', 'multisite-ultimate'), + 'name' => __('Registration Form', 'ultimate-multisite'), 'slug' => 'main-form', 'settings' => [], ]; @@ -366,7 +366,7 @@ public function _install_create_checkout(): void { */ $post_details = [ 'post_name' => 'register', - 'post_title' => __('Register', 'multisite-ultimate'), + 'post_title' => __('Register', 'ultimate-multisite'), 'post_content' => sprintf($post_content, $status->get_slug()), 'post_status' => 'publish', 'post_type' => 'page', @@ -413,7 +413,7 @@ public function _install_create_login_page(): void { '; $page_args = [ - 'post_title' => __('Login', 'multisite-ultimate'), + 'post_title' => __('Login', 'ultimate-multisite'), 'post_content' => $page_content, 'post_status' => 'publish', 'post_author' => get_current_user_id(), diff --git a/inc/installers/class-migrator.php b/inc/installers/class-migrator.php index 07d281fb6..b675e232f 100644 --- a/inc/installers/class-migrator.php +++ b/inc/installers/class-migrator.php @@ -259,12 +259,12 @@ public function get_steps($force_all = false) { if ($dry_run && ! $force_all) { $steps['dry_run_check'] = [ - 'title' => __('Pre-Migration Check', 'multisite-ultimate'), - 'description' => __('Runs all migrations in a sand-boxed environment to see if it hits an error.', 'multisite-ultimate'), + 'title' => __('Pre-Migration Check', 'ultimate-multisite'), + 'description' => __('Runs all migrations in a sand-boxed environment to see if it hits an error.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Checking...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Checking...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'done' => false, ]; @@ -273,105 +273,105 @@ public function get_steps($force_all = false) { if ( ! $dry_run) { $steps['backup'] = [ - 'title' => __('Prepare for Migration', 'multisite-ultimate'), - 'description' => __('Verifies the data before going forward with the migration.', 'multisite-ultimate'), - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Preparing...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'title' => __('Prepare for Migration', 'ultimate-multisite'), + 'description' => __('Verifies the data before going forward with the migration.', 'ultimate-multisite'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Preparing...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; } $steps['settings'] = [ - 'title' => __('Settings', 'multisite-ultimate'), - 'description' => __('Migrates the settings from the older version.', 'multisite-ultimate'), + 'title' => __('Settings', 'ultimate-multisite'), + 'description' => __('Migrates the settings from the older version.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['products'] = [ - 'title' => __('Plans to Products', 'multisite-ultimate'), - 'description' => __('Converts the old plans into products.', 'multisite-ultimate'), + 'title' => __('Plans to Products', 'ultimate-multisite'), + 'description' => __('Converts the old plans into products.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['customers'] = [ - 'title' => __('Users to Customers', 'multisite-ultimate'), - 'description' => __('Creates customers based on the existing users.', 'multisite-ultimate'), + 'title' => __('Users to Customers', 'ultimate-multisite'), + 'description' => __('Creates customers based on the existing users.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['memberships'] = [ - 'title' => __('Subscriptions to Memberships', 'multisite-ultimate'), - 'description' => __('Converts subscriptions into Memberships.', 'multisite-ultimate'), + 'title' => __('Subscriptions to Memberships', 'ultimate-multisite'), + 'description' => __('Converts subscriptions into Memberships.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['transactions'] = [ - 'title' => __('Transactions to Payments & Events', 'multisite-ultimate'), - 'description' => __('Converts transactions into payments and events.', 'multisite-ultimate'), + 'title' => __('Transactions to Payments & Events', 'ultimate-multisite'), + 'description' => __('Converts transactions into payments and events.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['discount_codes'] = [ - 'title' => __('Coupons to Discount Codes', 'multisite-ultimate'), - 'description' => __('Converts coupons into discount codes.', 'multisite-ultimate'), + 'title' => __('Coupons to Discount Codes', 'ultimate-multisite'), + 'description' => __('Converts coupons into discount codes.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['sites'] = [ - 'title' => __('Customer Sites', 'multisite-ultimate'), - 'description' => __('Adjusts existing customer sites.', 'multisite-ultimate'), - 'installing' => __('Making Adjustments...', 'multisite-ultimate'), + 'title' => __('Customer Sites', 'ultimate-multisite'), + 'description' => __('Adjusts existing customer sites.', 'ultimate-multisite'), + 'installing' => __('Making Adjustments...', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['site_templates'] = [ - 'title' => __('Sites Templates', 'multisite-ultimate'), - 'description' => __('Adjusts existing site templates.', 'multisite-ultimate'), - 'installing' => __('Making Adjustments...', 'multisite-ultimate'), + 'title' => __('Sites Templates', 'ultimate-multisite'), + 'description' => __('Adjusts existing site templates.', 'ultimate-multisite'), + 'installing' => __('Making Adjustments...', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['domains'] = [ - 'title' => __('Mapped Domains', 'multisite-ultimate'), - 'description' => __('Converts mapped domains.', 'multisite-ultimate'), + 'title' => __('Mapped Domains', 'ultimate-multisite'), + 'description' => __('Converts mapped domains.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['forms'] = [ - 'title' => __('Checkout Forms', 'multisite-ultimate'), - 'description' => __('Creates a checkout form based on the existing signup flow.', 'multisite-ultimate'), + 'title' => __('Checkout Forms', 'ultimate-multisite'), + 'description' => __('Creates a checkout form based on the existing signup flow.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['emails'] = [ - 'title' => __('Emails & Broadcasts', 'multisite-ultimate'), - 'description' => __('Converts the emails and broadcasts.', 'multisite-ultimate'), + 'title' => __('Emails & Broadcasts', 'ultimate-multisite'), + 'description' => __('Converts the emails and broadcasts.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['webhooks'] = [ - 'title' => __('Webhooks', 'multisite-ultimate'), - 'description' => __('Migrates existing webhooks.', 'multisite-ultimate'), + 'title' => __('Webhooks', 'ultimate-multisite'), + 'description' => __('Migrates existing webhooks.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; $steps['other'] = [ - 'title' => __('Other Migrations', 'multisite-ultimate'), - 'description' => __('Other migrations that don\'t really fit anywhere else.', 'multisite-ultimate'), + 'title' => __('Other Migrations', 'ultimate-multisite'), + 'description' => __('Other migrations that don\'t really fit anywhere else.', 'ultimate-multisite'), 'help' => wu_get_documentation_url('migration-errors'), 'done' => false, ]; @@ -380,9 +380,9 @@ public function get_steps($force_all = false) { fn($item) => wp_parse_args( $item, [ - 'pending' => __('Pending', 'multisite-ultimate'), - 'installing' => __('Migrating...', 'multisite-ultimate'), - 'success' => __('Success!', 'multisite-ultimate'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'installing' => __('Migrating...', 'ultimate-multisite'), + 'success' => __('Success!', 'ultimate-multisite'), ] ), $steps @@ -581,7 +581,7 @@ public function handle_error_messages($e, $session, $dry_run = true, $installer $caller = $dry_run ? $wu_migrator_current_installer : $installer; // Translators: %s is the name of the installer. - $error_nice_message = sprintf(__('Critical error found when migrating "%s".', 'multisite-ultimate'), $caller); + $error_nice_message = sprintf(__('Critical error found when migrating "%s".', 'ultimate-multisite'), $caller); if ($session) { $errors = (array) $session->get('errors'); @@ -915,7 +915,7 @@ protected function _install_settings() { 'preview_url_parameter' => 'template-preview', 'bg_color' => $this->get_old_setting('top-bar-bg-color', '#f9f9f9'), 'button_bg_color' => $this->get_old_setting('top-bar-button-bg-color', '#00a1ff'), - 'button_text' => $this->get_old_setting('top-bar-button-text', __('Use this Template', 'multisite-ultimate')), + 'button_text' => $this->get_old_setting('top-bar-button-text', __('Use this Template', 'ultimate-multisite')), 'display_responsive_controls' => $this->get_old_setting('top-bar-enable-resize', true), 'use_custom_logo' => $this->get_old_setting('top-bar-use-logo'), 'custom_logo' => $this->get_old_setting('top-bar-logo'), @@ -2302,7 +2302,7 @@ protected function _install_forms() { } $checkout_form = [ - 'name' => __('Signup Form', 'multisite-ultimate'), + 'name' => __('Signup Form', 'ultimate-multisite'), 'slug' => 'main-form', 'allowed_countries' => $this->get_old_setting('allowed_countries', []), 'settings' => [], @@ -2339,7 +2339,7 @@ protected function _install_forms() { */ $post_details = [ 'post_name' => $page_slug, - 'post_title' => __('Signup', 'multisite-ultimate'), + 'post_title' => __('Signup', 'ultimate-multisite'), 'post_status' => 'publish', 'post_type' => 'page', 'post_content' => sprintf($post_content, $status->get_slug()), @@ -2379,7 +2379,7 @@ protected function _install_forms() { */ $login_post_details = [ 'post_name' => $login_page_slug, - 'post_title' => __('Login', 'multisite-ultimate'), + 'post_title' => __('Login', 'ultimate-multisite'), 'post_status' => 'publish', 'post_type' => 'page', 'post_content' => '', diff --git a/inc/integrations/host-providers/class-base-host-provider.php b/inc/integrations/host-providers/class-base-host-provider.php index 3d6ece678..1edbf24d9 100644 --- a/inc/integrations/host-providers/class-base-host-provider.php +++ b/inc/integrations/host-providers/class-base-host-provider.php @@ -202,7 +202,7 @@ public function add_to_integration_list(): void { $slug = $this->get_id(); - $html = $this->is_enabled() ? sprintf(' %s', __('Activated', 'multisite-ultimate')) : ''; + $html = $this->is_enabled() ? sprintf(' %s', __('Activated', 'ultimate-multisite')) : ''; $url = wu_network_admin_url( 'wp-ultimo-hosting-integration-wizard', @@ -211,14 +211,14 @@ public function add_to_integration_list(): void { ] ); - $html .= sprintf('%s', $url, __('Configuration', 'multisite-ultimate')); + $html .= sprintf('%s', $url, __('Configuration', 'ultimate-multisite')); // translators: %s is the name of a host provider (e.g. Cloudways, WPMUDev, Closte...). - $title = sprintf(__('%s Integration', 'multisite-ultimate'), $this->get_title()); + $title = sprintf(__('%s Integration', 'ultimate-multisite'), $this->get_title()); $title .= sprintf( "%s", - __('Go to the setup wizard to setup this integration.', 'multisite-ultimate') + __('Go to the setup wizard to setup this integration.', 'ultimate-multisite') ); wu_register_settings_field( @@ -245,14 +245,14 @@ public function alert_provider_detected(): void { } // translators: %1$s will be replaced with the integration title. E.g. RunCloud - $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module is not active. In order for the domain mapping integration to work with %1$s, you might want to activate that module.', 'multisite-ultimate'), $this->get_title()); + $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module is not active. In order for the domain mapping integration to work with %1$s, you might want to activate that module.', 'ultimate-multisite'), $this->get_title()); $slug = $this->get_id(); $actions = [ 'activate' => [ // translators: %s is the integration name. - 'title' => sprintf(__('Activate %s', 'multisite-ultimate'), $this->get_title()), + 'title' => sprintf(__('Activate %s', 'ultimate-multisite'), $this->get_title()), 'url' => wu_network_admin_url( 'wp-ultimo-hosting-integration-wizard', [ @@ -278,14 +278,14 @@ public function alert_provider_not_setup(): void { } // translators: %1$s will be replaced with the integration title. E.g. RunCloud. - $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module was not properly setup. In order for the domain mapping integration to work with %1$s, you need to configure that module.', 'multisite-ultimate'), $this->get_title()); + $message = sprintf(__('It looks like you are using %1$s as your hosting provider, yet the %1$s integration module was not properly setup. In order for the domain mapping integration to work with %1$s, you need to configure that module.', 'ultimate-multisite'), $this->get_title()); $slug = $this->get_id(); $actions = [ 'activate' => [ // translators: %s is the integration name - 'title' => sprintf(__('Setup %s', 'multisite-ultimate'), $this->get_title()), + 'title' => sprintf(__('Setup %s', 'ultimate-multisite'), $this->get_title()), 'url' => wu_network_admin_url( 'wp-ultimo-hosting-integration-wizard', [ @@ -562,7 +562,7 @@ public function get_explainer_lines() { $explainer_lines = [ 'will' => [ // translators: %s is the name of the integration e.g. RunCloud - 'send_domains' => sprintf(__('Send API calls to %s servers with domain names added to this network', 'multisite-ultimate'), $this->get_title()), + 'send_domains' => sprintf(__('Send API calls to %s servers with domain names added to this network', 'ultimate-multisite'), $this->get_title()), ], 'will_not' => [], ]; @@ -570,11 +570,11 @@ public function get_explainer_lines() { if ($this->supports('autossl')) { // translators: %s is the name of the integration e.g. RunCloud - $explainer_lines['will'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added.', 'multisite-ultimate'), $this->get_title()); + $explainer_lines['will'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added.', 'ultimate-multisite'), $this->get_title()); } else { // translators: %s is the name of the integration e.g. RunCloud - $explainer_lines['will_not'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added. This needs to be done manually.', 'multisite-ultimate'), $this->get_title()); + $explainer_lines['will_not'][] = sprintf(__('Fetch and install a SSL certificate on %s platform after the domain is added. This needs to be done manually.', 'ultimate-multisite'), $this->get_title()); } return $explainer_lines; @@ -645,7 +645,7 @@ public function test_connection(): void { */ public function get_description() { - return __('No description provided.', 'multisite-ultimate'); + return __('No description provided.', 'ultimate-multisite'); } /** diff --git a/inc/integrations/host-providers/class-closte-host-provider.php b/inc/integrations/host-providers/class-closte-host-provider.php index 3d93dda56..7e6b49e1a 100644 --- a/inc/integrations/host-providers/class-closte-host-provider.php +++ b/inc/integrations/host-providers/class-closte-host-provider.php @@ -90,13 +90,32 @@ public function detect() { */ public function on_add_domain($domain, $site_id): void { - $this->send_closte_api_request( + wu_log_add('integration-closte', sprintf('Adding domain: %s for site ID: %d', $domain, $site_id)); + + // First add the domain alias + $domain_response = $this->send_closte_api_request( '/adddomainalias', [ 'domain' => $domain, 'wildcard' => str_starts_with($domain, '*.'), ] ); + + // Check if domain was added successfully, then request SSL + if (wu_get_isset($domain_response, 'success', false)) { + wu_log_add('integration-closte', sprintf('Domain %s added successfully, requesting SSL certificate', $domain)); + $this->request_ssl_certificate($domain); + } elseif (isset($domain_response['error']) && $domain_response['error'] === 'Invalid or empty domain: ' . $domain) { + wu_log_add('integration-closte', sprintf('Domain %s rejected by Closte API as invalid. This may be expected for Closte subdomains or internal domains.', $domain)); + } else { + wu_log_add('integration-closte', sprintf('Failed to add domain %s. Response: %s', $domain, wp_json_encode($domain_response))); + + // Only try SSL if it's not a domain validation error + if (!isset($domain_response['error']) || !str_contains($domain_response['error'], 'Invalid or empty domain')) { + wu_log_add('integration-closte', sprintf('Attempting SSL certificate request for %s despite domain addition failure', $domain)); + $this->request_ssl_certificate($domain); + } + } } /** @@ -142,6 +161,78 @@ public function on_add_subdomain($subdomain, $site_id) {} */ public function on_remove_subdomain($subdomain, $site_id) {} + /** + * Requests an SSL certificate for a domain. + * + * @since 2.0.0 + * @param string $domain The domain to request SSL certificate for. + * @return array|object + */ + private function request_ssl_certificate($domain) { + + wu_log_add('integration-closte', sprintf('Requesting SSL certificate for domain: %s', $domain)); + + // Try different possible SSL endpoints + $ssl_endpoints = [ + '/ssl/install', + '/installssl', + '/ssl', + '/certificate/install', + ]; + + $ssl_response = null; + + foreach ($ssl_endpoints as $endpoint) { + wu_log_add('integration-closte', sprintf('Trying SSL endpoint: %s', $endpoint)); + + $ssl_response = $this->send_closte_api_request( + $endpoint, + [ + 'domain' => $domain, + 'type' => 'letsencrypt', + ] + ); + + // If we get something other than 400/404, we found a working endpoint + if (!isset($ssl_response['error']) || !preg_match('/HTTP [45]\d\d/', $ssl_response['error'])) { + wu_log_add('integration-closte', sprintf('SSL endpoint %s responded, stopping search', $endpoint)); + break; + } + } + + if (wu_get_isset($ssl_response, 'success', false)) { + wu_log_add('integration-closte', sprintf('SSL certificate request successful for domain: %s', $domain)); + } else { + wu_log_add('integration-closte', sprintf('SSL certificate request failed for domain: %s. Response: %s', $domain, wp_json_encode($ssl_response))); + + // Note: Closte might handle SSL automatically when domain is added + wu_log_add('integration-closte', 'Note: Closte may handle SSL automatically when domains are added via /adddomainalias'); + } + + return $ssl_response; + } + + /** + * Checks the SSL certificate status for a domain. + * + * @since 2.0.0 + * @param string $domain The domain to check SSL status for. + * @return array|object + */ + public function check_ssl_status($domain) { + + wu_log_add('integration-closte', sprintf('Checking SSL status for domain: %s', $domain)); + + $ssl_status = $this->send_closte_api_request( + '/ssl/status', + ['domain' => $domain] + ); + + wu_log_add('integration-closte', sprintf('SSL status for domain %s: %s', $domain, wp_json_encode($ssl_status))); + + return $ssl_status; + } + /** * Tests the connection with the API. * @@ -157,12 +248,12 @@ public function test_connection(): void { if (wu_get_isset($response, 'error') === 'Invalid or empty domain: ') { wp_send_json_success( [ - 'message' => __('Access Authorized', 'multisite-ultimate'), + 'message' => __('Access Authorized', 'ultimate-multisite'), ] ); } - $error = new \WP_Error('not-auth', __('Something went wrong', 'multisite-ultimate')); + $error = new \WP_Error('not-auth', __('Something went wrong', 'ultimate-multisite')); wp_send_json_error($error); } @@ -178,42 +269,95 @@ public function test_connection(): void { public function send_closte_api_request($endpoint, $data) { if (defined('CLOSTE_CLIENT_API_KEY') === false) { + wu_log_add('integration-closte', 'CLOSTE_CLIENT_API_KEY constant not defined'); return (object) [ 'success' => false, 'error' => 'Closte API Key not found.', ]; } + if (empty(CLOSTE_CLIENT_API_KEY)) { + wu_log_add('integration-closte', 'CLOSTE_CLIENT_API_KEY is empty'); + return (object) [ + 'success' => false, + 'error' => 'Closte API Key is empty.', + ]; + } + + // Try different authentication methods + $api_key = CLOSTE_CLIENT_API_KEY; + $post_fields = [ 'blocking' => true, 'timeout' => 45, 'method' => 'POST', + 'headers' => [ + 'Content-Type' => 'application/x-www-form-urlencoded', + 'User-Agent' => 'WP-Ultimo-Closte-Integration/2.0', + ], 'body' => array_merge( [ - 'apikey' => CLOSTE_CLIENT_API_KEY, + 'apikey' => $api_key, ], $data ), ]; - $response = wp_remote_post('https://app.closte.com/api/client' . $endpoint, $post_fields); + wu_log_add('integration-closte', sprintf('Using API key (first 10 chars): %s...', substr($api_key, 0, 10))); + + $api_url = 'https://app.closte.com/api/client' . $endpoint; + wu_log_add('integration-closte', sprintf('Making API request to: %s with data: %s', $api_url, wp_json_encode($data))); + + $response = wp_remote_post($api_url, $post_fields); + + // Log response details + if (is_wp_error($response)) { + wu_log_add('integration-closte', sprintf('API request failed: %s', $response->get_error_message())); + return $response; + } + + $response_code = wp_remote_retrieve_response_code($response); + $response_body = wp_remote_retrieve_body($response); + + wu_log_add('integration-closte', sprintf('API response code: %d, body: %s', $response_code, $response_body)); - wu_log_add('integration-closte', wp_remote_retrieve_body($response)); + // Check for HTTP errors + if ($response_code >= 400) { + wu_log_add('integration-closte', sprintf('HTTP error %d for endpoint %s', $response_code, $endpoint)); + return (object) [ + 'success' => false, + 'error' => sprintf('HTTP %d error', $response_code), + 'response_body' => $response_body, + ]; + } - if ( ! is_wp_error($response)) { - $body = json_decode(wp_remote_retrieve_body($response), true); + if ($response_body) { + $body = json_decode($response_body, true); if (json_last_error() === JSON_ERROR_NONE) { + // Log success/failure for SSL-specific endpoints + if (strpos($endpoint, 'ssl') !== false) { + wu_log_add( + 'integration-closte-ssl', + sprintf('SSL request for %s: %s', $endpoint, wp_json_encode($body)) + ); + } return $body; } + wu_log_add('integration-closte', sprintf('JSON decode error: %s', json_last_error_msg())); return (object) [ 'success' => false, - 'error' => 'unknown', + 'error' => 'Invalid JSON response', + 'json_error' => json_last_error_msg(), ]; } - return $response; + wu_log_add('integration-closte', 'Empty response body'); + return (object) [ + 'success' => false, + 'error' => 'Empty response', + ]; } /** @@ -224,7 +368,7 @@ public function send_closte_api_request($endpoint, $data) { */ public function get_description() { - return __('Closte is not just another web hosting who advertise their services as a cloud hosting while still provides fixed plans like in 1995.', 'multisite-ultimate'); + return __('Closte is not just another web hosting who advertise their services as a cloud hosting while still provides fixed plans like in 1995.', 'ultimate-multisite'); } /** @@ -237,4 +381,6 @@ public function get_logo() { return wu_get_asset('closte.svg', 'img/hosts'); } + + } diff --git a/inc/integrations/host-providers/class-cloudflare-host-provider.php b/inc/integrations/host-providers/class-cloudflare-host-provider.php index de5ae70d7..ed8ec4191 100644 --- a/inc/integrations/host-providers/class-cloudflare-host-provider.php +++ b/inc/integrations/host-providers/class-cloudflare-host-provider.php @@ -116,9 +116,9 @@ public function add_cloudflare_dns_entries($dns_records, $domain) { ); if ( ! empty($dns_entries->result)) { - $proxied_tag = sprintf('%s', __('Proxied', 'multisite-ultimate'), __('Cloudflare', 'multisite-ultimate')); + $proxied_tag = sprintf('%s', __('Proxied', 'ultimate-multisite'), __('Cloudflare', 'ultimate-multisite')); - $not_proxied_tag = sprintf('%s', __('Not Proxied', 'multisite-ultimate'), __('Cloudflare', 'multisite-ultimate')); + $not_proxied_tag = sprintf('%s', __('Not Proxied', 'ultimate-multisite'), __('Cloudflare', 'ultimate-multisite')); foreach ($dns_entries->result as $entry) { $dns_records[] = [ @@ -163,12 +163,12 @@ public function get_fields() { return [ 'WU_CLOUDFLARE_ZONE_ID' => [ - 'title' => __('Zone ID', 'multisite-ultimate'), - 'placeholder' => __('e.g. 644c7705723d62e31f700bb798219c75', 'multisite-ultimate'), + 'title' => __('Zone ID', 'ultimate-multisite'), + 'placeholder' => __('e.g. 644c7705723d62e31f700bb798219c75', 'ultimate-multisite'), ], 'WU_CLOUDFLARE_API_KEY' => [ - 'title' => __('API Key', 'multisite-ultimate'), - 'placeholder' => __('e.g. xKGbxxVDpdcUv9dUzRf4i4ngv0QNf1wCtbehiec_o', 'multisite-ultimate'), + 'title' => __('API Key', 'ultimate-multisite'), + 'placeholder' => __('e.g. xKGbxxVDpdcUv9dUzRf4i4ngv0QNf1wCtbehiec_o', 'ultimate-multisite'), ], ]; } @@ -430,7 +430,7 @@ public function get_instructions(): void { */ public function get_description() { - return __('Cloudflare secures and ensures the reliability of your external-facing resources such as websites, APIs, and applications. It protects your internal resources such as behind-the-firewall applications, teams, and devices. And it is your platform for developing globally-scalable applications.', 'multisite-ultimate'); + return __('Cloudflare secures and ensures the reliability of your external-facing resources such as websites, APIs, and applications. It protects your internal resources such as behind-the-firewall applications, teams, and devices. And it is your platform for developing globally-scalable applications.', 'ultimate-multisite'); } /** @@ -458,12 +458,12 @@ public function get_explainer_lines() { ]; if (is_subdomain_install()) { - $explainer_lines['will']['send_sub_domains'] = __('Add a new proxied subdomain to the configured CloudFlare zone whenever a new site gets created', 'multisite-ultimate'); + $explainer_lines['will']['send_sub_domains'] = __('Add a new proxied subdomain to the configured CloudFlare zone whenever a new site gets created', 'ultimate-multisite'); } else { - $explainer_lines['will']['subdirectory'] = __('Do nothing! The CloudFlare integration has no effect in subdirectory multisite installs such as this one', 'multisite-ultimate'); + $explainer_lines['will']['subdirectory'] = __('Do nothing! The CloudFlare integration has no effect in subdirectory multisite installs such as this one', 'ultimate-multisite'); } - $explainer_lines['will_not']['send_domain'] = __('Add domain mappings as new CloudFlare zones', 'multisite-ultimate'); + $explainer_lines['will_not']['send_domain'] = __('Add domain mappings as new CloudFlare zones', 'ultimate-multisite'); return $explainer_lines; } diff --git a/inc/integrations/host-providers/class-cloudways-host-provider.php b/inc/integrations/host-providers/class-cloudways-host-provider.php index a6e0fc5cd..793fbae9f 100644 --- a/inc/integrations/host-providers/class-cloudways-host-provider.php +++ b/inc/integrations/host-providers/class-cloudways-host-provider.php @@ -144,30 +144,30 @@ public function get_fields() { return [ 'WU_CLOUDWAYS_EMAIL' => [ - 'title' => __('Cloudways Account Email', 'multisite-ultimate'), - 'desc' => __('Your Cloudways account email address.', 'multisite-ultimate'), - 'placeholder' => __('e.g. me@gmail.com', 'multisite-ultimate'), + 'title' => __('Cloudways Account Email', 'ultimate-multisite'), + 'desc' => __('Your Cloudways account email address.', 'ultimate-multisite'), + 'placeholder' => __('e.g. me@gmail.com', 'ultimate-multisite'), ], 'WU_CLOUDWAYS_API_KEY' => [ - 'title' => __('Cloudways API Key', 'multisite-ultimate'), - 'desc' => __('The API Key retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'multisite-ultimate'), + 'title' => __('Cloudways API Key', 'ultimate-multisite'), + 'desc' => __('The API Key retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'ultimate-multisite'), ], 'WU_CLOUDWAYS_SERVER_ID' => [ - 'title' => __('Cloudways Server ID', 'multisite-ultimate'), - 'desc' => __('The Server ID retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. 11667', 'multisite-ultimate'), + 'title' => __('Cloudways Server ID', 'ultimate-multisite'), + 'desc' => __('The Server ID retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. 11667', 'ultimate-multisite'), ], 'WU_CLOUDWAYS_APP_ID' => [ - 'title' => __('Cloudways App ID', 'multisite-ultimate'), - 'desc' => __('The App ID retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. 940288', 'multisite-ultimate'), + 'title' => __('Cloudways App ID', 'ultimate-multisite'), + 'desc' => __('The App ID retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. 940288', 'ultimate-multisite'), ], 'WU_CLOUDWAYS_EXTRA_DOMAINS' => [ - 'title' => __('Cloudways Extra Domains', 'multisite-ultimate'), - 'tooltip' => __('The Cloudways API is a bit strange in that it doesn’t offer a way to add or remove just one domain, only a way to update the whole domain list. That means that Multisite Ultimate will replace all domains you might have there with the list of mapped domains of the network every time a new domain is added.', 'multisite-ultimate'), - 'desc' => __('Comma-separated list of additional domains to add to Cloudways.', 'multisite-ultimate'), - 'placeholder' => __('e.g. *.test.com, test.com', 'multisite-ultimate'), + 'title' => __('Cloudways Extra Domains', 'ultimate-multisite'), + 'tooltip' => __('The Cloudways API is a bit strange in that it doesn’t offer a way to add or remove just one domain, only a way to update the whole domain list. That means that Multisite Ultimate will replace all domains you might have there with the list of mapped domains of the network every time a new domain is added.', 'ultimate-multisite'), + 'desc' => __('Comma-separated list of additional domains to add to Cloudways.', 'ultimate-multisite'), + 'placeholder' => __('e.g. *.test.com, test.com', 'ultimate-multisite'), ], ]; } @@ -528,7 +528,7 @@ public function get_instructions(): void { */ public function get_description() { - return __('Focus on your business and avoid all the web hosting hassles. Our managed hosting guarantees unmatched performance, reliability and choice with 24/7 support that acts as your extended team, making Cloudways an ultimate choice for growing agencies and e-commerce businesses.', 'multisite-ultimate'); + return __('Focus on your business and avoid all the web hosting hassles. Our managed hosting guarantees unmatched performance, reliability and choice with 24/7 support that acts as your extended team, making Cloudways an ultimate choice for growing agencies and e-commerce businesses.', 'ultimate-multisite'); } /** diff --git a/inc/integrations/host-providers/class-cpanel-host-provider.php b/inc/integrations/host-providers/class-cpanel-host-provider.php index e4f68a80a..a9e28f228 100644 --- a/inc/integrations/host-providers/class-cpanel-host-provider.php +++ b/inc/integrations/host-providers/class-cpanel-host-provider.php @@ -111,26 +111,26 @@ public function get_fields() { return [ 'WU_CPANEL_USERNAME' => [ - 'title' => __('cPanel Username', 'multisite-ultimate'), - 'placeholder' => __('e.g. username', 'multisite-ultimate'), + 'title' => __('cPanel Username', 'ultimate-multisite'), + 'placeholder' => __('e.g. username', 'ultimate-multisite'), ], 'WU_CPANEL_PASSWORD' => [ 'type' => 'password', - 'title' => __('cPanel Password', 'multisite-ultimate'), - 'placeholder' => __('password', 'multisite-ultimate'), + 'title' => __('cPanel Password', 'ultimate-multisite'), + 'placeholder' => __('password', 'ultimate-multisite'), ], 'WU_CPANEL_HOST' => [ - 'title' => __('cPanel Host', 'multisite-ultimate'), - 'placeholder' => __('e.g. yourdomain.com', 'multisite-ultimate'), + 'title' => __('cPanel Host', 'ultimate-multisite'), + 'placeholder' => __('e.g. yourdomain.com', 'ultimate-multisite'), ], 'WU_CPANEL_PORT' => [ - 'title' => __('cPanel Port', 'multisite-ultimate'), - 'placeholder' => __('Defaults to 2083', 'multisite-ultimate'), + 'title' => __('cPanel Port', 'ultimate-multisite'), + 'placeholder' => __('Defaults to 2083', 'ultimate-multisite'), 'value' => 2083, ], 'WU_CPANEL_ROOT_DIR' => [ - 'title' => __('Root Directory', 'multisite-ultimate'), - 'placeholder' => __('Defaults to /public_html', 'multisite-ultimate'), + 'title' => __('Root Directory', 'ultimate-multisite'), + 'placeholder' => __('Defaults to /public_html', 'ultimate-multisite'), 'value' => '/public_html', ], ]; @@ -300,7 +300,7 @@ public function log_calls($results) { wu_log_add('integration-cpanel', $results->cpanelresult->data->reason); return; } elseif ( ! isset($results->cpanelresult->data[0])) { - wu_log_add('integration-cpanel', __('Unexpected error ocurred trying to sync domains with CPanel', 'multisite-ultimate'), LogLevel::ERROR); + wu_log_add('integration-cpanel', __('Unexpected error ocurred trying to sync domains with CPanel', 'ultimate-multisite'), LogLevel::ERROR); return; } @@ -315,7 +315,7 @@ public function log_calls($results) { */ public function get_description() { - return __('cPanel is the management panel being used on a large number of shared and dedicated hosts across the globe.', 'multisite-ultimate'); + return __('cPanel is the management panel being used on a large number of shared and dedicated hosts across the globe.', 'ultimate-multisite'); } /** @@ -360,13 +360,13 @@ public function get_explainer_lines() { $explainer_lines = [ 'will' => [ - 'send_domains' => __('Add a new Addon Domain on cPanel whenever a new domain mapping gets created on your network', 'multisite-ultimate'), + 'send_domains' => __('Add a new Addon Domain on cPanel whenever a new domain mapping gets created on your network', 'ultimate-multisite'), ], 'will_not' => [], ]; if (is_subdomain_install()) { - $explainer_lines['will']['send_sub_domains'] = __('Add a new SubDomain on cPanel whenever a new site gets created on your network', 'multisite-ultimate'); + $explainer_lines['will']['send_sub_domains'] = __('Add a new SubDomain on cPanel whenever a new site gets created on your network', 'ultimate-multisite'); } return $explainer_lines; diff --git a/inc/integrations/host-providers/class-gridpane-host-provider.php b/inc/integrations/host-providers/class-gridpane-host-provider.php index d04620849..9d5d8808b 100644 --- a/inc/integrations/host-providers/class-gridpane-host-provider.php +++ b/inc/integrations/host-providers/class-gridpane-host-provider.php @@ -208,7 +208,7 @@ public function test_connection(): void { if (wu_get_isset($results, 'message') === 'This action is unauthorized.') { wp_send_json_error( [ - 'error' => __('We were not able to successfully establish a connection.', 'multisite-ultimate'), + 'error' => __('We were not able to successfully establish a connection.', 'ultimate-multisite'), ] ); } @@ -216,14 +216,14 @@ public function test_connection(): void { if (is_wp_error($results)) { wp_send_json_error( [ - 'error' => __('We were not able to successfully establish a connection.', 'multisite-ultimate'), + 'error' => __('We were not able to successfully establish a connection.', 'ultimate-multisite'), ] ); } wp_send_json_success( [ - 'success' => __('Connection successfully established.', 'multisite-ultimate'), + 'success' => __('Connection successfully established.', 'ultimate-multisite'), ] ); } @@ -247,7 +247,7 @@ public function get_instructions(): void { */ public function get_description() { - return __("GridPane is the world's first hosting control panel built exclusively for serious WordPress professionals.", 'multisite-ultimate'); + return __("GridPane is the world's first hosting control panel built exclusively for serious WordPress professionals.", 'ultimate-multisite'); } /** diff --git a/inc/integrations/host-providers/class-runcloud-host-provider.php b/inc/integrations/host-providers/class-runcloud-host-provider.php index 2b88249cd..341897088 100644 --- a/inc/integrations/host-providers/class-runcloud-host-provider.php +++ b/inc/integrations/host-providers/class-runcloud-host-provider.php @@ -90,24 +90,24 @@ public function get_fields() { return [ 'WU_RUNCLOUD_API_KEY' => [ - 'title' => __('RunCloud API Key', 'multisite-ultimate'), - 'desc' => __('The API Key retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. Sx9tHAn5XMrkeyZKS1a7uj8dGTLgKnlEOaJEFRt1m95L', 'multisite-ultimate'), + 'title' => __('RunCloud API Key', 'ultimate-multisite'), + 'desc' => __('The API Key retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. Sx9tHAn5XMrkeyZKS1a7uj8dGTLgKnlEOaJEFRt1m95L', 'ultimate-multisite'), ], 'WU_RUNCLOUD_API_SECRET' => [ - 'title' => __('RunCloud API Secret', 'multisite-ultimate'), - 'desc' => __('The API secret retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. ZlAebXp2sa6J5xsrPoiPcMXZRIVsHJ2rEkNCNGknZnF0UK5cSNSePS8GBW9FXIQd', 'multisite-ultimate'), + 'title' => __('RunCloud API Secret', 'ultimate-multisite'), + 'desc' => __('The API secret retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. ZlAebXp2sa6J5xsrPoiPcMXZRIVsHJ2rEkNCNGknZnF0UK5cSNSePS8GBW9FXIQd', 'ultimate-multisite'), ], 'WU_RUNCLOUD_SERVER_ID' => [ - 'title' => __('RunCloud Server ID', 'multisite-ultimate'), - 'desc' => __('The Server ID retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. 11667', 'multisite-ultimate'), + 'title' => __('RunCloud Server ID', 'ultimate-multisite'), + 'desc' => __('The Server ID retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. 11667', 'ultimate-multisite'), ], 'WU_RUNCLOUD_APP_ID' => [ - 'title' => __('RunCloud App ID', 'multisite-ultimate'), - 'desc' => __('The App ID retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. 940288', 'multisite-ultimate'), + 'title' => __('RunCloud App ID', 'ultimate-multisite'), + 'desc' => __('The App ID retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. 940288', 'ultimate-multisite'), ], ]; } @@ -169,7 +169,7 @@ public function on_remove_domain($domain, $site_id): void { $domain_id = $this->get_runcloud_domain_id($domain); if ( ! $domain_id) { - wu_log_add('integration-runcloud', __('Domain name not found on runcloud', 'multisite-ultimate')); + wu_log_add('integration-runcloud', __('Domain name not found on runcloud', 'ultimate-multisite')); } $response = $this->send_runcloud_request($this->get_runcloud_base_url("domains/$domain_id"), [], 'DELETE'); @@ -373,7 +373,7 @@ public function get_instructions(): void { */ public function get_description() { - return __('With RunCloud, you don’t need to be a Linux expert to build a website powered by DigitalOcean, AWS, or Google Cloud. Use our graphical interface and build a business on the cloud affordably.', 'multisite-ultimate'); + return __('With RunCloud, you don’t need to be a Linux expert to build a website powered by DigitalOcean, AWS, or Google Cloud. Use our graphical interface and build a business on the cloud affordably.', 'ultimate-multisite'); } /** diff --git a/inc/integrations/host-providers/class-serverpilot-host-provider.php b/inc/integrations/host-providers/class-serverpilot-host-provider.php index c36adf405..7b25469d8 100644 --- a/inc/integrations/host-providers/class-serverpilot-host-provider.php +++ b/inc/integrations/host-providers/class-serverpilot-host-provider.php @@ -89,19 +89,19 @@ public function get_fields() { return [ 'WU_SERVER_PILOT_CLIENT_ID' => [ - 'title' => __('ServerPilot Client ID', 'multisite-ultimate'), - 'desc' => __('Your ServerPilot Client ID.', 'multisite-ultimate'), - 'placeholder' => __('e.g. cid_lSmjevkdoSOpasYVqm', 'multisite-ultimate'), + 'title' => __('ServerPilot Client ID', 'ultimate-multisite'), + 'desc' => __('Your ServerPilot Client ID.', 'ultimate-multisite'), + 'placeholder' => __('e.g. cid_lSmjevkdoSOpasYVqm', 'ultimate-multisite'), ], 'WU_SERVER_PILOT_API_KEY' => [ - 'title' => __('ServerPilot API Key', 'multisite-ultimate'), - 'desc' => __('The API Key retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'multisite-ultimate'), + 'title' => __('ServerPilot API Key', 'ultimate-multisite'), + 'desc' => __('The API Key retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. eYP0Jo3Fzzm5SOZCi5nLR0Mki2lbYZ', 'ultimate-multisite'), ], 'WU_SERVER_PILOT_APP_ID' => [ - 'title' => __('ServerPilot App ID', 'multisite-ultimate'), - 'desc' => __('The App ID retrieved in the previous step.', 'multisite-ultimate'), - 'placeholder' => __('e.g. 940288', 'multisite-ultimate'), + 'title' => __('ServerPilot App ID', 'ultimate-multisite'), + 'desc' => __('The App ID retrieved in the previous step.', 'ultimate-multisite'), + 'placeholder' => __('e.g. 940288', 'ultimate-multisite'), ], ]; } @@ -278,7 +278,7 @@ public function get_server_pilot_domains() { */ // translators: %s is the wp_json_encode of the error. - wu_log_add('integration-serverpilot', sprintf(__('An error occurred while trying to get the current list of domains: %s', 'multisite-ultimate'), wp_json_encode($app_info)), LogLevel::ERROR); + wu_log_add('integration-serverpilot', sprintf(__('An error occurred while trying to get the current list of domains: %s', 'ultimate-multisite'), wp_json_encode($app_info)), LogLevel::ERROR); return false; } @@ -319,7 +319,7 @@ public function get_instructions(): void { */ public function get_description() { - return __('ServerPilot is a cloud service for hosting WordPress and other PHP websites on servers at DigitalOcean, Amazon, Google, or any other server provider. You can think of ServerPilot as a modern, centralized hosting control panel.', 'multisite-ultimate'); + return __('ServerPilot is a cloud service for hosting WordPress and other PHP websites on servers at DigitalOcean, Amazon, Google, or any other server provider. You can think of ServerPilot as a modern, centralized hosting control panel.', 'ultimate-multisite'); } /** diff --git a/inc/integrations/host-providers/class-wpengine-host-provider.php b/inc/integrations/host-providers/class-wpengine-host-provider.php index 3214df715..4416ebc7e 100644 --- a/inc/integrations/host-providers/class-wpengine-host-provider.php +++ b/inc/integrations/host-providers/class-wpengine-host-provider.php @@ -172,9 +172,9 @@ public function on_remove_subdomain($subdomain, $site_id): void { */ public function get_description() { - $description = __('WP Engine drives your business forward faster with the first and only WordPress Digital Experience Platform. We offer the best WordPress hosting and developer experience on a proven, reliable architecture that delivers unparalleled speed, scalability, and security for your sites.', 'multisite-ultimate'); + $description = __('WP Engine drives your business forward faster with the first and only WordPress Digital Experience Platform. We offer the best WordPress hosting and developer experience on a proven, reliable architecture that delivers unparalleled speed, scalability, and security for your sites.', 'ultimate-multisite'); - $description .= '

' . __('We recommend to enter in contact with WP Engine support to ask for a Wildcard domain if you are using a subdomain install.', 'multisite-ultimate') . ''; + $description .= '

' . __('We recommend to enter in contact with WP Engine support to ask for a Wildcard domain if you are using a subdomain install.', 'ultimate-multisite') . ''; return $description; } diff --git a/inc/integrations/host-providers/class-wpmudev-host-provider.php b/inc/integrations/host-providers/class-wpmudev-host-provider.php index 22636a175..50fd53d7c 100644 --- a/inc/integrations/host-providers/class-wpmudev-host-provider.php +++ b/inc/integrations/host-providers/class-wpmudev-host-provider.php @@ -157,7 +157,7 @@ public function on_add_domain($domain, $site_id): void { if (is_wp_error($response)) { // translators: The %s placeholder will be replaced with the domain name. - wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %s to WPMU Dev hosting.', 'multisite-ultimate'), $_domain), LogLevel::ERROR); + wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %s to WPMU Dev hosting.', 'ultimate-multisite'), $_domain), LogLevel::ERROR); } $body = json_decode(wp_remote_retrieve_body($response)); @@ -165,11 +165,11 @@ public function on_add_domain($domain, $site_id): void { if ($body->message) { // translators: The %1$s will be replaced with the domain name and %2$s is the error message. - wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %1$s to WPMU Dev hosting: %2$s', 'multisite-ultimate'), $_domain, $body->message->message), LogLevel::ERROR); + wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %1$s to WPMU Dev hosting: %2$s', 'ultimate-multisite'), $_domain, $body->message->message), LogLevel::ERROR); } else { // translators: The %s placeholder will be replaced with the domain name. - wu_log_add('integration-wpmudev', sprintf(__('Domain %s added to WPMU Dev hosting successfully.', 'multisite-ultimate'), $_domain)); + wu_log_add('integration-wpmudev', sprintf(__('Domain %s added to WPMU Dev hosting successfully.', 'ultimate-multisite'), $_domain)); } } } @@ -253,7 +253,7 @@ public function test_connection(): void { */ public function get_description() { - return __('WPMU DEV is one of the largest companies in the WordPress space. Founded in 2004, it was one of the first companies to scale the Website as a Service model with products such as Edublogs and CampusPress.', 'multisite-ultimate'); + return __('WPMU DEV is one of the largest companies in the WordPress space. Founded in 2004, it was one of the first companies to scale the Website as a Service model with products such as Edublogs and CampusPress.', 'ultimate-multisite'); } /** diff --git a/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php b/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php index 023b5ee20..3da4baaad 100644 --- a/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php +++ b/inc/integrations/host-providers/cpanel-api/class-cpanel-api.php @@ -152,7 +152,7 @@ private function request($url, $params = []) { if (is_wp_error($response)) { // translators: %s is the error. - $this->log(sprintf(__('cPanel API Error: %s', 'multisite-ultimate'), $response->get_error_message())); + $this->log(sprintf(__('cPanel API Error: %s', 'ultimate-multisite'), $response->get_error_message())); return false; } @@ -224,7 +224,7 @@ private function sign_in() { $this->homepage = $this->get_base_url() . $reply['redirect']; $this->ex_page = $this->get_base_url() . "/{$this->cpsess}/execute/"; } else { - $this->log(__('Cannot connect to your cPanel server : Invalid Credentials', 'multisite-ultimate')); + $this->log(__('Cannot connect to your cPanel server : Invalid Credentials', 'ultimate-multisite')); } } diff --git a/inc/internal/class-memory-trap.php b/inc/internal/class-memory-trap.php index 8ed00ac8f..6fb490255 100644 --- a/inc/internal/class-memory-trap.php +++ b/inc/internal/class-memory-trap.php @@ -97,7 +97,7 @@ function () { */ public function memory_limit_error_handler($error): void { // phpcs:ignore - $message = sprintf(__('Your server\'s PHP and WordPress memory limits are too low to perform this check. You might need to contact your host provider and ask the PHP memory limit in particular to be raised.', 'multisite-ultimate')); + $message = sprintf(__('Your server\'s PHP and WordPress memory limits are too low to perform this check. You might need to contact your host provider and ask the PHP memory limit in particular to be raised.', 'ultimate-multisite')); if ('json' === $this->return_type) { wp_send_json_error( diff --git a/inc/invoices/class-invoice.php b/inc/invoices/class-invoice.php index 0458fa262..33a7dc029 100644 --- a/inc/invoices/class-invoice.php +++ b/inc/invoices/class-invoice.php @@ -103,7 +103,7 @@ private function pdf_setup(): void { $this->printer->SetProtection(['print']); - $this->printer->SetTitle(__('Invoice', 'multisite-ultimate')); + $this->printer->SetTitle(__('Invoice', 'ultimate-multisite')); $this->printer->SetAuthor($this->company_name); @@ -257,7 +257,7 @@ public function set_attributes($attributes): void { 'use_custom_logo' => false, 'custom_logo' => false, 'footer_message' => '', - 'paid_tag_text' => __('Paid', 'multisite-ultimate'), + 'paid_tag_text' => __('Paid', 'ultimate-multisite'), ] ); diff --git a/inc/limits/class-customer-user-role-limits.php b/inc/limits/class-customer-user-role-limits.php index e9f0237b6..e3cb96cd8 100644 --- a/inc/limits/class-customer-user-role-limits.php +++ b/inc/limits/class-customer-user-role-limits.php @@ -62,7 +62,7 @@ public function block_new_user_page(): void { return; } - $message = __('You reached your membership users limit.', 'multisite-ultimate'); + $message = __('You reached your membership users limit.', 'ultimate-multisite'); /** * Allow developers to change the message about the membership users limit @@ -71,7 +71,7 @@ public function block_new_user_page(): void { */ $message = apply_filters('wu_users_membership_limit_message', $message); - wp_die(esc_html($message), esc_html__('Limit Reached', 'multisite-ultimate'), ['back_link' => true]); + wp_die(esc_html($message), esc_html__('Limit Reached', 'ultimate-multisite'), ['back_link' => true]); } /** diff --git a/inc/limits/class-plugin-limits.php b/inc/limits/class-plugin-limits.php index 525afe1fa..b3c95e966 100644 --- a/inc/limits/class-plugin-limits.php +++ b/inc/limits/class-plugin-limits.php @@ -145,7 +145,7 @@ public function clear_actions($actions, $plugin_file) { %s ', - __('Always Loaded', 'multisite-ultimate') + __('Always Loaded', 'ultimate-multisite') ); } @@ -160,8 +160,8 @@ public function clear_actions($actions, $plugin_file) { 'type' => $plugin_file, ] ), - __('Upgrade to unlock', 'multisite-ultimate'), - __('Upgrade to unlock', 'multisite-ultimate') + __('Upgrade to unlock', 'ultimate-multisite'), + __('Upgrade to unlock', 'ultimate-multisite') ); $actions['upgrade'] = $upgrade; @@ -196,7 +196,7 @@ public function clear_plugin_list($plugins) { unset($plugins[ $plugin_slug ]); } - if (str_starts_with($plugin_slug, 'multisite-ultimate')) { + if (str_starts_with($plugin_slug, 'ultimate-multisite')) { unset($plugins[ $plugin_slug ]); } @@ -236,7 +236,7 @@ public function deactivate_network_plugins($plugins) { $plugin_limits = wu_get_current_site()->get_limitations()->plugins; foreach ($plugins as $plugin_slug => $timestamp) { - if (str_contains($plugin_slug, 'multisite-ultimate')) { + if (str_contains($plugin_slug, 'ultimate-multisite')) { continue; } @@ -289,7 +289,7 @@ public function deactivate_plugins($plugins) { $plugin_limits = wu_get_current_site()->get_limitations()->plugins; foreach ($plugins as $plugin_slug) { - if (str_contains((string) $plugin_slug, 'multisite-ultimate')) { + if (str_contains((string) $plugin_slug, 'ultimate-multisite')) { continue; } diff --git a/inc/limits/class-post-type-limits.php b/inc/limits/class-post-type-limits.php index 8c227844e..80550ae8d 100644 --- a/inc/limits/class-post-type-limits.php +++ b/inc/limits/class-post-type-limits.php @@ -133,16 +133,16 @@ public function limit_posts(): void { $screen = get_current_screen(); if ( ! wu_get_current_site()->get_limitations()->post_types->{$screen->post_type}->enabled) { - $upgrade_message = __('Your plan does not support this post type.', 'multisite-ultimate'); + $upgrade_message = __('Your plan does not support this post type.', 'ultimate-multisite'); - wp_die(esc_html($upgrade_message), esc_html(__('Limit Reached', 'multisite-ultimate')), ['back_link' => true]); + wp_die(esc_html($upgrade_message), esc_html(__('Limit Reached', 'ultimate-multisite')), ['back_link' => true]); } // Check if that is more than our limit if (wu_get_current_site()->get_limitations()->post_types->is_post_above_limit($screen->post_type)) { - $upgrade_message = __('You reached your plan\'s post limit.', 'multisite-ultimate'); + $upgrade_message = __('You reached your plan\'s post limit.', 'ultimate-multisite'); - wp_die(esc_html($upgrade_message), esc_html__('Limit Reached', 'multisite-ultimate'), ['back_link' => true]); + wp_die(esc_html($upgrade_message), esc_html__('Limit Reached', 'ultimate-multisite'), ['back_link' => true]); } } @@ -195,7 +195,7 @@ public function limit_draft_publishing($data, $modified_data) { public function limit_media($file) { if ( ! wu_get_current_site()->get_limitations()->post_types->attachment->enabled) { - $file['error'] = __('Your plan does not support media upload.', 'multisite-ultimate'); + $file['error'] = __('Your plan does not support media upload.', 'ultimate-multisite'); return $file; } @@ -222,7 +222,7 @@ public function limit_media($file) { if ($quota > 0 && $post_count >= $quota) { // translators: %d is the number of images allowed. - $file['error'] = sprintf(__('You reached your media upload limit of %d images. Upgrade your account to unlock more media uploads.', 'multisite-ultimate'), $quota, '#'); + $file['error'] = sprintf(__('You reached your media upload limit of %d images. Upgrade your account to unlock more media uploads.', 'ultimate-multisite'), $quota, '#'); } return $file; diff --git a/inc/limits/class-theme-limits.php b/inc/limits/class-theme-limits.php index d875d0c9e..fc90526a1 100644 --- a/inc/limits/class-theme-limits.php +++ b/inc/limits/class-theme-limits.php @@ -64,7 +64,7 @@ public function init(): void { * * @since 2.1.0 */ - if (wu_cli_is_plugin_skipped('multisite-ultimate')) { + if (wu_cli_is_plugin_skipped('ultimate-multisite')) { return; } @@ -124,7 +124,7 @@ public function prevent_theme_activation_on_customizer($data, $context) { if ($theme_limitations->allowed($new_theme, 'not_available')) { $response = [ 'code' => 'not-available', - 'message' => __('This theme is not available on your current plan.', 'multisite-ultimate'), + 'message' => __('This theme is not available on your current plan.', 'ultimate-multisite'), ]; wp_send_json($response, 'not-available'); @@ -166,7 +166,7 @@ public function hacky_remove_activate_button(): void { } $upgrade_button = wu_generate_upgrade_to_unlock_button( - __('Upgrade to unlock', 'multisite-ultimate'), + __('Upgrade to unlock', 'ultimate-multisite'), [ 'module' => 'themes', 'type' => 'EXTENSION', diff --git a/inc/list-tables/class-base-list-table.php b/inc/list-tables/class-base-list-table.php index 126619a92..a8afc47d7 100644 --- a/inc/list-tables/class-base-list-table.php +++ b/inc/list-tables/class-base-list-table.php @@ -171,7 +171,7 @@ protected function extra_tablenav($which) { if ('grid' === $this->current_mode) { printf( '', - esc_html__('Select All', 'multisite-ultimate') + esc_html__('Select All', 'ultimate-multisite') ); } } @@ -338,7 +338,7 @@ public function get_per_page_option_name(): string { public function get_per_page_option_label(): string { // translators: %s will be replaced by the data type plural name. e.g. Books. - return sprintf(__('%s per page', 'multisite-ultimate'), $this->get_label('plural')); + return sprintf(__('%s per page', 'ultimate-multisite'), $this->get_label('plural')); } /** @@ -360,7 +360,7 @@ protected function has_search() { public function get_search_input_label(): string { // translators: %s will be replaced with the data type plural name. e.g. Books. - return sprintf(__('Search %s', 'multisite-ultimate'), $this->get_label('plural')); + return sprintf(__('Search %s', 'ultimate-multisite'), $this->get_label('plural')); } /** @@ -404,7 +404,7 @@ public function register_scripts(): void { 'base_url' => wu_get_form_url('bulk_actions'), 'model' => strstr($this->get_table_id(), '_', true), 'i18n' => [ - 'confirm' => __('Confirm Action', 'multisite-ultimate'), + 'confirm' => __('Confirm Action', 'ultimate-multisite'), ], ] ); @@ -504,10 +504,10 @@ public function display(): void { wu_render_empty_state( [ // translators: %s name of items in list. - 'message' => sprintf(__("You don't have any %s yet.", 'multisite-ultimate'), $this->labels['plural']), - 'sub_message' => $this->_args['add_new'] ? __('How about we create a new one?', 'multisite-ultimate') : __('...but you will see them here once they get created.', 'multisite-ultimate'), + 'message' => sprintf(__("You don't have any %s yet.", 'ultimate-multisite'), $this->labels['plural']), + 'sub_message' => $this->_args['add_new'] ? __('How about we create a new one?', 'ultimate-multisite') : __('...but you will see them here once they get created.', 'ultimate-multisite'), // translators: %s is the singular value of the model, such as Product, or Payment. - 'link_label' => sprintf(__('Create a new %s', 'multisite-ultimate'), $this->labels['singular']), + 'link_label' => sprintf(__('Create a new %s', 'ultimate-multisite'), $this->labels['singular']), 'link_url' => wu_get_isset($this->_args['add_new'], 'url', ''), 'link_classes' => wu_get_isset($this->_args['add_new'], 'classes', ''), 'link_icon' => 'dashicons-wu-circle-with-plus', @@ -594,7 +594,7 @@ public function no_items(): void { '
%s
', - esc_html__('No items found', 'multisite-ultimate') + esc_html__('No items found', 'ultimate-multisite') ); } @@ -606,7 +606,7 @@ public function no_items(): void { public function get_bulk_actions() { $default_bulk_actions = [ - 'delete' => __('Delete', 'multisite-ultimate'), + 'delete' => __('Delete', 'ultimate-multisite'), ]; $has_active = $this->get_schema_columns( @@ -616,8 +616,8 @@ public function get_bulk_actions() { ); if ($has_active) { - $default_bulk_actions['activate'] = __('Activate', 'multisite-ultimate'); - $default_bulk_actions['deactivate'] = __('Deactivate', 'multisite-ultimate'); + $default_bulk_actions['activate'] = __('Activate', 'ultimate-multisite'); + $default_bulk_actions['deactivate'] = __('Deactivate', 'ultimate-multisite'); } return apply_filters('wu_bulk_actions', $default_bulk_actions, $this->id); @@ -658,7 +658,7 @@ public static function process_bulk_action() { $func_name = $prefix . $model; if ( ! function_exists($func_name)) { - return new \WP_Error('func-not-exists', __('Something went wrong.', 'multisite-ultimate')); + return new \WP_Error('func-not-exists', __('Something went wrong.', 'ultimate-multisite')); } switch ($bulk_action) { @@ -772,7 +772,7 @@ public function ajax_response(): void { if (isset($total_items)) { // translators: %s number of total items. - $response['total_items_i18n'] = sprintf(_n('%s item', '%s items', $total_items, 'multisite-ultimate'), number_format_i18n($total_items)); + $response['total_items_i18n'] = sprintf(_n('%s item', '%s items', $total_items, 'ultimate-multisite'), number_format_i18n($total_items)); } if (isset($total_pages)) { @@ -827,7 +827,7 @@ public function column_default($item, $column_name) { public function _column_datetime($date) { if ( ! wu_validate_date($date)) { - return __('--', 'multisite-ultimate'); + return __('--', 'ultimate-multisite'); } $time = strtotime(get_date_from_gmt((string) $date)); @@ -835,7 +835,7 @@ public function _column_datetime($date) { $formatted_value = date_i18n(get_option('date_format'), $time); // translators: %s is a relative past date. - $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'multisite-ultimate') : __('In %s', 'multisite-ultimate'); + $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'ultimate-multisite') : __('In %s', 'ultimate-multisite'); $text = $formatted_value . sprintf('
%s', sprintf($placeholder, human_time_diff($time))); @@ -859,7 +859,7 @@ public function column_membership($item): void {
 
- +
"; get_payment(); if ( ! $payment) { - $not_found = __('No payment found', 'multisite-ultimate'); + $not_found = __('No payment found', 'ultimate-multisite'); printf( "
@@ -932,7 +932,7 @@ public function column_payment($item): void { $reference = $payment->get_hash(); // translators: %s the payment total. - $description = sprintf(__('Total %s', 'multisite-ultimate'), wu_format_currency($payment->get_total(), $payment->get_currency())); + $description = sprintf(__('Total %s', 'ultimate-multisite'), wu_format_currency($payment->get_total(), $payment->get_currency())); $payment_link = wu_network_admin_url('wp-ultimo-edit-payment', $url_atts); @@ -965,7 +965,7 @@ public function column_customer($item) { $customer = $item->get_customer(); if ( ! $customer) { - $not_found = __('No customer found', 'multisite-ultimate'); + $not_found = __('No customer found', 'ultimate-multisite'); return "
  @@ -1022,7 +1022,7 @@ public function column_product($item) { $product = $item->get_plan(); if ( ! $product) { - $not_found = __('No product found', 'multisite-ultimate'); + $not_found = __('No product found', 'ultimate-multisite'); return "
  @@ -1075,7 +1075,7 @@ public function column_blog_id($item) { $site = $item->get_site(); if ( ! $site) { - $not_found = __('No site found', 'multisite-ultimate'); + $not_found = __('No site found', 'ultimate-multisite'); return "
  @@ -1200,47 +1200,47 @@ public function get_default_date_filter_options() { return [ 'all' => [ - 'label' => __('All', 'multisite-ultimate'), + 'label' => __('All', 'ultimate-multisite'), 'after' => null, 'before' => null, ], 'today' => [ - 'label' => __('Today', 'multisite-ultimate'), + 'label' => __('Today', 'ultimate-multisite'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('today')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'yesterday' => [ - 'label' => __('Yesterday', 'multisite-ultimate'), + 'label' => __('Yesterday', 'ultimate-multisite'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('yesterday')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('yesterday')), ], 'last_week' => [ - 'label' => __('Last 7 Days', 'multisite-ultimate'), + 'label' => __('Last 7 Days', 'ultimate-multisite'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('last week')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'last_month' => [ - 'label' => __('Last 30 Days', 'multisite-ultimate'), + 'label' => __('Last 30 Days', 'ultimate-multisite'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('last month')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'current_month' => [ - 'label' => __('Current Month', 'multisite-ultimate'), + 'label' => __('Current Month', 'ultimate-multisite'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('first day of this month')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'last_year' => [ - 'label' => __('Last 12 Months', 'multisite-ultimate'), + 'label' => __('Last 12 Months', 'ultimate-multisite'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('last year')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'year_to_date' => [ - 'label' => __('Year to Date', 'multisite-ultimate'), + 'label' => __('Year to Date', 'ultimate-multisite'), 'after' => date_i18n('Y-m-d 00:00:00', strtotime('first day of january this year')), 'before' => date_i18n('Y-m-d 23:59:59', strtotime('today')), ], 'custom' => [ - 'label' => __('Custom', 'multisite-ultimate'), + 'label' => __('Custom', 'ultimate-multisite'), 'after' => null, 'before' => null, ], @@ -1390,7 +1390,7 @@ public function get_views() { 'field' => 'type', 'url' => '#', // translators: %s will be replaced with a plural label - 'label' => sprintf(__('All %s', 'multisite-ultimate'), $this->get_label('plural')), + 'label' => sprintf(__('All %s', 'ultimate-multisite'), $this->get_label('plural')), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-broadcast-list-table.php b/inc/list-tables/class-broadcast-list-table.php index 71b0f4234..6eff74534 100644 --- a/inc/list-tables/class-broadcast-list-table.php +++ b/inc/list-tables/class-broadcast-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Broadcast', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Broadcasts', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Broadcast', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Broadcasts', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_broadcast_message'), @@ -79,13 +79,13 @@ public function column_type($item) { $class = 'wu-bg-gray-200'; if ('broadcast_email' === $type) { - $label = __('Email', 'multisite-ultimate'); + $label = __('Email', 'ultimate-multisite'); } if ('broadcast_notice' === $type) { $status = $item->get_notice_type(); - $label = __('Notice', 'multisite-ultimate'); + $label = __('Notice', 'ultimate-multisite'); if ('info' === $status) { $class = 'wu-bg-blue-200'; @@ -121,8 +121,8 @@ public function column_the_content($item): string { ]; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-broadcast', $url_atts), __('Edit', 'multisite-ultimate')), - 'delete' => sprintf('%s', __('Delete', 'multisite-ultimate'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-broadcast', $url_atts), __('Edit', 'ultimate-multisite')), + 'delete' => sprintf('%s', __('Delete', 'ultimate-multisite'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'ultimate-multisite')), ]; return $title . $content . $this->row_actions($actions); @@ -148,7 +148,7 @@ public function column_target_customers($item) { switch ($targets_count) { case 0: - $not_found = __('No customer found', 'multisite-ultimate'); + $not_found = __('No customer found', 'ultimate-multisite'); return "
  @@ -232,9 +232,9 @@ public function column_target_customers($item) { %s %s
', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'multisite-ultimate'), + __('Targets', 'ultimate-multisite'), $targets_count, - __('Targets', 'multisite-ultimate') + __('Targets', 'ultimate-multisite') ); $html .= '
'; @@ -255,9 +255,9 @@ public function column_target_customers($item) { %s %s
', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'multisite-ultimate'), + __('Targets', 'ultimate-multisite'), $targets_count, - __('Targets', 'multisite-ultimate') + __('Targets', 'ultimate-multisite') ); $html .= '
'; @@ -286,7 +286,7 @@ public function column_target_products($item) { switch ($product_count) { case 0: - $not_found = __('No product found', 'multisite-ultimate'); + $not_found = __('No product found', 'ultimate-multisite'); $html = "
  @@ -320,7 +320,7 @@ public function column_target_products($item) { $customer_count = count($plan_customers); } // translators: %s is the number of customers. - $description = sprintf(__('%s customer(s) targeted.', 'multisite-ultimate'), $customer_count); + $description = sprintf(__('%s customer(s) targeted.', 'ultimate-multisite'), $customer_count); $url_atts = [ 'id' => $product->get_id(), @@ -379,9 +379,9 @@ public function column_target_products($item) { '', wu_get_form_url('view_broadcast_targets', $modal_atts), - __('Targets', 'multisite-ultimate'), + __('Targets', 'ultimate-multisite'), $product_count, - __('Targets', 'multisite-ultimate') + __('Targets', 'ultimate-multisite') ); $html .= '
'; @@ -397,7 +397,7 @@ public function column_target_products($item) { 'target_type' => 'products', ]; - $html .= sprintf('', wu_get_form_url('view_broadcast_targets', $modal_atts), __('Targets', 'multisite-ultimate'), $product_count, __('Targets', 'multisite-ultimate')); + $html .= sprintf('', wu_get_form_url('view_broadcast_targets', $modal_atts), __('Targets', 'ultimate-multisite'), $product_count, __('Targets', 'ultimate-multisite')); $html .= '
'; @@ -414,12 +414,12 @@ public function get_columns() { $columns = [ 'cb' => '', - 'type' => __('Type', 'multisite-ultimate'), - 'the_content' => __('Content', 'multisite-ultimate'), - 'target_customers' => __('Target Customers', 'multisite-ultimate'), - 'target_products' => __('Target Products', 'multisite-ultimate'), - 'date_created' => __('Date', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'type' => __('Type', 'ultimate-multisite'), + 'the_content' => __('Content', 'ultimate-multisite'), + 'target_customers' => __('Target Customers', 'ultimate-multisite'), + 'target_products' => __('Target Products', 'ultimate-multisite'), + 'date_created' => __('Date', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -435,25 +435,25 @@ public function get_filters(): array { return [ 'filters' => [ 'type' => [ - 'label' => __('Broadcast Type', 'multisite-ultimate'), + 'label' => __('Broadcast Type', 'ultimate-multisite'), 'options' => [ - 'broadcast_notice' => __('Email', 'multisite-ultimate'), - 'broadcast_email' => __('Notices', 'multisite-ultimate'), + 'broadcast_notice' => __('Email', 'ultimate-multisite'), + 'broadcast_email' => __('Notices', 'ultimate-multisite'), ], ], 'status' => [ - 'label' => __('Notice Type', 'multisite-ultimate'), + 'label' => __('Notice Type', 'ultimate-multisite'), 'options' => [ - 'info' => __('Info - Blue', 'multisite-ultimate'), - 'success' => __('Success - Green', 'multisite-ultimate'), - 'warning' => __('Warning - Yellow', 'multisite-ultimate'), - 'error' => __('Error - Red', 'multisite-ultimate'), + 'info' => __('Info - Blue', 'ultimate-multisite'), + 'success' => __('Success - Green', 'ultimate-multisite'), + 'warning' => __('Warning - Yellow', 'ultimate-multisite'), + 'error' => __('Error - Red', 'ultimate-multisite'), ], ], ], 'date_filters' => [ 'date_created' => [ - 'label' => __('Date', 'multisite-ultimate'), + 'label' => __('Date', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -472,19 +472,19 @@ public function get_views() { 'all' => [ 'field' => 'status', 'url' => add_query_arg('type', 'all'), - 'label' => __('All Broadcasts', 'multisite-ultimate'), + 'label' => __('All Broadcasts', 'ultimate-multisite'), 'count' => 0, ], 'broadcast_email' => [ 'field' => 'type', 'url' => add_query_arg('type', 'broadcast_email'), - 'label' => __('Emails', 'multisite-ultimate'), + 'label' => __('Emails', 'ultimate-multisite'), 'count' => 0, ], 'broadcast_notice' => [ 'field' => 'type', 'url' => add_query_arg('type', 'broadcast_notice'), - 'label' => __('Notices', 'multisite-ultimate'), + 'label' => __('Notices', 'ultimate-multisite'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-checkout-form-list-table.php b/inc/list-tables/class-checkout-form-list-table.php index fa82e9179..2311ca563 100644 --- a/inc/list-tables/class-checkout-form-list-table.php +++ b/inc/list-tables/class-checkout-form-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Checkout Form', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Checkout Forms', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Checkout Form', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Checkout Forms', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_checkout_form'), @@ -65,7 +65,7 @@ public function column_name($item): string { $title = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-checkout-form', $url_atts), $item->get_name()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-checkout-form', $url_atts), __('Edit', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-checkout-form', $url_atts), __('Edit', 'ultimate-multisite')), 'duplicate' => sprintf( '%s', wu_network_admin_url( @@ -75,10 +75,10 @@ public function column_name($item): string { 'id' => $item->get_id(), ] ), - __('Duplicate', 'multisite-ultimate') + __('Duplicate', 'ultimate-multisite') ), - 'get_shortcode' => sprintf('%s', __('Shortcode', 'multisite-ultimate'), wu_get_form_url('shortcode_checkout', $url_atts), __('Shortcode', 'multisite-ultimate')), - 'delete' => sprintf('%s', __('Delete', 'multisite-ultimate'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'multisite-ultimate')), + 'get_shortcode' => sprintf('%s', __('Shortcode', 'ultimate-multisite'), wu_get_form_url('shortcode_checkout', $url_atts), __('Shortcode', 'ultimate-multisite')), + 'delete' => sprintf('%s', __('Delete', 'ultimate-multisite'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'ultimate-multisite')), ]; return $title . $this->row_actions($actions); @@ -108,7 +108,7 @@ public function column_slug($item) { */ public function column_steps($item): string { // translators: %1$d: number of steps, %2$d: number of fields - return sprintf(__('%1$d Step(s) and %2$d Field(s)', 'multisite-ultimate'), $item->get_step_count(), $item->get_field_count()); + return sprintf(__('%1$d Step(s) and %2$d Field(s)', 'ultimate-multisite'), $item->get_step_count(), $item->get_field_count()); } /** @@ -125,7 +125,7 @@ public function column_shortcode($item): string { ', - __('Copy to the Clipboard', 'multisite-ultimate') + __('Copy to the Clipboard', 'ultimate-multisite') ); return sprintf('', esc_attr($item->get_shortcode()), ''); @@ -147,7 +147,7 @@ public function process_single_action(): void { $checkout_form = wu_get_checkout_form($checkout_form_id); if ( ! $checkout_form) { - WP_Ultimo()->notices->add(__('Checkout form not found.', 'multisite-ultimate'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Checkout form not found.', 'ultimate-multisite'), 'error', 'network-admin'); return; } @@ -155,7 +155,7 @@ public function process_single_action(): void { $new_checkout_form = $checkout_form->duplicate(); // translators: the %s is the thing copied. - $new_name = sprintf(__('Copy of %s', 'multisite-ultimate'), $checkout_form->get_name()); + $new_name = sprintf(__('Copy of %s', 'ultimate-multisite'), $checkout_form->get_name()); $new_checkout_form->set_name($new_name); @@ -195,10 +195,10 @@ public function get_columns() { $columns = [ 'cb' => '', - 'name' => __('Form Name', 'multisite-ultimate'), - 'slug' => __('Form Slug', 'multisite-ultimate'), - 'steps' => __('Steps', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'name' => __('Form Name', 'ultimate-multisite'), + 'slug' => __('Form Slug', 'ultimate-multisite'), + 'steps' => __('Steps', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; diff --git a/inc/list-tables/class-customer-list-table.php b/inc/list-tables/class-customer-list-table.php index 39a79b961..7700ae300 100644 --- a/inc/list-tables/class-customer-list-table.php +++ b/inc/list-tables/class-customer-list-table.php @@ -36,15 +36,15 @@ class Customer_List_Table extends Base_List_Table { public function __construct($args = []) { $this->modes = [ - 'grid' => __('Grid View', 'multisite-ultimate'), - 'list' => __('List View', 'multisite-ultimate'), + 'grid' => __('Grid View', 'ultimate-multisite'), + 'list' => __('List View', 'ultimate-multisite'), ]; $args = wp_parse_args( $args, [ - 'singular' => __('Customer', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Customers', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Customer', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Customers', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_customer'), @@ -122,10 +122,10 @@ public function column_name($item): string { // Check if user exists if ( ! $user) { $actions = [ - 'delete' => sprintf('%s', __('Delete', 'multisite-ultimate'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'multisite-ultimate')), + 'delete' => sprintf('%s', __('Delete', 'ultimate-multisite'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'ultimate-multisite')), ]; - return sprintf('#%s - %s', $item->get_user_id(), __('User not found', 'multisite-ultimate')) . $this->row_actions($actions); + return sprintf('#%s - %s', $item->get_user_id(), __('User not found', 'ultimate-multisite')) . $this->row_actions($actions); } $customer_id = sprintf('#%s', $item->get_id(), $item->get_id()); @@ -144,19 +144,19 @@ public function column_name($item): string { // Concatenate the two blocks $title = "$customer_user"; - $desc = sprintf('(%s)', esc_attr__('Send an email to this customer', 'multisite-ultimate'), esc_attr($user->user_email), esc_html($user->user_email)); + $desc = sprintf('(%s)', esc_attr__('Send an email to this customer', 'ultimate-multisite'), esc_attr($user->user_email), esc_html($user->user_email)); // Concatenate switch to url $is_modal_switch_to = \WP_Ultimo\User_Switching::get_instance()->check_user_switching_is_activated() ? '' : 'wubox'; - $url_switch_to = sprintf('%s', __('Switch To', 'multisite-ultimate'), $is_modal_switch_to, \WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id()), __('Switch To', 'multisite-ultimate')); + $url_switch_to = sprintf('%s', __('Switch To', 'ultimate-multisite'), $is_modal_switch_to, \WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id()), __('Switch To', 'ultimate-multisite')); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-customer', $url_atts), __('Edit', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-customer', $url_atts), __('Edit', 'ultimate-multisite')), 'switch-to' => $item->get_user_id() !== get_current_user_id() ? $url_switch_to : false, 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', [ @@ -164,7 +164,7 @@ public function column_name($item): string { 'id' => $item->get_id(), ] ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; @@ -186,7 +186,7 @@ public function column_customer_status($item) { $html = '
'; if ($item->is_vip()) { - $html .= sprintf('%s', __('VIP', 'multisite-ultimate')); + $html .= sprintf('%s', __('VIP', 'ultimate-multisite')); } $html .= get_avatar( @@ -221,7 +221,7 @@ public function column_memberships($item): string { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-memberships', $url_atts), __('View', 'multisite-ultimate')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-memberships', $url_atts), __('View', 'ultimate-multisite')), ]; return $subscription_count . $this->row_actions($actions); @@ -238,11 +238,11 @@ public function get_columns() { $columns = [ 'cb' => '', 'customer_status' => '', - 'name' => __('Name', 'multisite-ultimate'), - 'last_login' => __('Last Login', 'multisite-ultimate'), - 'date_registered' => __('Customer Since', 'multisite-ultimate'), - 'memberships' => __('Memberships', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'name' => __('Name', 'ultimate-multisite'), + 'last_login' => __('Last Login', 'ultimate-multisite'), + 'date_registered' => __('Customer Since', 'ultimate-multisite'), + 'memberships' => __('Memberships', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -331,19 +331,19 @@ public function get_views() { 'filter' => 'all', ] ), - 'label' => __('All Customers', 'multisite-ultimate'), + 'label' => __('All Customers', 'ultimate-multisite'), 'count' => 0, ], 'vip' => [ 'field' => 'filter', 'url' => add_query_arg('filter', 'vip'), - 'label' => __('VIP Customers', 'multisite-ultimate'), + 'label' => __('VIP Customers', 'ultimate-multisite'), 'count' => 0, ], 'online' => [ 'field' => 'filter', 'url' => add_query_arg('filter', 'online'), - 'label' => __('Online Customers', 'multisite-ultimate'), + 'label' => __('Online Customers', 'ultimate-multisite'), 'count' => 0, ], ]; @@ -360,7 +360,7 @@ public function get_views() { public function column_last_login($item) { if ($item->is_online()) { - return '' . __('Online', 'multisite-ultimate'); + return '' . __('Online', 'ultimate-multisite'); } return $this->_column_datetime($item->get_last_login()); diff --git a/inc/list-tables/class-customers-membership-list-table.php b/inc/list-tables/class-customers-membership-list-table.php index e0052200b..9c60dea1a 100644 --- a/inc/list-tables/class-customers-membership-list-table.php +++ b/inc/list-tables/class-customers-membership-list-table.php @@ -51,7 +51,7 @@ public function column_responsive($item): void { $product_count = 1 + count($item->get_addon_ids()); // translators: %s is the product name, %2$s is the count of other products. - $products_list = $p ? sprintf(_n('Contains %1$s', 'Contains %1$s and %2$s other product(s)', $product_count, 'multisite-ultimate'), $p->get_name(), count($item->get_addon_ids())) : ''; // phpcs:ignore + $products_list = $p ? sprintf(_n('Contains %1$s', 'Contains %1$s and %2$s other product(s)', $product_count, 'ultimate-multisite'), $p->get_name(), count($item->get_addon_ids())) : ''; // phpcs:ignore wu_responsive_table_row( [ @@ -68,32 +68,32 @@ public function column_responsive($item): void { [ 'total' => [ 'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1', - 'label' => __('Payment Total', 'multisite-ultimate'), + 'label' => __('Payment Total', 'ultimate-multisite'), 'value' => $item->get_price_description(), ], 'products' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Products', 'multisite-ultimate'), + 'label' => __('Products', 'ultimate-multisite'), 'value' => $products_list, ], 'gateway' => [ 'icon' => 'dashicons-wu-credit-card2 wu-align-middle wu-mr-1', - 'label' => __('Gateway', 'multisite-ultimate'), + 'label' => __('Gateway', 'ultimate-multisite'), 'value' => wu_slug_to_name($item->get_gateway()), ], ], [ 'date_expiration' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', - 'label' => __('Expires', 'multisite-ultimate'), + 'label' => __('Expires', 'ultimate-multisite'), // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - 'value' => sprintf($expired ? __('Expired %s', 'multisite-ultimate') : __('Expiring %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_date_expiration()))), + 'value' => sprintf($expired ? __('Expired %s', 'ultimate-multisite') : __('Expiring %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_date_expiration()))), ], 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', - 'label' => __('Created at', 'multisite-ultimate'), + 'label' => __('Created at', 'ultimate-multisite'), // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - 'value' => sprintf(__('Created %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), + 'value' => sprintf(__('Created %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), ], ] ); diff --git a/inc/list-tables/class-customers-payment-list-table.php b/inc/list-tables/class-customers-payment-list-table.php index fd24dab6e..7ae4e1db1 100644 --- a/inc/list-tables/class-customers-payment-list-table.php +++ b/inc/list-tables/class-customers-payment-list-table.php @@ -59,12 +59,12 @@ public function column_responsive($item): void { [ 'total' => [ 'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1', - 'label' => __('Payment Total', 'multisite-ultimate'), + 'label' => __('Payment Total', 'ultimate-multisite'), 'value' => wu_format_currency($item->get_total()), ], 'gateway' => [ 'icon' => 'dashicons-wu-credit-card2 wu-align-middle wu-mr-1', - 'label' => __('Gateway', 'multisite-ultimate'), + 'label' => __('Gateway', 'ultimate-multisite'), 'value' => wu_slug_to_name($item->get_gateway()), ], ], @@ -73,7 +73,7 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - 'value' => sprintf(__('Created %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), + 'value' => sprintf(__('Created %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), ], ] ); diff --git a/inc/list-tables/class-customers-site-list-table.php b/inc/list-tables/class-customers-site-list-table.php index 1544c096b..a151a11bd 100644 --- a/inc/list-tables/class-customers-site-list-table.php +++ b/inc/list-tables/class-customers-site-list-table.php @@ -76,19 +76,19 @@ public function column_responsive($item): void { [ 'link' => [ 'icon' => 'dashicons-wu-link1 wu-align-middle wu-mr-1', - 'label' => __('Visit Site', 'multisite-ultimate'), + 'label' => __('Visit Site', 'ultimate-multisite'), 'url' => $item->get_active_site_url(), 'value' => $item->get_active_site_url(), ], 'dashboard' => [ 'icon' => 'dashicons-wu-browser wu-align-middle wu-mr-1', - 'label' => __('Go to the Dashboard', 'multisite-ultimate'), - 'value' => __('Dashboard', 'multisite-ultimate'), + 'label' => __('Go to the Dashboard', 'ultimate-multisite'), + 'value' => __('Dashboard', 'ultimate-multisite'), 'url' => get_admin_url($item->get_id()), ], 'membership' => [ 'icon' => 'dashicons-wu-rotate-ccw wu-align-middle wu-mr-1', - 'label' => __('Go to the Membership', 'multisite-ultimate'), + 'label' => __('Go to the Membership', 'ultimate-multisite'), 'value' => $m ? $m->get_hash() : '', 'url' => $m ? wu_network_admin_url( 'wp-ultimo-edit-membership', @@ -103,9 +103,9 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', 'value' => $item->get_type() === 'pending' ? - __('Not Available', 'multisite-ultimate') : + __('Not Available', 'ultimate-multisite') : // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - sprintf(__('Created %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), + sprintf(__('Created %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), ], ] ); diff --git a/inc/list-tables/class-discount-code-list-table.php b/inc/list-tables/class-discount-code-list-table.php index 10896b4f8..a545e8967 100644 --- a/inc/list-tables/class-discount-code-list-table.php +++ b/inc/list-tables/class-discount-code-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Discount Code', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Discount Codes', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Discount Code', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Discount Codes', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_network_admin_url('wp-ultimo-edit-discount-code'), @@ -64,15 +64,15 @@ public function column_name($item): string { $title = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-discount-code', $url_atts), $item->get_name()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-discount-code', $url_atts), __('Edit', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-discount-code', $url_atts), __('Edit', 'ultimate-multisite')), 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; @@ -91,7 +91,7 @@ public function column_name($item): string { public function column_value($item) { if ( ! $item->get_value()) { - return __('No Discount', 'multisite-ultimate'); + return __('No Discount', 'ultimate-multisite'); } $value = wu_format_currency($item->get_value()); @@ -101,7 +101,7 @@ public function column_value($item) { } // translators: placeholder is the amount of discount. e.g. 10% or $5. - return sprintf(__('%s OFF', 'multisite-ultimate'), $value); + return sprintf(__('%s OFF', 'ultimate-multisite'), $value); } /** @@ -116,7 +116,7 @@ public function column_value($item) { public function column_setup_fee_value($item) { if ( ! $item->get_setup_fee_value()) { - return __('No Discount', 'multisite-ultimate'); + return __('No Discount', 'ultimate-multisite'); } $value = wu_format_currency($item->get_setup_fee_value()); @@ -126,7 +126,7 @@ public function column_setup_fee_value($item) { } // translators: placeholder is the amount of discount. e.g. 10% or $5. - return sprintf(__('%s OFF', 'multisite-ultimate'), $value); + return sprintf(__('%s OFF', 'ultimate-multisite'), $value); } /** @@ -140,14 +140,14 @@ public function column_setup_fee_value($item) { public function column_uses($item) { // translators: the placeholder is the number of times this coupon was used. - $html = sprintf(__('Used %d time(s)', 'multisite-ultimate'), $item->get_uses()); + $html = sprintf(__('Used %d time(s)', 'ultimate-multisite'), $item->get_uses()); if ($item->get_max_uses() > 0) { // translators: the placeholder is the number of times this coupon can be used before becoming inactive. - $html .= '' . sprintf(__('Allowed uses: %d', 'multisite-ultimate'), $item->get_max_uses()) . ''; + $html .= '' . sprintf(__('Allowed uses: %d', 'ultimate-multisite'), $item->get_max_uses()) . ''; } else { - $html .= '' . __('No Limits', 'multisite-ultimate') . ''; + $html .= '' . __('No Limits', 'ultimate-multisite') . ''; } return $html; @@ -170,7 +170,7 @@ public function column_coupon_code($item) { $valid = $item->is_valid(); if (is_wp_error($valid)) { - $html .= sprintf('%s', esc_attr($valid->get_error_message()), esc_html__('Inactive', 'multisite-ultimate')); + $html .= sprintf('%s', esc_attr($valid->get_error_message()), esc_html__('Inactive', 'ultimate-multisite')); } return $html; @@ -186,12 +186,12 @@ public function get_columns() { $columns = [ 'cb' => '', - 'name' => __('Name', 'multisite-ultimate'), - 'coupon_code' => __('Code', 'multisite-ultimate'), - 'uses' => __('Uses', 'multisite-ultimate'), - 'value' => __('Value', 'multisite-ultimate'), - 'setup_fee_value' => __('Setup Fee Value', 'multisite-ultimate'), - 'date_expiration' => __('Dates', 'multisite-ultimate'), + 'name' => __('Name', 'ultimate-multisite'), + 'coupon_code' => __('Code', 'ultimate-multisite'), + 'uses' => __('Uses', 'ultimate-multisite'), + 'value' => __('Value', 'ultimate-multisite'), + 'setup_fee_value' => __('Setup Fee Value', 'ultimate-multisite'), + 'date_expiration' => __('Dates', 'ultimate-multisite'), ]; return $columns; diff --git a/inc/list-tables/class-domain-list-table.php b/inc/list-tables/class-domain-list-table.php index 486fbc1a6..f81bc3e73 100644 --- a/inc/list-tables/class-domain-list-table.php +++ b/inc/list-tables/class-domain-list-table.php @@ -39,8 +39,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Domain', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Domains', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Domain', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Domains', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_domain'), @@ -86,8 +86,8 @@ public function column_domain($item): string { $html = "{$domain}"; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-domain', $url_atts), __('Edit', 'multisite-ultimate')), - 'delete' => sprintf('%s', __('Delete', 'multisite-ultimate'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-domain', $url_atts), __('Edit', 'ultimate-multisite')), + 'delete' => sprintf('%s', __('Delete', 'ultimate-multisite'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'ultimate-multisite')), ]; return $html . $this->row_actions($actions); @@ -103,7 +103,7 @@ public function column_domain($item): string { */ public function column_active($item) { - return $item->is_active() ? __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'); + return $item->is_active() ? __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'); } /** @@ -116,7 +116,7 @@ public function column_active($item) { */ public function column_primary_domain($item) { - return $item->is_primary_domain() ? __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'); + return $item->is_primary_domain() ? __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'); } /** @@ -129,7 +129,7 @@ public function column_primary_domain($item) { */ public function column_secure($item) { - return $item->is_secure() ? __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'); + return $item->is_secure() ? __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'); } /** @@ -159,13 +159,13 @@ public function get_columns() { $columns = [ 'cb' => '', - 'domain' => __('Domain', 'multisite-ultimate'), - 'stage' => __('Stage', 'multisite-ultimate'), - 'blog_id' => __('Site', 'multisite-ultimate'), - 'active' => __('Active', 'multisite-ultimate'), - 'primary_domain' => __('Primary', 'multisite-ultimate'), - 'secure' => __('HTTPS', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'domain' => __('Domain', 'ultimate-multisite'), + 'stage' => __('Stage', 'ultimate-multisite'), + 'blog_id' => __('Site', 'ultimate-multisite'), + 'active' => __('Active', 'ultimate-multisite'), + 'primary_domain' => __('Primary', 'ultimate-multisite'), + 'secure' => __('HTTPS', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -185,10 +185,10 @@ public function get_filters(): array { * Active */ 'active' => [ - 'label' => __('Active', 'multisite-ultimate'), + 'label' => __('Active', 'ultimate-multisite'), 'options' => [ - 0 => __('Inactive', 'multisite-ultimate'), - 1 => __('Active', 'multisite-ultimate'), + 0 => __('Inactive', 'ultimate-multisite'), + 1 => __('Active', 'ultimate-multisite'), ], ], @@ -196,10 +196,10 @@ public function get_filters(): array { * Primay */ 'primary_domain' => [ - 'label' => __('Is Primary', 'multisite-ultimate'), + 'label' => __('Is Primary', 'ultimate-multisite'), 'options' => [ - 0 => __('Not Primary Domain', 'multisite-ultimate'), - 1 => __('Primary Domain', 'multisite-ultimate'), + 0 => __('Not Primary Domain', 'ultimate-multisite'), + 1 => __('Primary Domain', 'ultimate-multisite'), ], ], @@ -207,10 +207,10 @@ public function get_filters(): array { * Secure (HTTPS) */ 'secure' => [ - 'label' => __('HTTPS', 'multisite-ultimate'), + 'label' => __('HTTPS', 'ultimate-multisite'), 'options' => [ - 0 => __('Non-HTTPS', 'multisite-ultimate'), - 1 => __('HTTPS', 'multisite-ultimate'), + 0 => __('Non-HTTPS', 'ultimate-multisite'), + 1 => __('HTTPS', 'ultimate-multisite'), ], ], @@ -218,7 +218,7 @@ public function get_filters(): array { * Stage */ 'stage' => [ - 'label' => __('Verification Stage', 'multisite-ultimate'), + 'label' => __('Verification Stage', 'ultimate-multisite'), 'options' => Domain_Stage::to_array(), ], diff --git a/inc/list-tables/class-email-list-table.php b/inc/list-tables/class-email-list-table.php index e0e821692..8b1b4148e 100644 --- a/inc/list-tables/class-email-list-table.php +++ b/inc/list-tables/class-email-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Email', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Emails', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Email', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Emails', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_network_admin_url('wp-ultimo-edit-email'), @@ -110,9 +110,9 @@ public function column_title($item): string { $content = wp_trim_words(wp_strip_all_tags($item->get_content()), 6); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Edit', 'multisite-ultimate')), - 'duplicate' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Duplicate', 'multisite-ultimate')), - 'send-test' => sprintf('%s', __('Send Test Email', 'multisite-ultimate'), wu_get_form_url('send_new_test', $url_atts), __('Send Test Email', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Edit', 'ultimate-multisite')), + 'duplicate' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-email', $url_atts), __('Duplicate', 'ultimate-multisite')), + 'send-test' => sprintf('%s', __('Send Test Email', 'ultimate-multisite'), wu_get_form_url('send_new_test', $url_atts), __('Send Test Email', 'ultimate-multisite')), ]; $slug = $item->get_slug(); @@ -120,10 +120,10 @@ public function column_title($item): string { $default_system_emails = wu_get_default_system_emails(); if (isset($default_system_emails[ $slug ])) { - $actions['reset'] = sprintf('%s', __('Reset', 'multisite-ultimate'), wu_get_form_url('reset_confirmation', $url_atts), __('Reset', 'multisite-ultimate')); + $actions['reset'] = sprintf('%s', __('Reset', 'ultimate-multisite'), wu_get_form_url('reset_confirmation', $url_atts), __('Reset', 'ultimate-multisite')); } - $actions['delete'] = sprintf('%s', __('Delete', 'multisite-ultimate'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'multisite-ultimate')); + $actions['delete'] = sprintf('%s', __('Delete', 'ultimate-multisite'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'ultimate-multisite')); return $title . $content . $this->row_actions($actions); } @@ -172,13 +172,13 @@ public function column_schedule($item) { if ($item->get_schedule_type() === 'hours') { $time = explode(':', (string) $item->get_send_hours()); // translators: %1$s is the number of hours, %2$s is the number of minutes. - $text = sprintf(__('%1$s hour(s) and %2$s minute(s) after the event.', 'multisite-ultimate'), $time[0], $time[1]); + $text = sprintf(__('%1$s hour(s) and %2$s minute(s) after the event.', 'ultimate-multisite'), $time[0], $time[1]); } elseif ($item->get_schedule_type() === 'days') { // translators: %s is the number of days. - $text = sprintf(__('%s day(s) after the event.', 'multisite-ultimate'), $item->get_send_days()); + $text = sprintf(__('%s day(s) after the event.', 'ultimate-multisite'), $item->get_send_days()); } } else { - $text = __('Sent immediately after the event.', 'multisite-ultimate'); + $text = __('Sent immediately after the event.', 'ultimate-multisite'); } return $text; @@ -194,11 +194,11 @@ public function get_columns() { $columns = [ 'cb' => '', - 'title' => __('Content', 'multisite-ultimate'), - 'slug' => __('Event', 'multisite-ultimate'), - 'event' => __('slug', 'multisite-ultimate'), - 'schedule' => __('When', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'title' => __('Content', 'ultimate-multisite'), + 'slug' => __('Event', 'ultimate-multisite'), + 'event' => __('slug', 'ultimate-multisite'), + 'schedule' => __('When', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -220,14 +220,14 @@ public function process_single_action(): void { $email = wu_get_email($email_id); if ( ! $email) { - WP_Ultimo()->notices->add(__('Email not found.', 'multisite-ultimate'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Email not found.', 'ultimate-multisite'), 'error', 'network-admin'); return; } $new_email = $email->duplicate(); // translators: the %s is the thing copied. - $new_name = sprintf(__('Copy of %s', 'multisite-ultimate'), $email->get_name()); + $new_name = sprintf(__('Copy of %s', 'ultimate-multisite'), $email->get_name()); $new_email->set_name($new_name); @@ -293,16 +293,16 @@ public function get_filters(): array { return [ 'filters' => [ 'type' => [ - 'label' => __('Email Type', 'multisite-ultimate'), + 'label' => __('Email Type', 'ultimate-multisite'), 'options' => [ - 'email_email' => __('Email', 'multisite-ultimate'), - 'broadcast_email' => __('Notices', 'multisite-ultimate'), + 'email_email' => __('Email', 'ultimate-multisite'), + 'broadcast_email' => __('Notices', 'ultimate-multisite'), ], ], ], 'date_filters' => [ 'date_created' => [ - 'label' => __('Date', 'multisite-ultimate'), + 'label' => __('Date', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -321,19 +321,19 @@ public function get_views() { 'all' => [ 'field' => 'target', 'url' => add_query_arg('target', 'all'), - 'label' => __('All Emails', 'multisite-ultimate'), + 'label' => __('All Emails', 'ultimate-multisite'), 'count' => 0, ], 'admin' => [ 'field' => 'target', 'url' => add_query_arg('target', 'admin'), - 'label' => __('Admin Emails', 'multisite-ultimate'), + 'label' => __('Admin Emails', 'ultimate-multisite'), 'count' => 0, ], 'customer' => [ 'field' => 'target', 'url' => add_query_arg('target', 'customer'), - 'label' => __('Customer Emails', 'multisite-ultimate'), + 'label' => __('Customer Emails', 'ultimate-multisite'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-event-list-table.php b/inc/list-tables/class-event-list-table.php index 21ed3a59f..d21413497 100644 --- a/inc/list-tables/class-event-list-table.php +++ b/inc/list-tables/class-event-list-table.php @@ -38,8 +38,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Event', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Events', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Event', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Events', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -93,7 +93,7 @@ public function column_initiator($item) {
{$system_text} - " . __('Automatically started', 'multisite-ultimate') . " + " . __('Automatically started', 'ultimate-multisite') . "
"; // phpcs:enable @@ -137,7 +137,7 @@ public function column_initiator($item) { "; } else { - $not_found = __('No initiator found', 'multisite-ultimate'); + $not_found = __('No initiator found', 'ultimate-multisite'); $html = "
  @@ -182,15 +182,15 @@ public function column_message($item): string { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-view-event', $url_atts), __('View', 'multisite-ultimate')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-view-event', $url_atts), __('View', 'ultimate-multisite')), 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; @@ -207,12 +207,12 @@ public function get_columns() { $columns = [ 'cb' => '', - 'initiator' => __('Initiator', 'multisite-ultimate'), - 'message' => __('Event Message', 'multisite-ultimate'), - 'slug' => __('SLug', 'multisite-ultimate'), - 'object_type' => __('Type', 'multisite-ultimate'), - 'date_created' => __('Created at', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'initiator' => __('Initiator', 'ultimate-multisite'), + 'message' => __('Event Message', 'ultimate-multisite'), + 'slug' => __('SLug', 'ultimate-multisite'), + 'object_type' => __('Type', 'ultimate-multisite'), + 'date_created' => __('Created at', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return apply_filters('wu_events_list_table_get_columns', $columns, $this); @@ -228,19 +228,19 @@ public function get_filters(): array { return [ 'filters' => [ 'severity' => [ - 'label' => __('Severity', 'multisite-ultimate'), + 'label' => __('Severity', 'ultimate-multisite'), 'options' => [ - Event::SEVERITY_SUCCESS => __('Success', 'multisite-ultimate'), - Event::SEVERITY_NEUTRAL => __('Neutral', 'multisite-ultimate'), - Event::SEVERITY_INFO => __('Info', 'multisite-ultimate'), - Event::SEVERITY_WARNING => __('Warning', 'multisite-ultimate'), - Event::SEVERITY_FATAL => __('Fatal', 'multisite-ultimate'), + Event::SEVERITY_SUCCESS => __('Success', 'ultimate-multisite'), + Event::SEVERITY_NEUTRAL => __('Neutral', 'ultimate-multisite'), + Event::SEVERITY_INFO => __('Info', 'ultimate-multisite'), + Event::SEVERITY_WARNING => __('Warning', 'ultimate-multisite'), + Event::SEVERITY_FATAL => __('Fatal', 'ultimate-multisite'), ], ], ], 'date_filters' => [ 'date_created' => [ - 'label' => __('Created At', 'multisite-ultimate'), + 'label' => __('Created At', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], ], diff --git a/inc/list-tables/class-inside-events-list-table.php b/inc/list-tables/class-inside-events-list-table.php index 3ed44ecab..22024644c 100644 --- a/inc/list-tables/class-inside-events-list-table.php +++ b/inc/list-tables/class-inside-events-list-table.php @@ -47,12 +47,12 @@ public function column_responsive($item): void { $first_row = [ 'id' => [ 'icon' => 'dashicons-wu-hash wu-align-middle wu-mr-1', - 'label' => __('Event ID', 'multisite-ultimate'), + 'label' => __('Event ID', 'ultimate-multisite'), 'value' => $item->get_id(), ], 'slug' => [ 'icon' => 'dashicons-wu-bookmark1 wu-align-middle wu-mr-1', - 'label' => __('Event Type', 'multisite-ultimate'), + 'label' => __('Event Type', 'ultimate-multisite'), 'value' => wu_slug_to_name($item->get_slug()), ], ]; @@ -60,7 +60,7 @@ public function column_responsive($item): void { $object_initiator = $item->get_initiator(); if ('system' === $object_initiator) { - $value = sprintf('%s', __('Automatically processed by Multisite Ultimate', 'multisite-ultimate')); + $value = sprintf('%s', __('Automatically processed by Multisite Ultimate', 'ultimate-multisite')); } elseif ('manual' === $object_initiator) { $avatar = get_avatar( $item->get_author_id(), @@ -96,7 +96,7 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - 'value' => sprintf(__('Processed %s', 'multisite-ultimate'), wu_human_time_diff($item->get_date_created(), '-1 day')), + 'value' => sprintf(__('Processed %s', 'ultimate-multisite'), wu_human_time_diff($item->get_date_created(), '-1 day')), ], ] ); diff --git a/inc/list-tables/class-line-item-list-table.php b/inc/list-tables/class-line-item-list-table.php index d8b1ba3d9..67ad8bb5c 100644 --- a/inc/list-tables/class-line-item-list-table.php +++ b/inc/list-tables/class-line-item-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Line Item', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Line Items', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Line Item', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Line Items', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -99,8 +99,8 @@ public function column_service($item) { ]; $actions = [ - 'edit' => sprintf('%s', __('Edit Item', 'multisite-ultimate'), wu_get_form_url('edit_line_item', $url_atts), __('Edit', 'multisite-ultimate')), - 'delete' => sprintf('%s', __('Delete Item', 'multisite-ultimate'), wu_get_form_url('delete_line_item', $url_atts), __('Delete', 'multisite-ultimate')), + 'edit' => sprintf('%s', __('Edit Item', 'ultimate-multisite'), wu_get_form_url('edit_line_item', $url_atts), __('Edit', 'ultimate-multisite')), + 'delete' => sprintf('%s', __('Delete Item', 'ultimate-multisite'), wu_get_form_url('delete_line_item', $url_atts), __('Delete', 'ultimate-multisite')), ]; $html = sprintf('%s', $item->get_title()); @@ -123,7 +123,7 @@ public function column_unit_price($item) { $html = wu_format_currency($item->get_unit_price()); // translators: %s is the quantity of items in the cart - $quantity = sprintf(__('Quantity: %s', 'multisite-ultimate'), $item->get_quantity()); + $quantity = sprintf(__('Quantity: %s', 'ultimate-multisite'), $item->get_quantity()); return $html . sprintf('%s', $quantity); } @@ -146,7 +146,7 @@ public function column_tax_total($item) { $tax_rate = $item->get_tax_rate() . '%'; } - $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'multisite-ultimate')) : __('No Taxes Applied', 'multisite-ultimate'); + $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'ultimate-multisite')) : __('No Taxes Applied', 'ultimate-multisite'); return $html . sprintf('%s (%s)', $tax_rate, $tax_label); } @@ -169,7 +169,7 @@ public function column_discounts_total($item) { $tax_rate = $item->get_discount_rate() . '%'; } - $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'multisite-ultimate')) : __('No discount', 'multisite-ultimate'); + $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'ultimate-multisite')) : __('No discount', 'ultimate-multisite'); return $html . sprintf('%s (%s)', $tax_rate, $tax_label); } @@ -209,12 +209,12 @@ public function column_subtotal($item) { public function get_columns() { $columns = [ - 'service' => __('Service', 'multisite-ultimate'), - 'unit_price' => __('Unit Price', 'multisite-ultimate'), - 'discounts_total' => __('discounts', 'multisite-ultimate'), - 'subtotal' => __('Subtotal', 'multisite-ultimate'), - 'tax_total' => __('Taxes', 'multisite-ultimate'), - 'total' => __('Total', 'multisite-ultimate'), + 'service' => __('Service', 'ultimate-multisite'), + 'unit_price' => __('Unit Price', 'ultimate-multisite'), + 'discounts_total' => __('discounts', 'ultimate-multisite'), + 'subtotal' => __('Subtotal', 'ultimate-multisite'), + 'tax_total' => __('Taxes', 'ultimate-multisite'), + 'total' => __('Total', 'ultimate-multisite'), ]; return $columns; diff --git a/inc/list-tables/class-membership-line-item-list-table.php b/inc/list-tables/class-membership-line-item-list-table.php index f38f279a4..2355dd8b3 100644 --- a/inc/list-tables/class-membership-line-item-list-table.php +++ b/inc/list-tables/class-membership-line-item-list-table.php @@ -78,16 +78,16 @@ public function column_responsive($item): void { [ 'url' => false, 'id' => 'not-found', - 'title' => __('Product not found', 'multisite-ultimate'), + 'title' => __('Product not found', 'ultimate-multisite'), 'status' => '', 'image' => $this->column_featured_image_id(new \WP_Ultimo\Models\Product()), ], [ 'quantity' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Quantity', 'multisite-ultimate'), + 'label' => __('Quantity', 'ultimate-multisite'), // translators: %d is a quantity number - 'value' => sprintf(__('x%d', 'multisite-ultimate'), $quantity), + 'value' => sprintf(__('x%d', 'ultimate-multisite'), $quantity), ], ] ); @@ -98,13 +98,13 @@ public function column_responsive($item): void { $first_row = [ 'quantity' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Quantity', 'multisite-ultimate'), + 'label' => __('Quantity', 'ultimate-multisite'), // translators: %d is a quantity number - 'value' => sprintf(__('x%d', 'multisite-ultimate'), $quantity), + 'value' => sprintf(__('x%d', 'ultimate-multisite'), $quantity), ], 'total' => [ 'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1', - 'label' => __('Price description', 'multisite-ultimate'), + 'label' => __('Price description', 'ultimate-multisite'), 'value' => $item->get_price_description(), ], ]; @@ -112,7 +112,7 @@ public function column_responsive($item): void { $second_row = [ 'slug' => [ 'icon' => 'dashicons-wu-bookmark1 wu-align-middle wu-mr-1', - 'label' => __('Product Slug', 'multisite-ultimate'), + 'label' => __('Product Slug', 'ultimate-multisite'), 'value' => $item->get_slug(), ], ]; @@ -122,7 +122,7 @@ public function column_responsive($item): void { 'wrapper_classes' => 'wubox', 'icon' => 'dashicons-wu-edit1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Upgrade or Downgrade', 'multisite-ultimate'), + 'value' => __('Upgrade or Downgrade', 'ultimate-multisite'), 'url' => wu_get_form_url( 'change_membership_plan', [ @@ -136,7 +136,7 @@ public function column_responsive($item): void { 'wrapper_classes' => 'wu-text-red-500 wubox', 'icon' => 'dashicons-wu-trash-2 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Remove', 'multisite-ultimate'), + 'value' => __('Remove', 'ultimate-multisite'), 'url' => wu_get_form_url( 'remove_membership_product', [ diff --git a/inc/list-tables/class-membership-list-table-widget.php b/inc/list-tables/class-membership-list-table-widget.php index 1a15044a5..fc10b1b96 100644 --- a/inc/list-tables/class-membership-list-table-widget.php +++ b/inc/list-tables/class-membership-list-table-widget.php @@ -38,8 +38,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Membership', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Memberships', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Membership', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Memberships', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -126,8 +126,8 @@ public function column_hash($item): string { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'multisite-ultimate')), - 'delete' => sprintf('%s', '', __('Delete', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'ultimate-multisite')), + 'delete' => sprintf('%s', '', __('Delete', 'ultimate-multisite')), ]; $html = "{$code}"; @@ -163,7 +163,7 @@ public function column_status($item) { public function column_amount($item) { if (empty($item->get_amount())) { - return __('Free', 'multisite-ultimate'); + return __('Free', 'ultimate-multisite'); } $amount = wu_format_currency($item->get_amount(), $item->get_currency()); @@ -173,7 +173,7 @@ public function column_amount($item) { $message = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $duration, 'multisite-ultimate'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $duration, 'ultimate-multisite'), // phpcs:ignore $duration, $item->get_duration_unit() ); @@ -181,14 +181,14 @@ public function column_amount($item) { if ( ! $item->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'multisite-ultimate'), + _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'ultimate-multisite'), $item->get_billing_cycles() ); $message .= ' ' . $billing_cycles_message; } } else { - $message = __('one time payment', 'multisite-ultimate'); + $message = __('one time payment', 'ultimate-multisite'); } return sprintf('%s
%s', $amount, $message); @@ -207,7 +207,7 @@ public function column_customer($item) { $customer = $item->get_customer(); if ( ! $customer) { - $not_found = __('No customer found', 'multisite-ultimate'); + $not_found = __('No customer found', 'ultimate-multisite'); return "
  @@ -259,10 +259,10 @@ public function column_customer($item) { public function get_columns() { $columns = [ - 'hash' => __('Ref.', 'multisite-ultimate'), - 'status' => __('Status', 'multisite-ultimate'), - 'customer' => __('Customer', 'multisite-ultimate'), - 'amount' => __('Price', 'multisite-ultimate'), + 'hash' => __('Ref.', 'ultimate-multisite'), + 'status' => __('Status', 'ultimate-multisite'), + 'customer' => __('Customer', 'ultimate-multisite'), + 'amount' => __('Price', 'ultimate-multisite'), ]; return $columns; diff --git a/inc/list-tables/class-membership-list-table.php b/inc/list-tables/class-membership-list-table.php index 2fafc203a..48f9da4cd 100644 --- a/inc/list-tables/class-membership-list-table.php +++ b/inc/list-tables/class-membership-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Membership', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Memberships', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Membership', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Memberships', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_membership'), @@ -79,15 +79,15 @@ public function column_hash($item) { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-membership', $url_atts), __('Edit', 'ultimate-multisite')), 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; @@ -126,7 +126,7 @@ public function column_status($item) { public function column_amount($item) { if (empty($item->get_amount()) && empty($item->get_initial_amount())) { - return __('Free', 'multisite-ultimate'); + return __('Free', 'ultimate-multisite'); } if ($item->is_recurring()) { @@ -136,7 +136,7 @@ public function column_amount($item) { $message = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $duration, 'multisite-ultimate'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $duration, 'ultimate-multisite'), // phpcs:ignore $duration, $item->get_duration_unit() ); @@ -144,7 +144,7 @@ public function column_amount($item) { if ( ! $item->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'multisite-ultimate'), + _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'ultimate-multisite'), $item->get_billing_cycles() ); @@ -153,7 +153,7 @@ public function column_amount($item) { } else { $amount = wu_format_currency($item->get_initial_amount(), $item->get_currency()); - $message = __('one time payment', 'multisite-ultimate'); + $message = __('one time payment', 'ultimate-multisite'); } return sprintf('%s
%s', $amount, $message); @@ -168,19 +168,19 @@ public function column_amount($item) { public function get_columns() { ob_start(); - wu_tooltip(__('Reference Code', 'multisite-ultimate'), 'dashicons-wu-hash wu-text-xs'); + wu_tooltip(__('Reference Code', 'ultimate-multisite'), 'dashicons-wu-hash wu-text-xs'); $realtooltip = ob_end_clean(); $columns = [ 'cb' => '', 'hash' => $realtooltip, - 'status' => __('Status', 'multisite-ultimate'), - 'customer' => __('Customer', 'multisite-ultimate'), - 'product' => __('Product', 'multisite-ultimate'), - 'amount' => __('Price', 'multisite-ultimate'), - 'date_created' => __('Created at', 'multisite-ultimate'), - 'date_expiration' => __('Expiration', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'status' => __('Status', 'ultimate-multisite'), + 'customer' => __('Customer', 'ultimate-multisite'), + 'product' => __('Product', 'ultimate-multisite'), + 'amount' => __('Price', 'ultimate-multisite'), + 'date_created' => __('Created at', 'ultimate-multisite'), + 'date_expiration' => __('Expiration', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -199,11 +199,11 @@ public function column_date_expiration($item) { $date = $item->get_date_expiration(); if (empty($date) || '0000-00-00 00:00:00' === $date) { - return sprintf('%s
%s', __('Lifetime', 'multisite-ultimate'), __('It never expires', 'multisite-ultimate')); + return sprintf('%s
%s', __('Lifetime', 'ultimate-multisite'), __('It never expires', 'ultimate-multisite')); } if ( ! wu_validate_date($date)) { - return __('--', 'multisite-ultimate'); + return __('--', 'ultimate-multisite'); } $time = strtotime(get_date_from_gmt($date)); @@ -211,7 +211,7 @@ public function column_date_expiration($item) { $formatted_value = date_i18n(get_option('date_format'), $time); // translators: %s is a relative past date. - $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'multisite-ultimate') : __('In %s', 'multisite-ultimate'); + $placeholder = wu_get_current_time('timestamp') > $time ? __('%s ago', 'ultimate-multisite') : __('In %s', 'ultimate-multisite'); $text = $formatted_value . sprintf('
%s', sprintf($placeholder, human_time_diff($time))); @@ -234,7 +234,7 @@ public function get_filters(): array { * Status */ 'status' => [ - 'label' => __('Status', 'multisite-ultimate'), + 'label' => __('Status', 'ultimate-multisite'), 'options' => $membership_status::to_array(), ], @@ -245,7 +245,7 @@ public function get_filters(): array { * Created At */ 'date_created' => [ - 'label' => __('Created At', 'multisite-ultimate'), + 'label' => __('Created At', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], @@ -253,7 +253,7 @@ public function get_filters(): array { * Expiration Date */ 'date_expiration' => [ - 'label' => __('Expiration Date', 'multisite-ultimate'), + 'label' => __('Expiration Date', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], @@ -261,7 +261,7 @@ public function get_filters(): array { * Renewal Date */ 'date_renewed' => [ - 'label' => __('Renewal Date', 'multisite-ultimate'), + 'label' => __('Renewal Date', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -280,43 +280,43 @@ public function get_views() { 'all' => [ 'field' => 'status', 'url' => add_query_arg('status', 'all'), - 'label' => __('All Memberships', 'multisite-ultimate'), + 'label' => __('All Memberships', 'ultimate-multisite'), 'count' => 0, ], 'active' => [ 'field' => 'status', 'url' => add_query_arg('status', 'active'), - 'label' => __('Active', 'multisite-ultimate'), + 'label' => __('Active', 'ultimate-multisite'), 'count' => 0, ], 'trialing' => [ 'field' => 'status', 'url' => add_query_arg('status', 'trialing'), - 'label' => __('Trialing', 'multisite-ultimate'), + 'label' => __('Trialing', 'ultimate-multisite'), 'count' => 0, ], 'pending' => [ 'field' => 'status', 'url' => add_query_arg('status', 'pending'), - 'label' => __('Pending', 'multisite-ultimate'), + 'label' => __('Pending', 'ultimate-multisite'), 'count' => 0, ], 'on-hold' => [ 'field' => 'status', 'url' => add_query_arg('status', 'on-hold'), - 'label' => __('On Hold', 'multisite-ultimate'), + 'label' => __('On Hold', 'ultimate-multisite'), 'count' => 0, ], 'expired' => [ 'field' => 'status', 'url' => add_query_arg('status', 'expired'), - 'label' => __('Expired', 'multisite-ultimate'), + 'label' => __('Expired', 'ultimate-multisite'), 'count' => 0, ], 'cancelled' => [ 'field' => 'status', 'url' => add_query_arg('status', 'cancelled'), - 'label' => __('Cancelled', 'multisite-ultimate'), + 'label' => __('Cancelled', 'ultimate-multisite'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-memberships-site-list-table.php b/inc/list-tables/class-memberships-site-list-table.php index 16e59524c..4ef1ac132 100644 --- a/inc/list-tables/class-memberships-site-list-table.php +++ b/inc/list-tables/class-memberships-site-list-table.php @@ -62,14 +62,14 @@ public function column_responsive($item): void { [ 'link' => [ 'icon' => 'dashicons-wu-link1 wu-align-middle wu-mr-1', - 'label' => __('Visit Site', 'multisite-ultimate'), - 'value' => __('Homepage', 'multisite-ultimate'), + 'label' => __('Visit Site', 'ultimate-multisite'), + 'value' => __('Homepage', 'ultimate-multisite'), 'url' => $item->get_active_site_url(), ], 'dashboard' => [ 'icon' => 'dashicons-wu-browser wu-align-middle wu-mr-1', - 'label' => __('Go to the Dashboard', 'multisite-ultimate'), - 'value' => __('Dashboard', 'multisite-ultimate'), + 'label' => __('Go to the Dashboard', 'ultimate-multisite'), + 'value' => __('Dashboard', 'ultimate-multisite'), 'url' => get_admin_url($item->get_id()), ], ], @@ -78,9 +78,9 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', 'value' => $item->get_type() === 'pending' ? - __('Not Available', 'multisite-ultimate') : + __('Not Available', 'ultimate-multisite') : // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - sprintf(__('Created %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), + sprintf(__('Created %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), ], ] ); diff --git a/inc/list-tables/class-payment-line-item-list-table.php b/inc/list-tables/class-payment-line-item-list-table.php index 59e2258a4..4bda82f64 100644 --- a/inc/list-tables/class-payment-line-item-list-table.php +++ b/inc/list-tables/class-payment-line-item-list-table.php @@ -49,13 +49,13 @@ public function column_responsive($item): void { $first_row = [ 'quantity' => [ 'icon' => 'dashicons-wu-package wu-align-middle wu-mr-1', - 'label' => __('Quantity', 'multisite-ultimate'), + 'label' => __('Quantity', 'ultimate-multisite'), // translators: %d is a quantity number - 'value' => sprintf(__('x%d', 'multisite-ultimate'), $item->get_quantity()), + 'value' => sprintf(__('x%d', 'ultimate-multisite'), $item->get_quantity()), ], 'unit_price' => [ 'icon' => 'dashicons-wu-info1 wu-align-middle wu-mr-1', - 'label' => __('Unit Price', 'multisite-ultimate'), + 'label' => __('Unit Price', 'ultimate-multisite'), 'value' => wu_format_currency($item->get_unit_price()), ], ]; @@ -71,7 +71,7 @@ public function column_responsive($item): void { 'wrapper_classes' => 'wubox', 'icon' => 'dashicons-wu-edit1 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Edit', 'multisite-ultimate'), + 'value' => __('Edit', 'ultimate-multisite'), 'url' => wu_get_form_url('edit_line_item', $url_atts), ]; @@ -79,7 +79,7 @@ public function column_responsive($item): void { 'wrapper_classes' => 'wu-text-red-500 wubox', 'icon' => 'dashicons-wu-trash-2 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Remove', 'multisite-ultimate'), + 'value' => __('Remove', 'ultimate-multisite'), 'url' => wu_get_form_url('delete_line_item', $url_atts), ]; @@ -91,7 +91,7 @@ public function column_responsive($item): void { $tax_rate = $item->get_discount_rate() . '%'; } - $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'multisite-ultimate')) : __('No discount', 'multisite-ultimate'); + $tax_label = $item->get_discount_rate() ? ($item->get_discount_label() ?: __('Discount', 'ultimate-multisite')) : __('No discount', 'ultimate-multisite'); $tooltip = sprintf('%s (%s)', $tax_rate, $tax_label); @@ -99,7 +99,7 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-percent wu-align-middle wu-mr-1', 'label' => $tooltip, // translators: %s is a currency amount - 'value' => sprintf(__('Discounts: %s', 'multisite-ultimate'), wu_format_currency($item->get_discount_total())), + 'value' => sprintf(__('Discounts: %s', 'ultimate-multisite'), wu_format_currency($item->get_discount_total())), ]; } @@ -107,7 +107,7 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-info1 wu-align-middle wu-mr-1', 'label' => '', /* translators: %s is a currency amount */ - 'value' => sprintf(__('Subtotal: %s', 'multisite-ultimate'), wu_format_currency($item->get_subtotal())), + 'value' => sprintf(__('Subtotal: %s', 'ultimate-multisite'), wu_format_currency($item->get_subtotal())), ]; /* @@ -118,7 +118,7 @@ public function column_responsive($item): void { $tax_rate = $item->get_tax_rate() . '%'; } - $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'multisite-ultimate')) : __('No Taxes Applied', 'multisite-ultimate'); + $tax_label = $item->get_tax_rate() ? ($item->get_tax_label() ?: __('Tax Applied', 'ultimate-multisite')) : __('No Taxes Applied', 'ultimate-multisite'); $tooltip = sprintf('%s (%s)', $tax_rate, $tax_label); @@ -126,13 +126,13 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-percent wu-align-middle wu-mr-1', 'label' => $tooltip, // translators: %s is a currency amount - 'value' => sprintf(__('Taxes: %s', 'multisite-ultimate'), wu_format_currency($item->get_tax_total())), + 'value' => sprintf(__('Taxes: %s', 'ultimate-multisite'), wu_format_currency($item->get_tax_total())), ]; } $first_row['description'] = [ 'icon' => 'dashicons-wu-file-text wu-align-middle wu-mr-1', - 'label' => __('Item Description', 'multisite-ultimate'), + 'label' => __('Item Description', 'ultimate-multisite'), 'value' => $item->get_description(), ]; diff --git a/inc/list-tables/class-payment-list-table-widget.php b/inc/list-tables/class-payment-list-table-widget.php index d659bc19b..dda32f956 100644 --- a/inc/list-tables/class-payment-list-table-widget.php +++ b/inc/list-tables/class-payment-list-table-widget.php @@ -38,8 +38,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Payment', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Payments', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Payment', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Payments', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? ] ); @@ -112,8 +112,8 @@ public function column_hash($item): string { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'multisite-ultimate')), - 'delete' => sprintf('%s', '', __('Delete', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'ultimate-multisite')), + 'delete' => sprintf('%s', '', __('Delete', 'ultimate-multisite')), ]; $html = "{$code}"; @@ -152,7 +152,7 @@ public function column_customer($item) { $customer = $item->get_customer(); if ( ! $customer) { - $not_found = __('No customer found', 'multisite-ultimate'); + $not_found = __('No customer found', 'ultimate-multisite'); return "
  @@ -216,10 +216,10 @@ public function column_total($item): string { public function get_columns() { $columns = [ - 'hash' => __('Ref.', 'multisite-ultimate'), - 'customer' => __('Customer', 'multisite-ultimate'), - 'total' => __('Total', 'multisite-ultimate'), - 'date_created' => __('Created at', 'multisite-ultimate'), + 'hash' => __('Ref.', 'ultimate-multisite'), + 'customer' => __('Customer', 'ultimate-multisite'), + 'total' => __('Total', 'ultimate-multisite'), + 'date_created' => __('Created at', 'ultimate-multisite'), ]; return $columns; diff --git a/inc/list-tables/class-payment-list-table.php b/inc/list-tables/class-payment-list-table.php index 18a2042ac..f0ddd7d11 100644 --- a/inc/list-tables/class-payment-list-table.php +++ b/inc/list-tables/class-payment-list-table.php @@ -38,8 +38,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Payment', 'multisite-ultimate'), - 'plural' => __('Payments', 'multisite-ultimate'), + 'singular' => __('Payment', 'ultimate-multisite'), + 'plural' => __('Payments', 'ultimate-multisite'), 'ajax' => true, 'add_new' => [ 'url' => wu_get_form_url('add_new_payment'), @@ -82,10 +82,10 @@ public function column_hash($item) { $code = sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), $item->get_hash()); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-payment', $url_atts), __('Edit', 'ultimate-multisite')), 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', [ @@ -93,7 +93,7 @@ public function column_hash($item) { 'id' => $item->get_id(), ] ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; @@ -132,7 +132,7 @@ public function column_product($item) { $product = $item->get_product(); if ( ! $product) { - return __('No product found', 'multisite-ultimate'); + return __('No product found', 'ultimate-multisite'); } $url_atts = [ @@ -140,7 +140,7 @@ public function column_product($item) { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('View', 'multisite-ultimate')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('View', 'ultimate-multisite')), ]; $html = $product->get_name(); @@ -172,18 +172,18 @@ public function column_total($item) { public function get_columns() { ob_start(); - wu_tooltip(__('Reference Code', 'multisite-ultimate'), 'dashicons-wu-hash wu-text-xs'); + wu_tooltip(__('Reference Code', 'ultimate-multisite'), 'dashicons-wu-hash wu-text-xs'); $realtooltip = ob_end_clean(); $columns = [ 'cb' => '', 'hash' => $realtooltip, - 'status' => __('Status', 'multisite-ultimate'), - 'customer' => __('Customer', 'multisite-ultimate'), - 'membership' => __('Membership', 'multisite-ultimate'), - 'total' => __('Total', 'multisite-ultimate'), - 'date_created' => __('Created at', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'status' => __('Status', 'ultimate-multisite'), + 'customer' => __('Customer', 'ultimate-multisite'), + 'membership' => __('Membership', 'ultimate-multisite'), + 'total' => __('Total', 'ultimate-multisite'), + 'date_created' => __('Created at', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -203,13 +203,13 @@ public function get_filters(): array { * Status */ 'status' => [ - 'label' => __('Status', 'multisite-ultimate'), + 'label' => __('Status', 'ultimate-multisite'), 'options' => [ - 'pending' => __('Pending', 'multisite-ultimate'), - 'completed' => __('Completed', 'multisite-ultimate'), - 'refund' => __('Refund', 'multisite-ultimate'), - 'partial' => __('Partial', 'multisite-ultimate'), - 'failed' => __('Failed', 'multisite-ultimate'), + 'pending' => __('Pending', 'ultimate-multisite'), + 'completed' => __('Completed', 'ultimate-multisite'), + 'refund' => __('Refund', 'ultimate-multisite'), + 'partial' => __('Partial', 'ultimate-multisite'), + 'failed' => __('Failed', 'ultimate-multisite'), ], ], @@ -217,12 +217,12 @@ public function get_filters(): array { * Gateway */ 'gateway' => [ - 'label' => __('Gateway', 'multisite-ultimate'), + 'label' => __('Gateway', 'ultimate-multisite'), 'options' => [ - 'free' => __('Free', 'multisite-ultimate'), - 'manual' => __('Manual', 'multisite-ultimate'), - 'paypal' => __('Paypal', 'multisite-ultimate'), - 'stripe' => __('Stripe', 'multisite-ultimate'), + 'free' => __('Free', 'ultimate-multisite'), + 'manual' => __('Manual', 'ultimate-multisite'), + 'paypal' => __('Paypal', 'ultimate-multisite'), + 'stripe' => __('Stripe', 'ultimate-multisite'), ], ], ], @@ -232,7 +232,7 @@ public function get_filters(): array { * Created At */ 'date_created' => [ - 'label' => __('Created At', 'multisite-ultimate'), + 'label' => __('Created At', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -251,37 +251,37 @@ public function get_views() { 'all' => [ 'field' => 'status', 'url' => add_query_arg('status', 'all'), - 'label' => __('All Payments', 'multisite-ultimate'), + 'label' => __('All Payments', 'ultimate-multisite'), 'count' => 0, ], Payment_Status::COMPLETED => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::COMPLETED), - 'label' => __('Completed', 'multisite-ultimate'), + 'label' => __('Completed', 'ultimate-multisite'), 'count' => 0, ], Payment_Status::PENDING => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::PENDING), - 'label' => __('Pending', 'multisite-ultimate'), + 'label' => __('Pending', 'ultimate-multisite'), 'count' => 0, ], Payment_Status::PARTIAL_REFUND => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::PARTIAL_REFUND), - 'label' => __('Partially Refunded', 'multisite-ultimate'), + 'label' => __('Partially Refunded', 'ultimate-multisite'), 'count' => 0, ], Payment_Status::REFUND => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::REFUND), - 'label' => __('Refunded', 'multisite-ultimate'), + 'label' => __('Refunded', 'ultimate-multisite'), 'count' => 0, ], Payment_Status::FAILED => [ 'field' => 'status', 'url' => add_query_arg('status', Payment_Status::FAILED), - 'label' => __('Failed', 'multisite-ultimate'), + 'label' => __('Failed', 'ultimate-multisite'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-product-list-table.php b/inc/list-tables/class-product-list-table.php index b14388678..a29fa8c91 100644 --- a/inc/list-tables/class-product-list-table.php +++ b/inc/list-tables/class-product-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Product', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Products', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Product', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Products', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_network_admin_url('wp-ultimo-edit-product'), @@ -68,7 +68,7 @@ public function column_name($item) { $title = "$title"; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('Edit', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-product', $url_atts), __('Edit', 'ultimate-multisite')), 'duplicate' => sprintf( '%s', wu_network_admin_url( @@ -78,9 +78,9 @@ public function column_name($item) { 'id' => $item->get_id(), ] ), - __('Duplicate', 'multisite-ultimate') + __('Duplicate', 'ultimate-multisite') ), - 'delete' => sprintf('%s', __('Delete', 'multisite-ultimate'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'multisite-ultimate')), + 'delete' => sprintf('%s', __('Delete', 'ultimate-multisite'), wu_get_form_url('delete_modal', $url_atts), __('Delete', 'ultimate-multisite')), ]; return $title . $this->row_actions($actions); @@ -129,11 +129,11 @@ public function column_slug($item) { public function column_amount($item) { if ($item->get_pricing_type() === 'contact_us') { - return __('None', 'multisite-ultimate') . sprintf('
%s', __('Requires contact', 'multisite-ultimate')); + return __('None', 'ultimate-multisite') . sprintf('
%s', __('Requires contact', 'ultimate-multisite')); } if (empty($item->get_amount())) { - return __('Free', 'multisite-ultimate'); + return __('Free', 'ultimate-multisite'); } $amount = wu_format_currency($item->get_amount(), $item->get_currency()); @@ -143,7 +143,7 @@ public function column_amount($item) { $message = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $duration, 'multisite-ultimate'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $duration, 'ultimate-multisite'), // phpcs:ignore $duration, $item->get_duration_unit() ); @@ -151,14 +151,14 @@ public function column_amount($item) { if ( ! $item->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'multisite-ultimate'), + _n('for %s cycle', 'for %s cycles', $item->get_billing_cycles(), 'ultimate-multisite'), $item->get_billing_cycles() ); $message .= ' ' . $billing_cycles_message; } } else { - $message = __('one time payment', 'multisite-ultimate'); + $message = __('one time payment', 'ultimate-multisite'); } return sprintf('%s
%s', $amount, $message); @@ -175,11 +175,11 @@ public function column_amount($item) { public function column_setup_fee($item) { if ($item->get_pricing_type() === 'contact_us') { - return __('None', 'multisite-ultimate') . sprintf('
%s', __('Requires contact', 'multisite-ultimate')); + return __('None', 'ultimate-multisite') . sprintf('
%s', __('Requires contact', 'ultimate-multisite')); } if ( ! $item->has_setup_fee()) { - return __('No Setup Fee', 'multisite-ultimate'); + return __('No Setup Fee', 'ultimate-multisite'); } return wu_format_currency($item->get_setup_fee(), $item->get_currency()); @@ -201,7 +201,7 @@ public function process_single_action(): void { $product = wu_get_product($product); if ( ! $product) { - WP_Ultimo()->notices->add(__('Product not found.', 'multisite-ultimate'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Product not found.', 'ultimate-multisite'), 'error', 'network-admin'); return; } @@ -209,7 +209,7 @@ public function process_single_action(): void { $new_product = $product->duplicate(); // translators: the %s is the thing copied. - $new_name = sprintf(__('Copy of %s', 'multisite-ultimate'), $product->get_name()); + $new_name = sprintf(__('Copy of %s', 'ultimate-multisite'), $product->get_name()); $new_product->set_name($new_name); @@ -250,12 +250,12 @@ public function get_columns() { $columns = [ 'cb' => '', 'featured_image_id' => '', - 'name' => __('Name', 'multisite-ultimate'), - 'type' => __('Type', 'multisite-ultimate'), - 'slug' => __('Slug', 'multisite-ultimate'), - 'amount' => __('Price', 'multisite-ultimate'), - 'setup_fee' => __('Setup Fee', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'name' => __('Name', 'ultimate-multisite'), + 'type' => __('Type', 'ultimate-multisite'), + 'slug' => __('Slug', 'ultimate-multisite'), + 'amount' => __('Price', 'ultimate-multisite'), + 'setup_fee' => __('Setup Fee', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -304,25 +304,25 @@ public function get_views() { 'all' => [ 'field' => 'type', 'url' => add_query_arg('type', 'all'), - 'label' => __('All Products', 'multisite-ultimate'), + 'label' => __('All Products', 'ultimate-multisite'), 'count' => 0, ], 'plan' => [ 'field' => 'type', 'url' => add_query_arg('type', 'plan'), - 'label' => __('Plans', 'multisite-ultimate'), + 'label' => __('Plans', 'ultimate-multisite'), 'count' => 0, ], 'package' => [ 'field' => 'type', 'url' => add_query_arg('type', 'package'), - 'label' => __('Packages', 'multisite-ultimate'), + 'label' => __('Packages', 'ultimate-multisite'), 'count' => 0, ], 'service' => [ 'field' => 'type', 'url' => add_query_arg('type', 'service'), - 'label' => __('Services', 'multisite-ultimate'), + 'label' => __('Services', 'ultimate-multisite'), 'count' => 0, ], ]; diff --git a/inc/list-tables/class-site-customer-list-table.php b/inc/list-tables/class-site-customer-list-table.php index f8844389a..33b6e13c7 100644 --- a/inc/list-tables/class-site-customer-list-table.php +++ b/inc/list-tables/class-site-customer-list-table.php @@ -57,10 +57,10 @@ public function get_columns() { public function column_responsive($item): void { // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - $last_login = sprintf(__('Last login %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_last_login()))); + $last_login = sprintf(__('Last login %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_last_login()))); if ($item->is_online()) { - $last_login = '' . __('Online', 'multisite-ultimate'); + $last_login = '' . __('Online', 'ultimate-multisite'); } wu_responsive_table_row( @@ -88,21 +88,21 @@ public function column_responsive($item): void { [ 'total' => [ 'icon' => 'dashicons-wu-at-sign wu-align-middle wu-mr-1', - 'label' => __('Email Address', 'multisite-ultimate'), + 'label' => __('Email Address', 'ultimate-multisite'), 'value' => $item->get_email_address(), ], ], [ 'date_expiration' => [ 'icon' => $item->is_online() === false ? 'dashicons-wu-calendar1 wu-align-middle wu-mr-1' : '', - 'label' => __('Last Login', 'multisite-ultimate'), + 'label' => __('Last Login', 'ultimate-multisite'), 'value' => $last_login, ], 'date_created' => [ 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - 'value' => sprintf(__('Registered %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), + 'value' => sprintf(__('Registered %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_date_registered()))), ], ] ); diff --git a/inc/list-tables/class-site-list-table.php b/inc/list-tables/class-site-list-table.php index cfabe3968..55cb7ffb3 100644 --- a/inc/list-tables/class-site-list-table.php +++ b/inc/list-tables/class-site-list-table.php @@ -35,14 +35,14 @@ class Site_List_Table extends Base_List_Table { public function __construct() { $this->modes = [ - 'grid' => __('Grid View', 'multisite-ultimate'), - 'list' => __('List View', 'multisite-ultimate'), + 'grid' => __('Grid View', 'ultimate-multisite'), + 'list' => __('List View', 'ultimate-multisite'), ]; parent::__construct( [ - 'singular' => __('Site', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Sites', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Site', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Sites', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_site'), @@ -129,24 +129,24 @@ public function column_path($item): string { $title = "$title"; $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-site', $url_atts), __('Edit', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-site', $url_atts), __('Edit', 'ultimate-multisite')), 'duplicate' => sprintf( '%s', - __('Duplicate Site', 'multisite-ultimate'), + __('Duplicate Site', 'ultimate-multisite'), wu_get_form_url( 'add_new_site', $url_atts ), - __('Duplicate', 'multisite-ultimate') + __('Duplicate', 'ultimate-multisite') ), 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; @@ -154,16 +154,16 @@ public function column_path($item): string { $actions = [ 'duplicate' => sprintf( '%s', - __('Publish Site', 'multisite-ultimate'), + __('Publish Site', 'ultimate-multisite'), wu_get_form_url( 'publish_pending_site', ['membership_id' => $item->get_membership_id()] ), - __('Publish', 'multisite-ultimate') + __('Publish', 'ultimate-multisite') ), 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', [ @@ -180,7 +180,7 @@ public function column_path($item): string { ), ] ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; } @@ -253,7 +253,7 @@ public function column_domains($item): string { ]; $actions = [ - 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-domains', $url_atts), __('View', 'multisite-ultimate')), + 'view' => sprintf('%s', wu_network_admin_url('wp-ultimo-domains', $url_atts), __('View', 'ultimate-multisite')), ]; return $domain . $this->row_actions($actions); @@ -270,12 +270,12 @@ public function get_columns() { $columns = [ 'cb' => '', 'featured_image_id' => '', - 'path' => __('URL', 'multisite-ultimate'), - 'type' => __('Type', 'multisite-ultimate'), - 'customer' => __('Customer', 'multisite-ultimate'), - 'membership' => __('Membership', 'multisite-ultimate'), - 'domains' => __('Domains', 'multisite-ultimate'), - 'blog_id' => __('ID', 'multisite-ultimate'), + 'path' => __('URL', 'ultimate-multisite'), + 'type' => __('Type', 'ultimate-multisite'), + 'customer' => __('Customer', 'ultimate-multisite'), + 'membership' => __('Membership', 'ultimate-multisite'), + 'domains' => __('Domains', 'ultimate-multisite'), + 'blog_id' => __('ID', 'ultimate-multisite'), ]; return $columns; @@ -310,20 +310,20 @@ public function get_filters(): array { return [ 'filters' => [ 'vip' => [ - 'label' => __('VIP Status', 'multisite-ultimate'), + 'label' => __('VIP Status', 'ultimate-multisite'), 'options' => [ - '0' => __('Regular Sites', 'multisite-ultimate'), - '1' => __('VIP Sites', 'multisite-ultimate'), + '0' => __('Regular Sites', 'ultimate-multisite'), + '1' => __('VIP Sites', 'ultimate-multisite'), ], ], ], 'date_filters' => [ 'last_login' => [ - 'label' => __('Last Login', 'multisite-ultimate'), + 'label' => __('Last Login', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], 'date_registered' => [ - 'label' => __('Site Since', 'multisite-ultimate'), + 'label' => __('Site Since', 'ultimate-multisite'), 'options' => $this->get_default_date_filter_options(), ], ], @@ -342,25 +342,25 @@ public function get_views() { 'all' => [ 'field' => 'type', 'url' => add_query_arg('type', 'all'), - 'label' => __('All Sites', 'multisite-ultimate'), + 'label' => __('All Sites', 'ultimate-multisite'), 'count' => 0, ], 'customer_owned' => [ 'field' => 'type', 'url' => add_query_arg('type', 'customer_owned'), - 'label' => __('Customer-Owned', 'multisite-ultimate'), + 'label' => __('Customer-Owned', 'ultimate-multisite'), 'count' => 0, ], 'site_template' => [ 'field' => 'type', 'url' => add_query_arg('type', 'site_template'), - 'label' => __('Templates', 'multisite-ultimate'), + 'label' => __('Templates', 'ultimate-multisite'), 'count' => 0, ], 'pending' => [ 'field' => 'type', 'url' => add_query_arg('type', 'pending'), - 'label' => __('Pending', 'multisite-ultimate'), + 'label' => __('Pending', 'ultimate-multisite'), 'count' => 0, ], ]; @@ -374,10 +374,10 @@ public function get_views() { public function get_bulk_actions() { $actions = [ - 'screenshot' => __('Take Screenshot', 'multisite-ultimate'), + 'screenshot' => __('Take Screenshot', 'ultimate-multisite'), ]; - $actions[ wu_request('type', 'all') === 'pending' ? 'delete-pending' : 'delete' ] = __('Delete', 'multisite-ultimate'); + $actions[ wu_request('type', 'all') === 'pending' ? 'delete-pending' : 'delete' ] = __('Delete', 'ultimate-multisite'); return $actions; } @@ -398,7 +398,7 @@ public function process_single_action(): void { $site = wu_get_site($site_id); if ( ! $site) { - WP_Ultimo()->notices->add(__('Site not found.', 'multisite-ultimate'), 'error', 'network-admin'); + WP_Ultimo()->notices->add(__('Site not found.', 'ultimate-multisite'), 'error', 'network-admin'); return; } diff --git a/inc/list-tables/class-sites-domain-list-table.php b/inc/list-tables/class-sites-domain-list-table.php index 6cc290cb5..43758e645 100644 --- a/inc/list-tables/class-sites-domain-list-table.php +++ b/inc/list-tables/class-sites-domain-list-table.php @@ -60,13 +60,13 @@ public function column_responsive($item): void { 'primary' => [ 'icon' => $item->is_primary_domain() ? 'dashicons-wu-filter_1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-plus-square wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_primary_domain() ? __('Primary', 'multisite-ultimate') : __('Alias', 'multisite-ultimate'), + 'value' => $item->is_primary_domain() ? __('Primary', 'ultimate-multisite') : __('Alias', 'ultimate-multisite'), ], 'secure' => [ 'wrapper_classes' => $item->is_secure() ? 'wu-text-green-500' : '', 'icon' => $item->is_secure() ? 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'multisite-ultimate') : __('Not Secure (HTTP)', 'multisite-ultimate'), + 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'ultimate-multisite') : __('Not Secure (HTTP)', 'ultimate-multisite'), ], ], [ @@ -74,7 +74,7 @@ public function column_responsive($item): void { 'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1', 'label' => '', // translators: %s is a placeholder for the human-readable time difference, e.g., "2 hours ago" - 'value' => sprintf(__('Created %s', 'multisite-ultimate'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), + 'value' => sprintf(__('Created %s', 'ultimate-multisite'), wu_human_time_diff(strtotime((string) $item->get_date_created()))), ], ] ); diff --git a/inc/list-tables/class-webhook-list-table.php b/inc/list-tables/class-webhook-list-table.php index 7200024bb..adb841520 100644 --- a/inc/list-tables/class-webhook-list-table.php +++ b/inc/list-tables/class-webhook-list-table.php @@ -36,8 +36,8 @@ public function __construct() { parent::__construct( [ - 'singular' => __('Webhook', 'multisite-ultimate'), // singular name of the listed records - 'plural' => __('Webhooks', 'multisite-ultimate'), // plural name of the listed records + 'singular' => __('Webhook', 'ultimate-multisite'), // singular name of the listed records + 'plural' => __('Webhooks', 'ultimate-multisite'), // plural name of the listed records 'ajax' => true, // does this table support ajax? 'add_new' => [ 'url' => wu_get_form_url('add_new_webhook_modal'), @@ -67,20 +67,20 @@ public function column_name($item): string { wu_network_admin_url('wp-ultimo-edit-webhook', $url_atts), $item->get_name(), $item->get_id(), - __('Sending Test..', 'multisite-ultimate') + __('Sending Test..', 'ultimate-multisite') ); $actions = [ - 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-webhook', $url_atts), __('Edit', 'multisite-ultimate')), - 'test' => sprintf('%s', $item->get_webhook_url(), __('Send Test', 'multisite-ultimate')), + 'edit' => sprintf('%s', wu_network_admin_url('wp-ultimo-edit-webhook', $url_atts), __('Edit', 'ultimate-multisite')), + 'test' => sprintf('%s', $item->get_webhook_url(), __('Send Test', 'ultimate-multisite')), 'delete' => sprintf( '%s', - __('Delete', 'multisite-ultimate'), + __('Delete', 'ultimate-multisite'), wu_get_form_url( 'delete_modal', $url_atts ), - __('Delete', 'multisite-ultimate') + __('Delete', 'ultimate-multisite') ), ]; @@ -129,7 +129,7 @@ public function column_count($item): string { $count = $item->get_count(); $actions = [ - 'edit' => sprintf('%s', '', __('See Events', 'multisite-ultimate')), + 'edit' => sprintf('%s', '', __('See Events', 'ultimate-multisite')), ]; return $count . $this->row_actions($actions); @@ -157,7 +157,7 @@ public function column_integration($item): string { */ public function column_active($item) { - return $item->is_active() ? __('Yes', 'multisite-ultimate') : __('No', 'multisite-ultimate'); + return $item->is_active() ? __('Yes', 'ultimate-multisite') : __('No', 'ultimate-multisite'); } /** @@ -170,13 +170,13 @@ public function get_columns() { $columns = [ 'cb' => '', - 'name' => __('Name', 'multisite-ultimate'), - 'webhook_url' => __('Target URL', 'multisite-ultimate'), - 'event' => __('Trigger Event', 'multisite-ultimate'), - 'event_count' => __('Count', 'multisite-ultimate'), - 'integration' => __('Integration', 'multisite-ultimate'), - 'active' => __('Active', 'multisite-ultimate'), - 'id' => __('ID', 'multisite-ultimate'), + 'name' => __('Name', 'ultimate-multisite'), + 'webhook_url' => __('Target URL', 'ultimate-multisite'), + 'event' => __('Trigger Event', 'ultimate-multisite'), + 'event_count' => __('Count', 'ultimate-multisite'), + 'integration' => __('Integration', 'ultimate-multisite'), + 'active' => __('Active', 'ultimate-multisite'), + 'id' => __('ID', 'ultimate-multisite'), ]; return $columns; diff --git a/inc/list-tables/customer-panel/class-invoice-list-table.php b/inc/list-tables/customer-panel/class-invoice-list-table.php index 3ec3cde91..dfc5de99c 100644 --- a/inc/list-tables/customer-panel/class-invoice-list-table.php +++ b/inc/list-tables/customer-panel/class-invoice-list-table.php @@ -30,10 +30,10 @@ class Invoice_List_Table extends Parent_Payment_List_Table { public function get_columns() { $columns = [ - 'hash' => __('Code', 'multisite-ultimate'), - 'status' => __('Status', 'multisite-ultimate'), - 'total' => __('Total', 'multisite-ultimate'), - 'date_created' => __('Created at', 'multisite-ultimate'), + 'hash' => __('Code', 'ultimate-multisite'), + 'status' => __('Status', 'ultimate-multisite'), + 'total' => __('Total', 'ultimate-multisite'), + 'date_created' => __('Created at', 'ultimate-multisite'), ]; return $columns; diff --git a/inc/list-tables/customer-panel/class-product-list-table.php b/inc/list-tables/customer-panel/class-product-list-table.php index 4ba79c798..ad2eb73ef 100644 --- a/inc/list-tables/customer-panel/class-product-list-table.php +++ b/inc/list-tables/customer-panel/class-product-list-table.php @@ -31,7 +31,7 @@ public function __construct() { parent::__construct(); $this->modes = [ - 'grid' => __('Grid View', 'multisite-ultimate'), + 'grid' => __('Grid View', 'ultimate-multisite'), ]; $this->current_mode = 'grid'; diff --git a/inc/list-tables/customer-panel/class-site-list-table.php b/inc/list-tables/customer-panel/class-site-list-table.php index 524114b82..2b88113d2 100644 --- a/inc/list-tables/customer-panel/class-site-list-table.php +++ b/inc/list-tables/customer-panel/class-site-list-table.php @@ -31,7 +31,7 @@ public function __construct() { parent::__construct(); $this->modes = [ - 'grid' => __('Grid View', 'multisite-ultimate'), + 'grid' => __('Grid View', 'ultimate-multisite'), ]; $this->current_mode = 'grid'; @@ -73,7 +73,7 @@ public function get_views() { 'all' => [ 'field' => 'type', 'url' => add_query_arg('type', 'all'), - 'label' => __('Your Sites', 'multisite-ultimate'), + 'label' => __('Your Sites', 'ultimate-multisite'), 'count' => 0, ], ]; diff --git a/inc/managers/class-block-manager.php b/inc/managers/class-block-manager.php index b2f900e0e..1c50b9615 100644 --- a/inc/managers/class-block-manager.php +++ b/inc/managers/class-block-manager.php @@ -56,7 +56,7 @@ public function add_wp_ultimo_block_category($categories, $post) { [ [ 'slug' => 'wp-ultimo', - 'title' => __('Multisite WaaS', 'multisite-ultimate'), + 'title' => __('Multisite WaaS', 'ultimate-multisite'), ], ] ); diff --git a/inc/managers/class-broadcast-manager.php b/inc/managers/class-broadcast-manager.php index fdbb6584d..9fb4e1d3c 100644 --- a/inc/managers/class-broadcast-manager.php +++ b/inc/managers/class-broadcast-manager.php @@ -128,7 +128,7 @@ public function handle_broadcast(): void { $target_products = wu_request('target_products', ''); if ( ! $target_customers && ! $target_products) { - wp_send_json_error(new \WP_Error('error', __('No product or customer target was selected.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('error', __('No product or customer target was selected.', 'ultimate-multisite'))); } $broadcast_type = wu_request('type', 'broadcast_notice'); @@ -249,7 +249,7 @@ public function handle_broadcast(): void { } } - $error = new \WP_Error('mail-error', __('Something wrong happened.', 'multisite-ultimate')); + $error = new \WP_Error('mail-error', __('Something wrong happened.', 'ultimate-multisite')); wp_send_json_error($error); } diff --git a/inc/managers/class-customer-manager.php b/inc/managers/class-customer-manager.php index b07fc252b..7cfe793ac 100644 --- a/inc/managers/class-customer-manager.php +++ b/inc/managers/class-customer-manager.php @@ -62,7 +62,7 @@ public function init(): void { function () { Event_Manager::register_model_events( 'customer', - __('Customer', 'multisite-ultimate'), + __('Customer', 'ultimate-multisite'), ['created', 'updated'] ); } @@ -89,7 +89,7 @@ function () { public function handle_resend_verification_email(): void { if ( ! check_ajax_referer('wu_resend_verification_email_nonce', false, false)) { - wp_send_json_error(new \WP_Error('not-allowed', __('Error: you are not allowed to perform this action.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-allowed', __('Error: you are not allowed to perform this action.', 'ultimate-multisite'))); exit; } @@ -97,7 +97,7 @@ public function handle_resend_verification_email(): void { $customer = wu_get_current_customer(); if ( ! $customer) { - wp_send_json_error(new \WP_Error('customer-not-found', __('Error: customer not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('customer-not-found', __('Error: customer not found.', 'ultimate-multisite'))); exit; } @@ -200,7 +200,7 @@ public function maybe_verify_email_address(): void { wp_die( sprintf( /* translators: the placeholder is the login URL */ - wp_kses_post(__('You must be authenticated in order to verify your email address. Click here to access your account.', 'multisite-ultimate')), + wp_kses_post(__('You must be authenticated in order to verify your email address. Click here to access your account.', 'ultimate-multisite')), esc_attr( wp_login_url( add_query_arg( @@ -216,31 +216,31 @@ public function maybe_verify_email_address(): void { } if ( ! $customer_to_verify) { - wp_die(wp_kses_post(__('ERROR: Invalid verification key.', 'multisite-ultimate'))); + wp_die(wp_kses_post(__('ERROR: Invalid verification key.', 'ultimate-multisite'))); } $current_customer = wu_get_current_customer(); if ( ! $current_customer) { - wp_die(wp_kses_post(__('Error: Invalid verification key.', 'multisite-ultimate'))); + wp_die(wp_kses_post(__('Error: Invalid verification key.', 'ultimate-multisite'))); } if ($current_customer->get_id() !== $customer_to_verify->get_id()) { - wp_die(esc_html__('Invalid verification key.', 'multisite-ultimate')); + wp_die(esc_html__('Invalid verification key.', 'ultimate-multisite')); } if ($customer_to_verify->get_email_verification() !== 'pending') { - wp_die(esc_html__('Invalid verification key.', 'multisite-ultimate')); + wp_die(esc_html__('Invalid verification key.', 'ultimate-multisite')); } $key = $customer_to_verify->get_verification_key(); if ( ! $key) { - wp_die(wp_kses_post(__('Error: Invalid verification key.', 'multisite-ultimate'))); + wp_die(wp_kses_post(__('Error: Invalid verification key.', 'ultimate-multisite'))); } if ($key !== $email_verify_key) { - wp_die(esc_html__('Invalid verification key.', 'multisite-ultimate')); + wp_die(esc_html__('Invalid verification key.', 'ultimate-multisite')); } /* diff --git a/inc/managers/class-domain-manager.php b/inc/managers/class-domain-manager.php index 5fa99498d..f035de041 100644 --- a/inc/managers/class-domain-manager.php +++ b/inc/managers/class-domain-manager.php @@ -308,8 +308,8 @@ public function add_domain_mapping_settings(): void { 'domain-mapping', 'domain_mapping_header', [ - 'title' => __('Domain Mapping Settings', 'multisite-ultimate'), - 'desc' => __('Define the domain mapping settings for your network.', 'multisite-ultimate'), + 'title' => __('Domain Mapping Settings', 'ultimate-multisite'), + 'desc' => __('Define the domain mapping settings for your network.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -318,8 +318,8 @@ public function add_domain_mapping_settings(): void { 'domain-mapping', 'enable_domain_mapping', [ - 'title' => __('Enable Domain Mapping?', 'multisite-ultimate'), - 'desc' => __('Do you want to enable domain mapping?', 'multisite-ultimate'), + 'title' => __('Enable Domain Mapping?', 'ultimate-multisite'), + 'desc' => __('Do you want to enable domain mapping?', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -329,16 +329,16 @@ public function add_domain_mapping_settings(): void { 'domain-mapping', 'force_admin_redirect', [ - 'title' => __('Force Admin Redirect', 'multisite-ultimate'), - 'desc' => __('Select how you want your users to access the admin panel if they have mapped domains.', 'multisite-ultimate') . '

' . __('Force Redirect to Mapped Domain: your users with mapped domains will be redirected to theirdomain.com/wp-admin, even if they access using yournetworkdomain.com/wp-admin.', 'multisite-ultimate') . '

' . __('Force Redirect to Network Domain: your users with mapped domains will be redirect to yournetworkdomain.com/wp-admin, even if they access using theirdomain.com/wp-admin.', 'multisite-ultimate'), + 'title' => __('Force Admin Redirect', 'ultimate-multisite'), + 'desc' => __('Select how you want your users to access the admin panel if they have mapped domains.', 'ultimate-multisite') . '

' . __('Force Redirect to Mapped Domain: your users with mapped domains will be redirected to theirdomain.com/wp-admin, even if they access using yournetworkdomain.com/wp-admin.', 'ultimate-multisite') . '

' . __('Force Redirect to Network Domain: your users with mapped domains will be redirect to yournetworkdomain.com/wp-admin, even if they access using theirdomain.com/wp-admin.', 'ultimate-multisite'), 'tooltip' => '', 'type' => 'select', 'default' => 'both', 'require' => ['enable_domain_mapping' => 1], 'options' => [ - 'both' => __('Allow access to the admin by both mapped domain and network domain', 'multisite-ultimate'), - 'force_map' => __('Force Redirect to Mapped Domain', 'multisite-ultimate'), - 'force_network' => __('Force Redirect to Network Domain', 'multisite-ultimate'), + 'both' => __('Allow access to the admin by both mapped domain and network domain', 'ultimate-multisite'), + 'force_map' => __('Force Redirect to Mapped Domain', 'ultimate-multisite'), + 'force_network' => __('Force Redirect to Network Domain', 'ultimate-multisite'), ], ] ); @@ -347,8 +347,8 @@ public function add_domain_mapping_settings(): void { 'domain-mapping', 'custom_domains', [ - 'title' => __('Enable Custom Domains?', 'multisite-ultimate'), - 'desc' => __('Toggle this option if you wish to allow end-customers to add their own domains. This can be controlled on a plan per plan basis.', 'multisite-ultimate'), + 'title' => __('Enable Custom Domains?', 'ultimate-multisite'), + 'desc' => __('Toggle this option if you wish to allow end-customers to add their own domains. This can be controlled on a plan per plan basis.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, 'require' => [ @@ -361,9 +361,9 @@ public function add_domain_mapping_settings(): void { 'domain-mapping', 'domain_mapping_instructions', [ - 'title' => __('Add New Domain Instructions', 'multisite-ultimate'), - 'tooltip' => __('Display a customized message with instructions for the mapping and alerting the end-user of the risks of mapping a misconfigured domain.', 'multisite-ultimate'), - 'desc' => __('You can use the placeholder %NETWORK_DOMAIN% and %NETWORK_IP%.', 'multisite-ultimate'), + 'title' => __('Add New Domain Instructions', 'ultimate-multisite'), + 'tooltip' => __('Display a customized message with instructions for the mapping and alerting the end-user of the risks of mapping a misconfigured domain.', 'ultimate-multisite'), + 'desc' => __('You can use the placeholder %NETWORK_DOMAIN% and %NETWORK_IP%.', 'ultimate-multisite'), 'type' => 'textarea', 'default' => [$this, 'default_domain_mapping_instructions'], 'html_attr' => [ @@ -380,9 +380,9 @@ public function add_domain_mapping_settings(): void { 'domain-mapping', 'dns_check_interval', [ - 'title' => __('DNS Check Interval', 'multisite-ultimate'), - 'tooltip' => __('Set the interval in seconds between DNS and SSL certificate checks for domains.', 'multisite-ultimate'), - 'desc' => __('Minimum: 10 seconds, Maximum: 300 seconds (5 minutes). Default: 300 seconds.', 'multisite-ultimate'), + 'title' => __('DNS Check Interval', 'ultimate-multisite'), + 'tooltip' => __('Set the interval in seconds between DNS and SSL certificate checks for domains.', 'ultimate-multisite'), + 'desc' => __('Minimum: 10 seconds, Maximum: 300 seconds (5 minutes). Default: 300 seconds.', 'ultimate-multisite'), 'type' => 'number', 'default' => 300, 'min' => 10, @@ -400,15 +400,15 @@ public function add_domain_mapping_settings(): void { 'domain-mapping', 'auto_create_www_subdomain', [ - 'title' => __('Create www Subdomain Automatically?', 'multisite-ultimate'), - 'desc' => __('Control when www subdomains should be automatically created for mapped domains.', 'multisite-ultimate'), - 'tooltip' => __('This setting applies to all hosting integrations and determines when a www version of the domain should be automatically created.', 'multisite-ultimate'), + 'title' => __('Create www Subdomain Automatically?', 'ultimate-multisite'), + 'desc' => __('Control when www subdomains should be automatically created for mapped domains.', 'ultimate-multisite'), + 'tooltip' => __('This setting applies to all hosting integrations and determines when a www version of the domain should be automatically created.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'always', 'options' => [ - 'always' => __('Always - Create www subdomain for all domains', 'multisite-ultimate'), - 'main_only' => __('Only for main domains (e.g., example.com but not subdomain.example.com)', 'multisite-ultimate'), - 'never' => __('Never - Do not automatically create www subdomains', 'multisite-ultimate'), + 'always' => __('Always - Create www subdomain for all domains', 'ultimate-multisite'), + 'main_only' => __('Only for main domains (e.g., example.com but not subdomain.example.com)', 'ultimate-multisite'), + 'never' => __('Never - Do not automatically create www subdomains', 'ultimate-multisite'), ], 'require' => [ 'enable_domain_mapping' => true, @@ -481,8 +481,8 @@ public function add_sso_settings(): void { 'sso', 'sso_header', [ - 'title' => __('Single Sign-On Settings', 'multisite-ultimate'), - 'desc' => __('Settings to configure the Single Sign-On functionality of Multisite Ultimate, responsible for keeping customers and admins logged in across all network domains.', 'multisite-ultimate'), + 'title' => __('Single Sign-On Settings', 'ultimate-multisite'), + 'desc' => __('Settings to configure the Single Sign-On functionality of Multisite Ultimate, responsible for keeping customers and admins logged in across all network domains.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -491,8 +491,8 @@ public function add_sso_settings(): void { 'sso', 'enable_sso', [ - 'title' => __('Enable Single Sign-On', 'multisite-ultimate'), - 'desc' => __('Enables the Single Sign-on functionality.', 'multisite-ultimate'), + 'title' => __('Enable Single Sign-On', 'ultimate-multisite'), + 'desc' => __('Enables the Single Sign-on functionality.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -502,8 +502,8 @@ public function add_sso_settings(): void { 'sso', 'restrict_sso_to_login_pages', [ - 'title' => __('Restrict SSO Checks to Login Pages', 'multisite-ultimate'), - 'desc' => __('The Single Sign-on feature adds one extra ajax calls to every page load on sites with custom domains active to check if it should perform an auth loopback. You can restrict these extra calls to the login pages of sub-sites using this option. If enabled, SSO will only work on login pages.', 'multisite-ultimate'), + 'title' => __('Restrict SSO Checks to Login Pages', 'ultimate-multisite'), + 'desc' => __('The Single Sign-on feature adds one extra ajax calls to every page load on sites with custom domains active to check if it should perform an auth loopback. You can restrict these extra calls to the login pages of sub-sites using this option. If enabled, SSO will only work on login pages.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -516,8 +516,8 @@ public function add_sso_settings(): void { 'sso', 'enable_sso_loading_overlay', [ - 'title' => __('Enable SSO Loading Overlay', 'multisite-ultimate'), - 'desc' => __('When active, a loading overlay will be added on-top of the site currently being viewed while the SSO auth loopback is performed on the background.', 'multisite-ultimate'), + 'title' => __('Enable SSO Loading Overlay', 'ultimate-multisite'), + 'desc' => __('When active, a loading overlay will be added on-top of the site currently being viewed while the SSO auth loopback is performed on the background.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, 'require' => [ @@ -536,11 +536,11 @@ public function default_domain_mapping_instructions(): string { $instructions = []; - $instructions[] = __("Cool! You're about to make this site accessible using your own domain name!", 'multisite-ultimate'); + $instructions[] = __("Cool! You're about to make this site accessible using your own domain name!", 'ultimate-multisite'); - $instructions[] = __("For that to work, you'll need to create a new CNAME record pointing to %NETWORK_DOMAIN% on your DNS manager.", 'multisite-ultimate'); + $instructions[] = __("For that to work, you'll need to create a new CNAME record pointing to %NETWORK_DOMAIN% on your DNS manager.", 'ultimate-multisite'); - $instructions[] = __('After you finish that step, come back to this screen and click the button below.', 'multisite-ultimate'); + $instructions[] = __('After you finish that step, come back to this screen and click the button below.', 'ultimate-multisite'); return implode(PHP_EOL . PHP_EOL, $instructions); } @@ -637,7 +637,7 @@ public function async_process_domain_stage($domain_id, $tries = 0): void { $domain_url = $domain->get_domain(); // translators: %s is the domain name - wu_log_add("domain-{$domain_url}", sprintf(__('Starting Check for %s', 'multisite-ultimate'), $domain_url)); + wu_log_add("domain-{$domain_url}", sprintf(__('Starting Check for %s', 'ultimate-multisite'), $domain_url)); if ('checking-dns' === $stage) { if ($domain->has_correct_dns()) { @@ -647,7 +647,7 @@ public function async_process_domain_stage($domain_id, $tries = 0): void { wu_log_add( "domain-{$domain_url}", - __('- DNS propagation finished, advancing domain to next step...', 'multisite-ultimate') + __('- DNS propagation finished, advancing domain to next step...', 'ultimate-multisite') ); wu_enqueue_async_action( @@ -674,7 +674,7 @@ public function async_process_domain_stage($domain_id, $tries = 0): void { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes to try again. - sprintf(__('- DNS propagation checks tried for the max amount of times (5 times, one every %d minutes). Marking as failed.', 'multisite-ultimate'), $try_again_time) + sprintf(__('- DNS propagation checks tried for the max amount of times (5 times, one every %d minutes). Marking as failed.', 'ultimate-multisite'), $try_again_time) ); return; @@ -683,7 +683,7 @@ public function async_process_domain_stage($domain_id, $tries = 0): void { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes before trying again. - sprintf(__('- DNS propagation not finished, retrying in %d minutes...', 'multisite-ultimate'), $try_again_time) + sprintf(__('- DNS propagation not finished, retrying in %d minutes...', 'ultimate-multisite'), $try_again_time) ); wu_schedule_single_action( @@ -708,7 +708,7 @@ public function async_process_domain_stage($domain_id, $tries = 0): void { wu_log_add( "domain-{$domain_url}", - __('- Valid SSL cert found. Marking domain as done.', 'multisite-ultimate') + __('- Valid SSL cert found. Marking domain as done.', 'ultimate-multisite') ); return; @@ -724,7 +724,7 @@ public function async_process_domain_stage($domain_id, $tries = 0): void { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes to try again. - sprintf(__('- SSL checks tried for the max amount of times (5 times, one every %d minutes). Marking as ready without SSL.', 'multisite-ultimate'), $try_again_time) + sprintf(__('- SSL checks tried for the max amount of times (5 times, one every %d minutes). Marking as ready without SSL.', 'ultimate-multisite'), $try_again_time) ); return; @@ -733,7 +733,7 @@ public function async_process_domain_stage($domain_id, $tries = 0): void { wu_log_add( "domain-{$domain_url}", // translators: %d is the number of minutes before trying again. - sprintf(__('- SSL Cert not found, retrying in %d minute(s)...', 'multisite-ultimate'), $try_again_time) + sprintf(__('- SSL Cert not found, retrying in %d minute(s)...', 'ultimate-multisite'), $try_again_time) ); wu_schedule_single_action( @@ -822,7 +822,7 @@ public function get_dns_records(): void { $domain = wu_request('domain'); if ( ! $domain) { - wp_send_json_error(new \WP_Error('domain-missing', __('A valid domain was not passed.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('domain-missing', __('A valid domain was not passed.', 'ultimate-multisite'))); } $auth_ns = []; @@ -835,7 +835,7 @@ public function get_dns_records(): void { wp_send_json_error( new \WP_Error( 'error', - __('Not able to fetch DNS entries.', 'multisite-ultimate'), + __('Not able to fetch DNS entries.', 'ultimate-multisite'), [ 'exception' => $e->getMessage(), ] @@ -844,7 +844,7 @@ public function get_dns_records(): void { } if (false === $result) { - wp_send_json_error(new \WP_Error('error', __('Not able to fetch DNS entries.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('error', __('Not able to fetch DNS entries.', 'ultimate-multisite'))); } wp_send_json_success( @@ -895,7 +895,7 @@ public function test_integration() { if ( ! $integration) { wp_send_json_error( [ - 'message' => __('Invalid Integration ID', 'multisite-ultimate'), + 'message' => __('Invalid Integration ID', 'ultimate-multisite'), ] ); } @@ -908,7 +908,7 @@ public function test_integration() { [ 'message' => sprintf( // translators: %s is the name of the missing constant - __('The necessary constants were not found on your wp-config.php file: %s', 'multisite-ultimate'), + __('The necessary constants were not found on your wp-config.php file: %s', 'ultimate-multisite'), implode(', ', $integration->get_missing_constants()) ), ] @@ -1015,7 +1015,7 @@ public function verify_domain_with_loopback_request(Domain $domain): bool { "domain-{$domain_url}", sprintf( /* translators: %1$s: Protocol label (HTTPS with SSL verification, HTTPS without SSL verification, HTTP), %2$s: URL being tested */ - __('Testing domain verification via Loopback using %1$s: %2$s', 'multisite-ultimate'), + __('Testing domain verification via Loopback using %1$s: %2$s', 'ultimate-multisite'), $protocol_config['label'], $protocol_config['url'] ) @@ -1038,7 +1038,7 @@ public function verify_domain_with_loopback_request(Domain $domain): bool { "domain-{$domain_url}", sprintf( /* translators: %1$s: Protocol label (HTTPS with SSL verification, HTTPS without SSL verification, HTTP), %2$s: Error Message */ - __('Failed to connect via %1$s: %2$s', 'multisite-ultimate'), + __('Failed to connect via %1$s: %2$s', 'ultimate-multisite'), $protocol_config['label'], $response->get_error_message() ), @@ -1056,7 +1056,7 @@ public function verify_domain_with_loopback_request(Domain $domain): bool { "domain-{$domain_url}", sprintf( /* translators: %1$s: Protocol label (HTTPS with SSL verification, HTTPS without SSL verification, HTTP), %2$s: HTTP Response Code */ - __('Loopback request via %1$s returned HTTP %2$d', 'multisite-ultimate'), + __('Loopback request via %1$s returned HTTP %2$d', 'ultimate-multisite'), $protocol_config['label'], $response_code ), @@ -1073,7 +1073,7 @@ public function verify_domain_with_loopback_request(Domain $domain): bool { "domain-{$domain_url}", sprintf( /* translators: %1$s: Protocol label (HTTPS with SSL verification, HTTPS without SSL verification, HTTP), %2$s: Json error, %3$s part of the response */ - __('Loopback response via %1$s is not valid JSON: %2$s : %3$s', 'multisite-ultimate'), + __('Loopback response via %1$s is not valid JSON: %2$s : %3$s', 'ultimate-multisite'), $protocol_config['label'], json_last_error_msg(), substr($body, 0, 100) @@ -1089,7 +1089,7 @@ public function verify_domain_with_loopback_request(Domain $domain): bool { "domain-{$domain_url}", sprintf( /* translators: %1$s: Protocol label (HTTPS with SSL verification, HTTPS without SSL verification, HTTP), %2$s: Domain ID number */ - __('Domain verification successful via Loopback using %1$s. Domain ID %2$d confirmed.', 'multisite-ultimate'), + __('Domain verification successful via Loopback using %1$s. Domain ID %2$d confirmed.', 'ultimate-multisite'), $protocol_config['label'], $domain_id ) @@ -1102,7 +1102,7 @@ public function verify_domain_with_loopback_request(Domain $domain): bool { "domain-{$domain_url}", sprintf( /* translators: %1$s: Protocol label (HTTPS with SSL verification, HTTPS without SSL verification, HTTP), %2$s: Domain ID number, %3$s Domain ID number */ - __('Loopback response via %1$s did not contain expected domain ID. Expected: %2$d, Got: %3$s', 'multisite-ultimate'), + __('Loopback response via %1$s did not contain expected domain ID. Expected: %2$d, Got: %3$s', 'ultimate-multisite'), $protocol_config['label'], $domain_id, isset($data['id']) ? $data['id'] : 'null' @@ -1113,7 +1113,7 @@ public function verify_domain_with_loopback_request(Domain $domain): bool { wu_log_add( "domain-{$domain_url}", - __('Domain verification failed via loopback on all protocols (HTTPS with SSL, HTTPS without SSL, HTTP).', 'multisite-ultimate'), + __('Domain verification failed via loopback on all protocols (HTTPS with SSL, HTTPS without SSL, HTTP).', 'ultimate-multisite'), LogLevel::ERROR ); diff --git a/inc/managers/class-email-manager.php b/inc/managers/class-email-manager.php index 9102fd4e5..a9f748a69 100644 --- a/inc/managers/class-email-manager.php +++ b/inc/managers/class-email-manager.php @@ -133,7 +133,7 @@ public function send_system_email($slug, $payload): void { $to = $email->get_target_list($payload); if (empty($to)) { - wu_log_add('mailer', __('No targets found.', 'multisite-ultimate')); + wu_log_add('mailer', __('No targets found.', 'ultimate-multisite')); return; } @@ -218,8 +218,8 @@ public function add_email_fields(): void { 'emails', 'sender_header', [ - 'title' => __('Sender Settings', 'multisite-ultimate'), - 'desc' => __('Change the settings of the email headers, like from and name.', 'multisite-ultimate'), + 'title' => __('Sender Settings', 'ultimate-multisite'), + 'desc' => __('Change the settings of the email headers, like from and name.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -228,8 +228,8 @@ public function add_email_fields(): void { 'emails', 'from_name', [ - 'title' => __('"From" Name', 'multisite-ultimate'), - 'desc' => __('How the sender name will appear in emails sent by Multisite Ultimate.', 'multisite-ultimate'), + 'title' => __('"From" Name', 'ultimate-multisite'), + 'desc' => __('How the sender name will appear in emails sent by Multisite Ultimate.', 'ultimate-multisite'), 'type' => 'text', 'placeholder' => get_network_option(null, 'site_name'), 'default' => get_network_option(null, 'site_name'), @@ -243,8 +243,8 @@ public function add_email_fields(): void { 'emails', 'from_email', [ - 'title' => __('"From" E-mail', 'multisite-ultimate'), - 'desc' => __('How the sender email will appear in emails sent by Multisite Ultimate.', 'multisite-ultimate'), + 'title' => __('"From" E-mail', 'ultimate-multisite'), + 'desc' => __('How the sender email will appear in emails sent by Multisite Ultimate.', 'ultimate-multisite'), 'type' => 'email', 'placeholder' => get_network_option(null, 'admin_email'), 'default' => get_network_option(null, 'admin_email'), @@ -258,8 +258,8 @@ public function add_email_fields(): void { 'emails', 'template_header', [ - 'title' => __('Template Settings', 'multisite-ultimate'), - 'desc' => __('Change the settings of the email templates.', 'multisite-ultimate'), + 'title' => __('Template Settings', 'ultimate-multisite'), + 'desc' => __('Change the settings of the email templates.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -268,13 +268,13 @@ public function add_email_fields(): void { 'emails', 'email_template_type', [ - 'title' => __('Email Templates Style', 'multisite-ultimate'), - 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'multisite-ultimate'), + 'title' => __('Email Templates Style', 'ultimate-multisite'), + 'desc' => __('Choose if email body will be sent using the HTML template or in plain text.', 'ultimate-multisite'), 'type' => 'select', 'default' => 'html', 'options' => [ - 'html' => __('HTML Emails', 'multisite-ultimate'), - 'plain' => __('Plain Emails', 'multisite-ultimate'), + 'html' => __('HTML Emails', 'ultimate-multisite'), + 'plain' => __('Plain Emails', 'ultimate-multisite'), ], 'html_attr' => [ 'v-model' => 'emails_template', @@ -286,8 +286,8 @@ public function add_email_fields(): void { 'emails', 'expiring_header', [ - 'title' => __('Expiring Notification Settings', 'multisite-ultimate'), - 'desc' => __('Change the settings for the expiring notification (trials and subscriptions) emails.', 'multisite-ultimate'), + 'title' => __('Expiring Notification Settings', 'ultimate-multisite'), + 'desc' => __('Change the settings for the expiring notification (trials and subscriptions) emails.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -296,10 +296,10 @@ public function add_email_fields(): void { 'emails', 'expiring_days', [ - 'title' => __('Days to Expire', 'multisite-ultimate'), - 'desc' => __('Select when we should send the notification email. If you select 3 days, for example, a notification email will be sent to every membership (or trial period) expiring in the next 3 days. Memberships are checked hourly.', 'multisite-ultimate'), + 'title' => __('Days to Expire', 'ultimate-multisite'), + 'desc' => __('Select when we should send the notification email. If you select 3 days, for example, a notification email will be sent to every membership (or trial period) expiring in the next 3 days. Memberships are checked hourly.', 'ultimate-multisite'), 'type' => 'number', - 'placeholder' => __('e.g. 3', 'multisite-ultimate'), + 'placeholder' => __('e.g. 3', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'expiring_days', ], @@ -394,7 +394,7 @@ public function register_all_default_system_emails(): void { 'event' => 'payment_received', 'slug' => 'payment_received_admin', 'target' => 'admin', - 'title' => __('You got a new payment!', 'multisite-ultimate'), + 'title' => __('You got a new payment!', 'ultimate-multisite'), 'content' => wu_get_template_contents('emails/admin/payment-received'), ] ); @@ -407,7 +407,7 @@ public function register_all_default_system_emails(): void { 'event' => 'payment_received', 'slug' => 'payment_received_customer', 'target' => 'customer', - 'title' => __('We got your payment!', 'multisite-ultimate'), + 'title' => __('We got your payment!', 'ultimate-multisite'), 'content' => wu_get_template_contents('emails/customer/payment-received'), ] ); @@ -420,7 +420,7 @@ public function register_all_default_system_emails(): void { 'event' => 'site_published', 'target' => 'admin', 'slug' => 'site_published_admin', - 'title' => __('A new site was created on your Network!', 'multisite-ultimate'), + 'title' => __('A new site was created on your Network!', 'ultimate-multisite'), 'content' => wu_get_template_contents('emails/admin/site-published'), ] ); @@ -433,7 +433,7 @@ public function register_all_default_system_emails(): void { 'event' => 'site_published', 'target' => 'customer', 'slug' => 'site_published_customer', - 'title' => __('Your site is ready!', 'multisite-ultimate'), + 'title' => __('Your site is ready!', 'ultimate-multisite'), 'content' => wu_get_template_contents('emails/customer/site-published'), ] ); @@ -446,7 +446,7 @@ public function register_all_default_system_emails(): void { 'event' => 'confirm_email_address', 'target' => 'customer', 'slug' => 'confirm_email_address', - 'title' => __('Confirm your email address!', 'multisite-ultimate'), + 'title' => __('Confirm your email address!', 'ultimate-multisite'), 'content' => wu_get_template_contents('emails/customer/confirm-email-address'), ] ); @@ -459,7 +459,7 @@ public function register_all_default_system_emails(): void { 'event' => 'domain_created', 'target' => 'admin', 'slug' => 'domain_created_admin', - 'title' => __('A new domain was added to your Network!', 'multisite-ultimate'), + 'title' => __('A new domain was added to your Network!', 'ultimate-multisite'), 'content' => wu_get_template_contents('emails/admin/domain-created'), ] ); @@ -472,7 +472,7 @@ public function register_all_default_system_emails(): void { 'event' => 'renewal_payment_created', 'target' => 'customer', 'slug' => 'renewal_payment_created', - 'title' => __('You have a new pending payment!', 'multisite-ultimate'), + 'title' => __('You have a new pending payment!', 'ultimate-multisite'), 'content' => wu_get_template_contents('emails/customer/renewal-payment-created'), ] ); diff --git a/inc/managers/class-event-manager.php b/inc/managers/class-event-manager.php index 14fce6c0b..b4ffffb98 100644 --- a/inc/managers/class-event-manager.php +++ b/inc/managers/class-event-manager.php @@ -191,19 +191,19 @@ public function log_transitions($model, $data, $data_unserialized, $obj) { public function event_payload_preview(): void { if ( ! wu_request('event')) { - wp_send_json_error(new \WP_Error('error', __('No event was selected.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('error', __('No event was selected.', 'ultimate-multisite'))); } $slug = wu_request('event'); if ( ! $slug) { - wp_send_json_error(new \WP_Error('not-found', __('Event was not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Event was not found.', 'ultimate-multisite'))); } $event = wu_get_event_type($slug); if ( ! $event) { - wp_send_json_error(new \WP_Error('not-found', __('Data not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Data not found.', 'ultimate-multisite'))); } else { $payload = isset($event['payload']) ? wu_maybe_lazy_load_payload($event['payload']) : '{}'; @@ -366,8 +366,8 @@ public function register_all_events(): void { wu_register_event_type( 'payment_received', [ - 'name' => __('Payment Received', 'multisite-ultimate'), - 'desc' => __('This event is fired every time a new payment is received, regardless of the payment status.', 'multisite-ultimate'), + 'name' => __('Payment Received', 'ultimate-multisite'), + 'desc' => __('This event is fired every time a new payment is received, regardless of the payment status.', 'ultimate-multisite'), 'payload' => fn() => array_merge( wu_generate_event_payload('payment'), wu_generate_event_payload('membership'), @@ -389,8 +389,8 @@ public function register_all_events(): void { wu_register_event_type( 'site_published', [ - 'name' => __('Site Published', 'multisite-ultimate'), - 'desc' => __('This event is fired every time a new site is created tied to a membership, or transitions from a pending state to a published state.', 'multisite-ultimate'), + 'name' => __('Site Published', 'ultimate-multisite'), + 'desc' => __('This event is fired every time a new site is created tied to a membership, or transitions from a pending state to a published state.', 'ultimate-multisite'), 'payload' => fn() => array_merge( wu_generate_event_payload('site'), wu_generate_event_payload('customer'), @@ -406,8 +406,8 @@ public function register_all_events(): void { wu_register_event_type( 'confirm_email_address', [ - 'name' => __('Email Verification Needed', 'multisite-ultimate'), - 'desc' => __('This event is fired every time a new customer is added with an email verification status of pending.', 'multisite-ultimate'), + 'name' => __('Email Verification Needed', 'ultimate-multisite'), + 'desc' => __('This event is fired every time a new customer is added with an email verification status of pending.', 'ultimate-multisite'), 'payload' => fn() => array_merge( [ 'verification_link' => 'https://linktoverifyemail.com', @@ -424,8 +424,8 @@ public function register_all_events(): void { wu_register_event_type( 'domain_created', [ - 'name' => __('New Domain Mapping Added', 'multisite-ultimate'), - 'desc' => __('This event is fired every time a new domain mapping is added by a customer.', 'multisite-ultimate'), + 'name' => __('New Domain Mapping Added', 'ultimate-multisite'), + 'desc' => __('This event is fired every time a new domain mapping is added by a customer.', 'ultimate-multisite'), 'payload' => fn() => array_merge( wu_generate_event_payload('domain'), wu_generate_event_payload('site'), @@ -448,8 +448,8 @@ public function register_all_events(): void { wu_register_event_type( 'renewal_payment_created', [ - 'name' => __('New Renewal Payment Created', 'multisite-ultimate'), - 'desc' => __('This event is fired every time a new renewal payment is created by Multisite Ultimate.', 'multisite-ultimate'), + 'name' => __('New Renewal Payment Created', 'ultimate-multisite'), + 'desc' => __('This event is fired every time a new renewal payment is created by Multisite Ultimate.', 'ultimate-multisite'), 'payload' => fn() => array_merge( [ 'default_payment_url' => 'https://linktopayment.com', @@ -470,9 +470,9 @@ public function register_all_events(): void { $model . '_' . $type, [ // translators: %1$s is the model name, %2$s is the event type. - 'name' => sprintf(__('%1$s %2$s', 'multisite-ultimate'), $params['label'], ucfirst($type)), + 'name' => sprintf(__('%1$s %2$s', 'ultimate-multisite'), $params['label'], ucfirst($type)), // translators: %1$s is the model name, %2$s is the event type. - 'desc' => sprintf(__('This event is fired every time a %1$s is %2$s by Multisite Ultimate.', 'multisite-ultimate'), $params['label'], $type), + 'desc' => sprintf(__('This event is fired every time a %1$s is %2$s by Multisite Ultimate.', 'ultimate-multisite'), $params['label'], $type), 'deprecated_args' => [], 'payload' => fn() => $this->get_model_payload($model), ] @@ -623,7 +623,7 @@ public function clean_old_events(): bool { } // Translators: 1: Number of successfully removed events. 2: Number of failed events to remove. - wu_log_add('wu-cron', sprintf(__('Removed %1$d events successfully. Failed to remove %2$d events.', 'multisite-ultimate'), $success_count, count($events_to_remove) - $success_count)); + wu_log_add('wu-cron', sprintf(__('Removed %1$d events successfully. Failed to remove %2$d events.', 'ultimate-multisite'), $success_count, count($events_to_remove) - $success_count)); return true; } diff --git a/inc/managers/class-field-templates-manager.php b/inc/managers/class-field-templates-manager.php index 294369d44..cb7fcb1d1 100644 --- a/inc/managers/class-field-templates-manager.php +++ b/inc/managers/class-field-templates-manager.php @@ -62,7 +62,7 @@ public function serve_field_template(): void { $template_class = $this->get_template_class($template_parts[0], $template_parts[1]); if ( ! $template_class) { - wp_send_json_error(new \WP_Error('template', __('Template not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('template', __('Template not found.', 'ultimate-multisite'))); } $key = $template_parts[0]; diff --git a/inc/managers/class-form-manager.php b/inc/managers/class-form-manager.php index 5b728802d..70b689891 100644 --- a/inc/managers/class-form-manager.php +++ b/inc/managers/class-form-manager.php @@ -64,7 +64,7 @@ public function init(): void { */ public function display_form_unavailable($error = false): void { - $message = __('Form not available', 'multisite-ultimate'); + $message = __('Form not available', 'ultimate-multisite'); if (is_wp_error($error)) { $message = $error->get_error_message(); @@ -352,7 +352,7 @@ public function render_model_delete_form(): void { $object = apply_filters("wu_delete_form_get_object_{$model}", $object, $id, $model); if ( ! $object) { - $this->display_form_unavailable(new \WP_Error('not-found', __('Object not found.', 'multisite-ultimate'))); + $this->display_form_unavailable(new \WP_Error('not-found', __('Object not found.', 'ultimate-multisite'))); return; } @@ -362,16 +362,16 @@ public function render_model_delete_form(): void { [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Deletion', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'multisite-ultimate'), - 'placeholder' => __('Delete', 'multisite-ultimate'), + 'title' => __('Delete', 'ultimate-multisite'), + 'placeholder' => __('Delete', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -471,7 +471,7 @@ public function handle_model_delete_form(): void { $object = apply_filters("wu_delete_form_get_object_{$model}", $object, $id, $model); if ( ! $object) { - wp_send_json_error(new \WP_Error('not-found', __('Object not found.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Object not found.', 'ultimate-multisite'))); } /* @@ -496,7 +496,7 @@ public function handle_model_delete_form(): void { wp_send_json_success($data_json_success); } else { - wp_send_json_error(new \WP_Error('model-not-found', __('Something went wrong.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('model-not-found', __('Something went wrong.', 'ultimate-multisite'))); } } @@ -517,8 +517,8 @@ public function render_bulk_action_form(): void { [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Action', 'multisite-ultimate'), - 'desc' => __('Review this action carefully.', 'multisite-ultimate'), + 'title' => __('Confirm Action', 'ultimate-multisite'), + 'desc' => __('Review this action carefully.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], diff --git a/inc/managers/class-gateway-manager.php b/inc/managers/class-gateway-manager.php index 94b4611ed..ab199a5d0 100644 --- a/inc/managers/class-gateway-manager.php +++ b/inc/managers/class-gateway-manager.php @@ -279,8 +279,8 @@ public function process_gateway_confirmations(): void { if ( ! $gateway) { wp_die( - esc_html__('Missing gateway parameter.', 'multisite-ultimate'), - esc_html__('Error', 'multisite-ultimate'), + esc_html__('Missing gateway parameter.', 'ultimate-multisite'), + esc_html__('Error', 'ultimate-multisite'), [ 'back_link' => true, 'response' => '200', @@ -309,7 +309,7 @@ public function process_gateway_confirmations(): void { if (is_wp_error($results)) { wp_die( esc_html($results->get_error_message()), - esc_html__('Error', 'multisite-ultimate'), + esc_html__('Error', 'ultimate-multisite'), [ 'back_link' => true, 'response' => '200', @@ -319,7 +319,7 @@ public function process_gateway_confirmations(): void { } catch (\Throwable $e) { wp_die( esc_html($e->getMessage()), - esc_html__('Error', 'multisite-ultimate'), + esc_html__('Error', 'ultimate-multisite'), [ 'back_link' => true, 'response' => '200', @@ -358,8 +358,8 @@ public function add_gateway_selector_field(): void { 'payment-gateways', 'active_gateways', [ - 'title' => __('Active Payment Gateways', 'multisite-ultimate'), - 'desc' => __('Payment gateways are what your customers will use to pay.', 'multisite-ultimate'), + 'title' => __('Active Payment Gateways', 'ultimate-multisite'), + 'desc' => __('Payment gateways are what your customers will use to pay.', 'ultimate-multisite'), 'type' => 'multiselect', 'columns' => 2, 'options' => [$this, 'get_gateways_as_options'], @@ -397,31 +397,31 @@ public function add_default_gateways(): void { /* * Free Payments */ - wu_register_gateway('free', __('Free', 'multisite-ultimate'), '', Free_Gateway::class, true); + wu_register_gateway('free', __('Free', 'ultimate-multisite'), '', Free_Gateway::class, true); /* * Stripe Payments */ - $stripe_desc = __('Stripe is a suite of payment APIs that powers commerce for businesses of all sizes, including subscription management.', 'multisite-ultimate'); - wu_register_gateway('stripe', __('Stripe', 'multisite-ultimate'), $stripe_desc, Stripe_Gateway::class); + $stripe_desc = __('Stripe is a suite of payment APIs that powers commerce for businesses of all sizes, including subscription management.', 'ultimate-multisite'); + wu_register_gateway('stripe', __('Stripe', 'ultimate-multisite'), $stripe_desc, Stripe_Gateway::class); /* * Stripe Checkout Payments */ - $stripe_checkout_desc = __('Stripe Checkout is the hosted solution for checkouts using Stripe.', 'multisite-ultimate'); - wu_register_gateway('stripe-checkout', __('Stripe Checkout', 'multisite-ultimate'), $stripe_checkout_desc, Stripe_Checkout_Gateway::class); + $stripe_checkout_desc = __('Stripe Checkout is the hosted solution for checkouts using Stripe.', 'ultimate-multisite'); + wu_register_gateway('stripe-checkout', __('Stripe Checkout', 'ultimate-multisite'), $stripe_checkout_desc, Stripe_Checkout_Gateway::class); /* * PayPal Payments */ - $paypal_desc = __('PayPal is the leading provider in checkout solutions and it is the easier way to get your network subscriptions going.', 'multisite-ultimate'); - wu_register_gateway('paypal', __('PayPal', 'multisite-ultimate'), $paypal_desc, PayPal_Gateway::class); + $paypal_desc = __('PayPal is the leading provider in checkout solutions and it is the easier way to get your network subscriptions going.', 'ultimate-multisite'); + wu_register_gateway('paypal', __('PayPal', 'ultimate-multisite'), $paypal_desc, PayPal_Gateway::class); /* * Manual Payments */ - $manual_desc = __('Use the Manual Gateway to allow users to pay you directly via bank transfers, checks, or other channels.', 'multisite-ultimate'); - wu_register_gateway('manual', __('Manual', 'multisite-ultimate'), $manual_desc, Manual_Gateway::class); + $manual_desc = __('Use the Manual Gateway to allow users to pay you directly via bank transfers, checks, or other channels.', 'ultimate-multisite'); + wu_register_gateway('manual', __('Manual', 'ultimate-multisite'), $manual_desc, Manual_Gateway::class); } /** diff --git a/inc/managers/class-limitation-manager.php b/inc/managers/class-limitation-manager.php index a410e97e6..2a1d7495a 100644 --- a/inc/managers/class-limitation-manager.php +++ b/inc/managers/class-limitation-manager.php @@ -138,15 +138,15 @@ public function render_confirm_limitations_reset(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Reset', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Reset', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Reset Limitations', 'multisite-ultimate'), + 'title' => __('Reset Limitations', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -165,7 +165,7 @@ public function render_confirm_limitations_reset(): void { ]; $form_attributes = [ - 'title' => __('Reset', 'multisite-ultimate'), + 'title' => __('Reset', 'ultimate-multisite'), 'views' => 'admin-pages/fields', 'classes' => 'wu-modal-form wu-widget-list wu-striped wu-m-0 wu-mt-0', 'field_wrapper_classes' => 'wu-w-full wu-box-border wu-items-center wu-flex wu-justify-between wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid', @@ -200,7 +200,7 @@ public function handle_confirm_limitations_reset(): void { wp_send_json_error( new \WP_Error( 'parameters-not-found', - __('Required parameters are missing.', 'multisite-ultimate') + __('Required parameters are missing.', 'ultimate-multisite') ) ); } @@ -258,11 +258,11 @@ public function get_object_type($object_model) { public function add_limitation_sections($sections, $object_model) { if ( $this->get_object_type($object_model) === 'site' && $object_model->get_type() !== Site_Type::CUSTOMER_OWNED) { - $html = sprintf('%s', __('Limitations are only available for customer-owned sites. You need to change the type to Customer-owned and save this site before the options are shown.', 'multisite-ultimate')); + $html = sprintf('%s', __('Limitations are only available for customer-owned sites. You need to change the type to Customer-owned and save this site before the options are shown.', 'ultimate-multisite')); $sections['sites'] = [ - 'title' => __('Limits', 'multisite-ultimate'), - 'desc' => __('Only customer-owned sites have limitations.', 'multisite-ultimate'), + 'title' => __('Limits', 'ultimate-multisite'), + 'desc' => __('Only customer-owned sites have limitations.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-browser', 'fields' => [ 'note' => [ @@ -277,8 +277,8 @@ public function add_limitation_sections($sections, $object_model) { if ( $this->get_object_type($object_model) !== 'site') { $sections['sites'] = [ - 'title' => __('Sites', 'multisite-ultimate'), - 'desc' => __('Control limitations imposed to the number of sites allowed for memberships attached to this product.', 'multisite-ultimate'), + 'title' => __('Sites', 'ultimate-multisite'), + 'desc' => __('Control limitations imposed to the number of sites allowed for memberships attached to this product.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-browser', 'fields' => $this->get_sites_fields($object_model), 'v-show' => "get_state_value('product_type', 'none') !== 'service'", @@ -293,8 +293,8 @@ public function add_limitation_sections($sections, $object_model) { */ if ((bool) wu_get_setting('enable_visits_limiting', true)) { $sections['visits'] = [ - 'title' => __('Visits', 'multisite-ultimate'), - 'desc' => __('Control limitations imposed to the number of unique visitors allowed for memberships attached to this product.', 'multisite-ultimate'), + 'title' => __('Visits', 'ultimate-multisite'), + 'desc' => __('Control limitations imposed to the number of unique visitors allowed for memberships attached to this product.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-man', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -303,8 +303,8 @@ public function add_limitation_sections($sections, $object_model) { 'fields' => [ 'modules[visits][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Unique Visits', 'multisite-ultimate'), - 'desc' => __('Toggle this option to enable unique visits limitation.', 'multisite-ultimate'), + 'title' => __('Limit Unique Visits', 'ultimate-multisite'), + 'desc' => __('Toggle this option to enable unique visits limitation.', 'ultimate-multisite'), 'value' => 10, 'html_attr' => [ 'v-model' => 'limit_visits', @@ -319,9 +319,9 @@ public function add_limitation_sections($sections, $object_model) { $sections['visits']['fields']['modules[visits][limit]'] = [ 'type' => 'number', - 'title' => __('Unique Visits Quota', 'multisite-ultimate'), - 'desc' => __('Set a top limit for the number of monthly unique visits. Leave empty or 0 to allow for unlimited visits.', 'multisite-ultimate'), - 'placeholder' => __('e.g. 10000', 'multisite-ultimate'), + 'title' => __('Unique Visits Quota', 'ultimate-multisite'), + 'desc' => __('Set a top limit for the number of monthly unique visits. Leave empty or 0 to allow for unlimited visits.', 'ultimate-multisite'), + 'placeholder' => __('e.g. 10000', 'ultimate-multisite'), 'value' => $object_model->get_limitations()->visits->get_limit(), 'wrapper_html_attr' => [ 'v-show' => 'limit_visits', @@ -343,8 +343,8 @@ public function add_limitation_sections($sections, $object_model) { if ( $this->get_object_type($object_model) === 'site') { $sections['visits']['fields']['visits_count'] = [ 'type' => 'text-display', - 'title' => __('Current Unique Visits Count this Month', 'multisite-ultimate'), - 'desc' => __('Current visits count for this particular site.', 'multisite-ultimate'), + 'title' => __('Current Unique Visits Count this Month', 'ultimate-multisite'), + 'desc' => __('Current visits count for this particular site.', 'ultimate-multisite'), 'display_value' => sprintf('%s visit(s)', $object_model->get_visits_count()), 'wrapper_html_attr' => [ 'v-show' => 'limit_visits', @@ -355,8 +355,8 @@ public function add_limitation_sections($sections, $object_model) { } $sections['users'] = [ - 'title' => __('Users', 'multisite-ultimate'), - 'desc' => __('Control limitations imposed to the number of user allowed for memberships attached to this product.', 'multisite-ultimate'), + 'title' => __('Users', 'ultimate-multisite'), + 'desc' => __('Control limitations imposed to the number of user allowed for memberships attached to this product.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-users', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -365,8 +365,8 @@ public function add_limitation_sections($sections, $object_model) { 'fields' => [ 'modules[users][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit User', 'multisite-ultimate'), - 'desc' => __('Enable user limitations for this product.', 'multisite-ultimate'), + 'title' => __('Limit User', 'ultimate-multisite'), + 'desc' => __('Enable user limitations for this product.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'limit_users', ], @@ -381,8 +381,8 @@ public function add_limitation_sections($sections, $object_model) { $this->register_user_fields($sections, $object_model); $sections['post_types'] = [ - 'title' => __('Post Types', 'multisite-ultimate'), - 'desc' => __('Control limitations imposed to the number of posts allowed for memberships attached to this product.', 'multisite-ultimate'), + 'title' => __('Post Types', 'ultimate-multisite'), + 'desc' => __('Control limitations imposed to the number of posts allowed for memberships attached to this product.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-book', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -391,8 +391,8 @@ public function add_limitation_sections($sections, $object_model) { 'fields' => [ 'modules[post_types][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Post Types', 'multisite-ultimate'), - 'desc' => __('Toggle this option to set limits to each post type.', 'multisite-ultimate'), + 'title' => __('Limit Post Types', 'ultimate-multisite'), + 'desc' => __('Toggle this option to set limits to each post type.', 'ultimate-multisite'), 'value' => false, 'html_attr' => [ 'v-model' => 'limit_post_types', @@ -407,7 +407,7 @@ public function add_limitation_sections($sections, $object_model) { $sections['post_types']['post_quota_note'] = [ 'type' => 'note', - 'desc' => __('Note: Using the fields below you can set a post limit for each of the post types activated.
Toggle the switch to deactivate the post type altogether. Leave 0 or blank for unlimited posts.', 'multisite-ultimate'), + 'desc' => __('Note: Using the fields below you can set a post limit for each of the post types activated.
Toggle the switch to deactivate the post type altogether. Leave 0 or blank for unlimited posts.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'limit_post_types', 'v-cloak' => '1', @@ -417,8 +417,8 @@ public function add_limitation_sections($sections, $object_model) { $this->register_post_type_fields($sections, $object_model); $sections['limit_disk_space'] = [ - 'title' => __('Disk Space', 'multisite-ultimate'), - 'desc' => __('Control limitations imposed to the disk space allowed for memberships attached to this entity.', 'multisite-ultimate'), + 'title' => __('Disk Space', 'ultimate-multisite'), + 'desc' => __('Control limitations imposed to the disk space allowed for memberships attached to this entity.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-drive', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -427,8 +427,8 @@ public function add_limitation_sections($sections, $object_model) { 'fields' => [ 'modules[disk_space][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Disk Space per Site', 'multisite-ultimate'), - 'desc' => __('Enable disk space limitations for this entity.', 'multisite-ultimate'), + 'title' => __('Limit Disk Space per Site', 'ultimate-multisite'), + 'desc' => __('Enable disk space limitations for this entity.', 'ultimate-multisite'), 'value' => true, 'html_attr' => [ 'v-model' => 'limit_disk_space', @@ -443,8 +443,8 @@ public function add_limitation_sections($sections, $object_model) { $sections['limit_disk_space']['fields']['modules[disk_space][limit]'] = [ 'type' => 'number', - 'title' => __('Disk Space Allowance', 'multisite-ultimate'), - 'desc' => __('Set a limit in MBs for the disk space for each individual site.', 'multisite-ultimate'), + 'title' => __('Disk Space Allowance', 'ultimate-multisite'), + 'desc' => __('Set a limit in MBs for the disk space for each individual site.', 'ultimate-multisite'), 'min' => 0, 'placeholder' => 100, 'value' => $object_model->get_limitations()->disk_space->get_limit(), @@ -459,8 +459,8 @@ public function add_limitation_sections($sections, $object_model) { } $sections['custom_domain'] = [ - 'title' => __('Custom Domains', 'multisite-ultimate'), - 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'multisite-ultimate'), + 'title' => __('Custom Domains', 'ultimate-multisite'), + 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-link1', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -469,8 +469,8 @@ public function add_limitation_sections($sections, $object_model) { 'fields' => [ 'modules[domain_mapping][enabled]' => [ 'type' => 'toggle', - 'title' => __('Allow Custom Domains', 'multisite-ultimate'), - 'desc' => __('Toggle this option on to allow this plan to enable custom domains for sign-ups on this plan.', 'multisite-ultimate'), + 'title' => __('Allow Custom Domains', 'ultimate-multisite'), + 'desc' => __('Toggle this option on to allow this plan to enable custom domains for sign-ups on this plan.', 'ultimate-multisite'), 'value' => $object_model->get_limitations()->domain_mapping->is_enabled(), 'wrapper_html_attr' => [ 'v-cloak' => '1', @@ -487,8 +487,8 @@ public function add_limitation_sections($sections, $object_model) { } $sections['allowed_themes'] = [ - 'title' => __('Themes', 'multisite-ultimate'), - 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'multisite-ultimate'), + 'title' => __('Themes', 'ultimate-multisite'), + 'desc' => __('Limit the number of users on each role, posts, pages, and more.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-palette', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'state' => [ @@ -497,23 +497,23 @@ public function add_limitation_sections($sections, $object_model) { 'fields' => [ 'themes' => [ 'type' => 'html', - 'title' => __('Themes', 'multisite-ultimate'), - 'desc' => __('Select how the themes installed on the network should behave.', 'multisite-ultimate'), + 'title' => __('Themes', 'ultimate-multisite'), + 'desc' => __('Select how the themes installed on the network should behave.', 'ultimate-multisite'), 'content' => fn() => $this->get_theme_selection_list($object_model, $sections['allowed_themes']), ], ], ]; $sections['allowed_plugins'] = [ - 'title' => __('Plugins', 'multisite-ultimate'), - 'desc' => __('You can choose the behavior of each plugin installed on the platform.', 'multisite-ultimate'), + 'title' => __('Plugins', 'ultimate-multisite'), + 'desc' => __('You can choose the behavior of each plugin installed on the platform.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-power-plug', 'v-show' => "get_state_value('product_type', 'none') !== 'service'", 'fields' => [ 'plugins' => [ 'type' => 'html', - 'title' => __('Plugins', 'multisite-ultimate'), - 'desc' => __('Select how the plugins installed on the network should behave.', 'multisite-ultimate'), + 'title' => __('Plugins', 'ultimate-multisite'), + 'desc' => __('Select how the plugins installed on the network should behave.', 'ultimate-multisite'), 'content' => fn() => $this->get_plugin_selection_list($object_model), ], ], @@ -528,14 +528,14 @@ public function add_limitation_sections($sections, $object_model) { ); $sections['reset_limitations'] = [ - 'title' => __('Reset Limitations', 'multisite-ultimate'), - 'desc' => __('Reset the limitations applied to this element.', 'multisite-ultimate'), + 'title' => __('Reset Limitations', 'ultimate-multisite'), + 'desc' => __('Reset the limitations applied to this element.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-back-in-time', 'fields' => [ 'reset_permissions' => [ 'type' => 'note', - 'title' => sprintf("%s%s", __('Reset Limitations', 'multisite-ultimate'), __('Use this option to reset the custom limitations applied to this object.', 'multisite-ultimate')), - 'desc' => sprintf('%s', $reset_url, __('Reset Limitations', 'multisite-ultimate'), __('Reset Limitations', 'multisite-ultimate')), + 'title' => sprintf("%s%s", __('Reset Limitations', 'ultimate-multisite'), __('Use this option to reset the custom limitations applied to this object.', 'ultimate-multisite')), + 'desc' => sprintf('%s', $reset_url, __('Reset Limitations', 'ultimate-multisite'), __('Reset Limitations', 'ultimate-multisite')), ], ], ]; @@ -554,7 +554,7 @@ public function add_limitation_sections($sections, $object_model) { */ protected function override_notice($show = false, $additional_checks = []) { - $text = sprintf('

%s

', __('This value is being applied only to this entity. Changes made to the membership or product permissions will not affect this particular value.', 'multisite-ultimate')); + $text = sprintf('

%s

', __('This value is being applied only to this entity. Changes made to the membership or product permissions will not affect this particular value.', 'ultimate-multisite')); return [ 'desc' => $text, @@ -589,12 +589,12 @@ public function register_user_fields(&$sections, $object_model): void { $sections['users']['fields'][ "control_{$user_role_slug}" ] = [ 'type' => 'group', // translators: %s is the user role name. - 'title' => sprintf(__('Limit %s Role', 'multisite-ultimate'), $user_role['name']), + 'title' => sprintf(__('Limit %s Role', 'ultimate-multisite'), $user_role['name']), // translators: %s is the user role name. 'desc' => sprintf( // translators: %s is the user role name. - __('The customer will be able to create %s users(s) of this user role.', 'multisite-ultimate'), - "{{ roles['{$user_role_slug}'].enabled ? ( parseInt(roles['{$user_role_slug}'].number, 10) ? roles['{$user_role_slug}'].number : '" . __('unlimited', 'multisite-ultimate') . "' ) : '" . __('no', 'multisite-ultimate') . "' }}" + __('The customer will be able to create %s users(s) of this user role.', 'ultimate-multisite'), + "{{ roles['{$user_role_slug}'].enabled ? ( parseInt(roles['{$user_role_slug}'].number, 10) ? roles['{$user_role_slug}'].number : '" . __('unlimited', 'ultimate-multisite') . "' ) : '" . __('no', 'ultimate-multisite') . "' }}" ), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -606,7 +606,7 @@ public function register_user_fields(&$sections, $object_model): void { "modules[users][limit][{$user_role_slug}][number]" => [ 'type' => 'number', // translators: %s is the user role name. - 'placeholder' => sprintf(__('%s Role Quota. e.g. 10', 'multisite-ultimate'), $user_role['name']), + 'placeholder' => sprintf(__('%s Role Quota. e.g. 10', 'ultimate-multisite'), $user_role['name']), 'min' => 0, 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -658,11 +658,11 @@ public function register_post_type_fields(&$sections, $object_model): void { $sections['post_types']['fields'][ "control_{$post_type_slug}" ] = [ 'type' => 'group', // translators: %s is the post type name. - 'title' => sprintf(__('Limit %s', 'multisite-ultimate'), $post_type->label), + 'title' => sprintf(__('Limit %s', 'ultimate-multisite'), $post_type->label), 'desc' => sprintf( // translators: %s is the post type name. - __('The customer will be able to create %s post(s) of this post type.', 'multisite-ultimate'), - "{{ types['{$post_type_slug}'].enabled ? ( parseInt(types['{$post_type_slug}'].number, 10) ? types['{$post_type_slug}'].number : '" . __('unlimited', 'multisite-ultimate') . "' ) : '" . __('no', 'multisite-ultimate') . "' }}" + __('The customer will be able to create %s post(s) of this post type.', 'ultimate-multisite'), + "{{ types['{$post_type_slug}'].enabled ? ( parseInt(types['{$post_type_slug}'].number, 10) ? types['{$post_type_slug}'].number : '" . __('unlimited', 'ultimate-multisite') . "' ) : '" . __('no', 'ultimate-multisite') . "' }}" ), 'tooltip' => '', 'wrapper_html_attr' => [ @@ -674,7 +674,7 @@ public function register_post_type_fields(&$sections, $object_model): void { "modules[post_types][limit][{$post_type_slug}][number]" => [ 'type' => 'number', // translators: %s is the post type name. - 'placeholder' => sprintf(__('%s Quota. e.g. 200', 'multisite-ultimate'), $post_type->label), + 'placeholder' => sprintf(__('%s Quota. e.g. 200', 'ultimate-multisite'), $post_type->label), 'min' => 0, 'wrapper_classes' => 'wu-w-full', 'html_attr' => [ @@ -720,8 +720,8 @@ protected function get_sites_fields($object_model) { $fields = [ 'modules[sites][enabled]' => [ 'type' => 'toggle', - 'title' => __('Limit Sites', 'multisite-ultimate'), - 'desc' => __('Enable site limitations for this product.', 'multisite-ultimate'), + 'title' => __('Limit Sites', 'ultimate-multisite'), + 'desc' => __('Enable site limitations for this product.', 'ultimate-multisite'), 'value' => $object_model->get_limitations()->sites->is_enabled(), 'html_attr' => [ 'v-model' => 'limit_sites', @@ -738,7 +738,7 @@ protected function get_sites_fields($object_model) { */ $fields['site_not_allowed_note'] = [ 'type' => 'note', - 'desc' => __('The product type selection does not support allowing for the creating of extra sites.', 'multisite-ultimate'), + 'desc' => __('The product type selection does not support allowing for the creating of extra sites.', 'ultimate-multisite'), 'tooltip' => '', 'wrapper_html_attr' => [ 'v-show' => "get_state_value('product_type', 'none') === 'service' && limit_sites", @@ -749,8 +749,8 @@ protected function get_sites_fields($object_model) { $fields['modules[sites][limit]'] = [ 'type' => 'number', 'min' => 1, - 'title' => __('Site Allowance', 'multisite-ultimate'), - 'desc' => __('This is the number of sites the customer will be able to create under this membership.', 'multisite-ultimate'), + 'title' => __('Site Allowance', 'ultimate-multisite'), + 'desc' => __('This is the number of sites the customer will be able to create under this membership.', 'ultimate-multisite'), 'placeholder' => 1, 'value' => $object_model->get_limitations()->sites->get_limit(), 'wrapper_html_attr' => [ diff --git a/inc/managers/class-membership-manager.php b/inc/managers/class-membership-manager.php index e318621ec..ea4c4d922 100644 --- a/inc/managers/class-membership-manager.php +++ b/inc/managers/class-membership-manager.php @@ -59,7 +59,7 @@ public function init(): void { add_action( 'init', function () { - Event_Manager::register_model_events('membership', __('Membership', 'multisite-ultimate'), ['created', 'updated']); + Event_Manager::register_model_events('membership', __('Membership', 'ultimate-multisite'), ['created', 'updated']); } ); @@ -127,7 +127,7 @@ public function async_publish_pending_site($membership_id) { $membership = wu_get_membership($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $status = $membership->publish_pending_site(); @@ -151,7 +151,7 @@ public function check_pending_site_created() { $membership = wu_get_membership_by_hash($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $pending_site = $membership->get_pending_site(); @@ -185,13 +185,13 @@ public function async_membership_swap($membership_id) { $membership = wu_get_membership($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $scheduled_swap = $membership->get_scheduled_swap(); if (empty($scheduled_swap)) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $order = $scheduled_swap->order; @@ -206,12 +206,12 @@ public function async_membership_swap($membership_id) { if (is_wp_error($status)) { $wpdb->query('ROLLBACK'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } } catch (\Throwable $exception) { $wpdb->query('ROLLBACK'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } /* @@ -303,7 +303,7 @@ public function async_transfer_membership($membership_id, $target_customer_id) { $target_customer = wu_get_customer($target_customer_id); if ( ! $membership || ! $target_customer || absint($membership->get_customer_id()) === absint($target_customer->get_id())) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $wpdb->query('START TRANSACTION'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery @@ -375,7 +375,7 @@ public function async_delete_membership($membership_id) { $membership = wu_get_membership($membership_id); if ( ! $membership) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $wpdb->query('START TRANSACTION'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery diff --git a/inc/managers/class-notes-manager.php b/inc/managers/class-notes-manager.php index 5fd450f40..d7f5f219a 100644 --- a/inc/managers/class-notes-manager.php +++ b/inc/managers/class-notes-manager.php @@ -142,7 +142,7 @@ public function add_notes_options_section($sections, $obj) { if (current_user_can('delete_notes')) { $fields_buttons['button_clear_notes'] = [ 'type' => 'link', - 'display_value' => __('Clear Notes', 'multisite-ultimate'), + 'display_value' => __('Clear Notes', 'ultimate-multisite'), 'wrapper_classes' => 'wu-mb-0', 'classes' => 'button wubox', 'html_attr' => [ @@ -153,7 +153,7 @@ public function add_notes_options_section($sections, $obj) { 'model' => $obj->model, ] ), - 'title' => __('Clear Notes', 'multisite-ultimate'), + 'title' => __('Clear Notes', 'ultimate-multisite'), ], ]; } @@ -161,7 +161,7 @@ public function add_notes_options_section($sections, $obj) { if (current_user_can('edit_notes')) { $fields_buttons['button_add_note'] = [ 'type' => 'link', - 'display_value' => __('Add new Note', 'multisite-ultimate'), + 'display_value' => __('Add new Note', 'ultimate-multisite'), 'wrapper_classes' => 'wu-mb-0', 'classes' => 'button button-primary wubox wu-absolute wu-right-5', 'html_attr' => [ @@ -173,7 +173,7 @@ public function add_notes_options_section($sections, $obj) { 'height' => 306, ] ), - 'title' => __('Add new Note', 'multisite-ultimate'), + 'title' => __('Add new Note', 'ultimate-multisite'), ], ]; } @@ -185,8 +185,8 @@ public function add_notes_options_section($sections, $obj) { ]; $sections['notes'] = [ - 'title' => __('Notes', 'multisite-ultimate'), - 'desc' => __('Add notes to this model.', 'multisite-ultimate'), + 'title' => __('Notes', 'ultimate-multisite'), + 'desc' => __('Add notes to this model.', 'ultimate-multisite'), 'icon' => 'dashicons-wu-text-document', 'order' => 1001, 'fields' => $fields, @@ -207,8 +207,8 @@ public function render_add_note_modal(): void { 'content' => [ 'id' => 'content', 'type' => 'wp-editor', - 'title' => __('Note Content', 'multisite-ultimate'), - 'desc' => __('Basic formatting is supported.', 'multisite-ultimate'), + 'title' => __('Note Content', 'ultimate-multisite'), + 'desc' => __('Basic formatting is supported.', 'ultimate-multisite'), 'settings' => [ 'tinymce' => [ 'toolbar1' => 'bold,italic,strikethrough,link,unlink,undo,redo,pastetext', @@ -220,8 +220,8 @@ public function render_add_note_modal(): void { ], 'submit_add_note' => [ 'type' => 'submit', - 'title' => __('Add Note', 'multisite-ultimate'), - 'placeholder' => __('Add Note', 'multisite-ultimate'), + 'title' => __('Add Note', 'ultimate-multisite'), + 'placeholder' => __('Add Note', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -308,16 +308,16 @@ public function render_clear_notes_modal(): void { $fields = [ 'confirm_clear_notes' => [ 'type' => 'toggle', - 'title' => __('Confirm clear all notes?', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm clear all notes?', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_clear_notes' => [ 'type' => 'submit', - 'title' => __('Clear Notes', 'multisite-ultimate'), - 'placeholder' => __('Clear Notes', 'multisite-ultimate'), + 'title' => __('Clear Notes', 'ultimate-multisite'), + 'placeholder' => __('Clear Notes', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -403,16 +403,16 @@ public function render_delete_note_modal(): void { $fields = [ 'confirm_delete_note' => [ 'type' => 'toggle', - 'title' => __('Confirm clear the note?', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm clear the note?', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_delete_note' => [ 'type' => 'submit', - 'title' => __('Clear Note', 'multisite-ultimate'), - 'placeholder' => __('Clear Note', 'multisite-ultimate'), + 'title' => __('Clear Note', 'ultimate-multisite'), + 'placeholder' => __('Clear Note', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -475,7 +475,7 @@ public function handle_delete_note_modal(): void { $status = $object->delete_note($note_id); if (is_wp_error($status) || false === $status) { - wp_send_json_error(new \WP_Error('not-found', __('Note not found', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('not-found', __('Note not found', 'ultimate-multisite'))); } wp_send_json_success( diff --git a/inc/managers/class-notification-manager.php b/inc/managers/class-notification-manager.php index b2df24906..939a363a6 100644 --- a/inc/managers/class-notification-manager.php +++ b/inc/managers/class-notification-manager.php @@ -121,8 +121,8 @@ public function add_settings(): void { 'sites', 'hide_notifications_subsites', [ - 'title' => __('Hide Admin Notices on Sites', 'multisite-ultimate'), - 'desc' => __('Hide all admin notices on network sites, except for Multisite Ultimate broadcasts.', 'multisite-ultimate'), + 'title' => __('Hide Admin Notices on Sites', 'ultimate-multisite'), + 'desc' => __('Hide all admin notices on network sites, except for Multisite Ultimate broadcasts.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'order' => 25, diff --git a/inc/managers/class-payment-manager.php b/inc/managers/class-payment-manager.php index a669a55fe..b2c30077a 100644 --- a/inc/managers/class-payment-manager.php +++ b/inc/managers/class-payment-manager.php @@ -66,7 +66,7 @@ public function init(): void { function () { Event_Manager::register_model_events( 'payment', - __('Payment', 'multisite-ultimate'), + __('Payment', 'ultimate-multisite'), ['created', 'updated'] ); } @@ -169,7 +169,7 @@ public function show_pending_payments(): void { wp_enqueue_style('wu-admin'); add_wubox(); - $form_title = __('Pending Payments', 'multisite-ultimate'); + $form_title = __('Pending Payments', 'ultimate-multisite'); $form_url = wu_get_form_url('pending_payments'); wp_add_inline_script('wubox', sprintf("document.addEventListener('DOMContentLoaded', function(){wubox.show('%s', '%s');});", esc_js($form_title), $form_url)); @@ -225,7 +225,7 @@ public function render_pending_payments(): void { } } - $message = ! empty($pending_payments) ? __('You have pending payments on your account!', 'multisite-ultimate') : __('You do not have pending payments on your account!', 'multisite-ultimate'); + $message = ! empty($pending_payments) ? __('You have pending payments on your account!', 'ultimate-multisite') : __('You do not have pending payments on your account!', 'ultimate-multisite'); /** * Allow user to change the message about the pending payments. @@ -252,7 +252,7 @@ public function render_pending_payments(): void { $url = $payment->get_payment_url(); - $html = sprintf('%s', $url, __('Pay Now', 'multisite-ultimate')); + $html = sprintf('%s', $url, __('Pay Now', 'ultimate-multisite')); $title = $slug; @@ -290,13 +290,13 @@ public function invoice_viewer(): void { * Validates nonce. */ if ( ! wp_verify_nonce(wu_request('key'), 'see_invoice')) { - wp_die(esc_html__('You do not have permissions to access this file.', 'multisite-ultimate')); + wp_die(esc_html__('You do not have permissions to access this file.', 'ultimate-multisite')); } $payment = wu_get_payment_by_hash(wu_request('reference')); if ( ! $payment) { - wp_die(esc_html__('This invoice does not exist.', 'multisite-ultimate')); + wp_die(esc_html__('This invoice does not exist.', 'ultimate-multisite')); } $invoice = new Invoice($payment); @@ -328,7 +328,7 @@ public function async_transfer_payment($payment_id, $target_customer_id) { $target_customer = wu_get_customer($target_customer_id); if ( ! $payment || ! $target_customer || $payment->get_customer_id() === $target_customer->get_id()) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $wpdb->query('START TRANSACTION'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery @@ -373,7 +373,7 @@ public function async_delete_payment($payment_id) { $payment = wu_get_payment($payment_id); if ( ! $payment) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $wpdb->query('START TRANSACTION'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery diff --git a/inc/managers/class-site-manager.php b/inc/managers/class-site-manager.php index ffa6eda08..aae769663 100644 --- a/inc/managers/class-site-manager.php +++ b/inc/managers/class-site-manager.php @@ -114,7 +114,7 @@ public function allow_hyphens_in_site_name($result) { $blogname_errors = $errors->get_error_messages('blogname'); - $message_to_ignore = __('Site names can only contain lowercase letters (a-z) and numbers.', 'multisite-ultimate'); + $message_to_ignore = __('Site names can only contain lowercase letters (a-z) and numbers.', 'ultimate-multisite'); $error_key = array_search($message_to_ignore, $blogname_errors, true); @@ -131,7 +131,7 @@ public function allow_hyphens_in_site_name($result) { } if (preg_match('/[^a-z0-9-]+/', (string) $result['blogname'])) { - $result['errors']->add('blogname', __('Site names can only contain lowercase letters (a-z), numbers, and hyphens.', 'multisite-ultimate')); + $result['errors']->add('blogname', __('Site names can only contain lowercase letters (a-z), numbers, and hyphens.', 'ultimate-multisite')); } } @@ -164,7 +164,7 @@ public function maybe_validate_add_new_site($checkout): void { $customer = wu_get_current_customer(); if ( ! $customer || ! $membership || $customer->get_id() !== $membership->get_customer_id()) { - $errors->add('not-owner', __('You do not have the necessary permissions to create a site to this membership', 'multisite-ultimate')); + $errors->add('not-owner', __('You do not have the necessary permissions to create a site to this membership', 'ultimate-multisite')); } if ($errors->has_errors() === false) { @@ -313,8 +313,8 @@ public function lock_site(): void { wp_die( // translators: %s: link to the login page - sprintf(wp_kses_post(__('This site is not available at the moment.
If you are the site admin, click here to login.', 'multisite-ultimate')), esc_attr(wp_login_url())), - esc_html__('Site not available', 'multisite-ultimate'), + sprintf(wp_kses_post(__('This site is not available at the moment.
If you are the site admin, click here to login.', 'ultimate-multisite')), esc_attr(wp_login_url())), + esc_html__('Site not available', 'ultimate-multisite'), ); } } @@ -362,7 +362,7 @@ public function get_site_screenshot(): void { if ( ! $site) { wp_send_json_error( - new \WP_Error('missing-site', __('Site not found.', 'multisite-ultimate')) + new \WP_Error('missing-site', __('Site not found.', 'ultimate-multisite')) ); } @@ -372,7 +372,7 @@ public function get_site_screenshot(): void { if ( ! $attachment_id) { wp_send_json_error( - new \WP_Error('error', __('We were not able to fetch the screenshot.', 'multisite-ultimate')) + new \WP_Error('error', __('We were not able to fetch the screenshot.', 'ultimate-multisite')) ); } @@ -411,7 +411,7 @@ public function additional_thumbnail_sizes(): void { public function add_no_index_warning(): void { if (wu_get_setting('stop_template_indexing', false)) { - add_meta_box('wu-warnings', __('Multisite Ultimate - Search Engines', 'multisite-ultimate'), [$this, 'render_no_index_warning'], 'dashboard-network', 'normal', 'high'); + add_meta_box('wu-warnings', __('Multisite Ultimate - Search Engines', 'ultimate-multisite'), [$this, 'render_no_index_warning'], 'dashboard-network', 'normal', 'high'); } } @@ -428,10 +428,10 @@ public function render_no_index_warning(): void {
-

prevent search engines such as Google from indexing your template sites.', 'multisite-ultimate')); ?>

+

prevent search engines such as Google from indexing your template sites.', 'ultimate-multisite')); ?>

-

here.', 'multisite-ultimate'), wu_network_admin_url('wp-ultimo-settings', ['tab' => 'sites']))); ?>

+

here.', 'ultimate-multisite'), wu_network_admin_url('wp-ultimo-settings', ['tab' => 'sites']))); ?>

@@ -528,7 +528,7 @@ public function login_header_text() { */ public function add_notices_to_default_site_page(): void { - $notice = __('Hey there! We highly recommend managing your network sites using the Multisite Ultimate → Sites page.
If you want to avoid confusion, you can also hide this page from the admin panel completely on the Multisite Ultimate → Settings → Whitelabel options.', 'multisite-ultimate'); + $notice = __('Hey there! We highly recommend managing your network sites using the Multisite Ultimate → Sites page.
If you want to avoid confusion, you can also hide this page from the admin panel completely on the Multisite Ultimate → Settings → Whitelabel options.', 'ultimate-multisite'); WP_Ultimo()->notices->add( $notice, @@ -537,11 +537,11 @@ public function add_notices_to_default_site_page(): void { 'wu-sites-use-wp-ultimo', [ [ - 'title' => __('Go to the Multisite Ultimate Sites page →', 'multisite-ultimate'), + 'title' => __('Go to the Multisite Ultimate Sites page →', 'ultimate-multisite'), 'url' => wu_network_admin_url('wp-ultimo-sites'), ], [ - 'title' => __('Go to the Whitelabel Settings →', 'multisite-ultimate'), + 'title' => __('Go to the Whitelabel Settings →', 'ultimate-multisite'), 'url' => wu_network_admin_url( 'wp-ultimo-settings', [ diff --git a/inc/managers/class-visits-manager.php b/inc/managers/class-visits-manager.php index 601b9e4f8..e75876f4f 100644 --- a/inc/managers/class-visits-manager.php +++ b/inc/managers/class-visits-manager.php @@ -69,7 +69,7 @@ public function maybe_lock_site(): void { } if ($site->has_limitations() && $site->get_visits_count() > $site->get_limitations()->visits->get_limit()) { - wp_die(esc_html__('This site is not available at this time.', 'multisite-ultimate'), esc_html__('Not available', 'multisite-ultimate'), 404); + wp_die(esc_html__('This site is not available at this time.', 'ultimate-multisite'), esc_html__('Not available', 'ultimate-multisite'), 404); } } diff --git a/inc/managers/class-webhook-manager.php b/inc/managers/class-webhook-manager.php index fa0c47e47..bc7fb52fb 100644 --- a/inc/managers/class-webhook-manager.php +++ b/inc/managers/class-webhook-manager.php @@ -195,7 +195,7 @@ public function send_test_event(): void { if ( ! current_user_can('manage_network')) { wp_send_json( [ - 'response' => __('You do not have enough permissions to send a test event.', 'multisite-ultimate'), + 'response' => __('You do not have enough permissions to send a test event.', 'ultimate-multisite'), 'webhooks' => Webhook::get_items_as_array(), ] ); diff --git a/inc/models/class-base-model.php b/inc/models/class-base-model.php index 4ca7beecc..761eff498 100644 --- a/inc/models/class-base-model.php +++ b/inc/models/class-base-model.php @@ -183,7 +183,7 @@ public function get_hash($field = 'id') { $value = call_user_func([$this, "get_{$field}"]); if ( ! is_numeric($value)) { - _doing_it_wrong(__METHOD__, esc_html__('You can only use numeric fields to generate hashes.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(__METHOD__, esc_html__('You can only use numeric fields to generate hashes.', 'ultimate-multisite'), '2.0.0'); return false; } @@ -643,7 +643,7 @@ function ($_data) { public function delete() { if ( ! $this->get_id()) { - return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'multisite-ultimate')); + return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'ultimate-multisite')); } /** @@ -717,12 +717,12 @@ protected function is_meta_available() { if ( ! $this->get_meta_table_name()) { - // _doing_it_wrong(__METHOD__, __('This model does not support metadata.', 'multisite-ultimate'), '2.0.0'); + // _doing_it_wrong(__METHOD__, __('This model does not support metadata.', 'ultimate-multisite'), '2.0.0'); return false; } - // _doing_it_wrong(__METHOD__, __('Model metadata only works for already saved models.', 'multisite-ultimate'), '2.0.0'); + // _doing_it_wrong(__METHOD__, __('Model metadata only works for already saved models.', 'ultimate-multisite'), '2.0.0'); return ! (! $this->get_id() && ! $this->_mocked); } @@ -766,7 +766,7 @@ public function update_meta_batch($meta) { } if ( ! is_array($meta)) { - _doing_it_wrong(__METHOD__, esc_html__('This method expects an array as argument.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(__METHOD__, esc_html__('This method expects an array as argument.', 'ultimate-multisite'), '2.0.0'); return false; } diff --git a/inc/models/class-checkout-form.php b/inc/models/class-checkout-form.php index 4c28e23e0..b816409eb 100644 --- a/inc/models/class-checkout-form.php +++ b/inc/models/class-checkout-form.php @@ -535,12 +535,12 @@ private function get_single_step_template() { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Plans', 'multisite-ultimate'), + 'name' => __('Plans', 'ultimate-multisite'), 'type' => 'pricing_table', 'id' => 'pricing_table', 'required' => true, @@ -549,7 +549,7 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Email', 'multisite-ultimate'), + 'name' => __('Email', 'ultimate-multisite'), 'type' => 'email', 'id' => 'email_address', 'required' => true, @@ -558,7 +558,7 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Username', 'multisite-ultimate'), + 'name' => __('Username', 'ultimate-multisite'), 'type' => 'username', 'id' => 'username', 'required' => true, @@ -568,7 +568,7 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Password', 'multisite-ultimate'), + 'name' => __('Password', 'ultimate-multisite'), 'type' => 'password', 'id' => 'password', 'required' => true, @@ -579,7 +579,7 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Site Title', 'multisite-ultimate'), + 'name' => __('Site Title', 'ultimate-multisite'), 'type' => 'site_title', 'id' => 'site_title', 'required' => true, @@ -589,7 +589,7 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Site URL', 'multisite-ultimate'), + 'name' => __('Site URL', 'ultimate-multisite'), 'type' => 'site_url', 'id' => 'site_url', 'placeholder' => '', @@ -600,7 +600,7 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Your Order', 'multisite-ultimate'), + 'name' => __('Your Order', 'ultimate-multisite'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -608,13 +608,13 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'multisite-ultimate'), + 'name' => __('Payment Method', 'ultimate-multisite'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Billing Address', 'multisite-ultimate'), + 'name' => __('Billing Address', 'ultimate-multisite'), 'type' => 'billing_address', 'id' => 'billing_address', 'required' => true, @@ -622,7 +622,7 @@ private function get_single_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'checkout', ], @@ -644,7 +644,7 @@ private function get_multi_step_template() { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'desc' => '', 'fields' => [ [ @@ -658,7 +658,7 @@ private function get_multi_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Next Step', 'multisite-ultimate'), + 'name' => __('Next Step', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'next_step', ], @@ -666,12 +666,12 @@ private function get_multi_step_template() { ], [ 'id' => 'site', - 'name' => __('Site Info', 'multisite-ultimate'), + 'name' => __('Site Info', 'ultimate-multisite'), 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Site Title', 'multisite-ultimate'), + 'name' => __('Site Title', 'ultimate-multisite'), 'type' => 'site_title', 'id' => 'site_title', 'required' => true, @@ -681,7 +681,7 @@ private function get_multi_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Site URL', 'multisite-ultimate'), + 'name' => __('Site URL', 'ultimate-multisite'), 'type' => 'site_url', 'id' => 'site_url', 'required' => true, @@ -692,7 +692,7 @@ private function get_multi_step_template() { ], [ 'step' => 'site', - 'name' => __('Next Step', 'multisite-ultimate'), + 'name' => __('Next Step', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'next_step_site', ], @@ -700,13 +700,13 @@ private function get_multi_step_template() { ], [ 'id' => 'user', - 'name' => __('User Info', 'multisite-ultimate'), + 'name' => __('User Info', 'ultimate-multisite'), 'logged' => 'guests_only', 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Email', 'multisite-ultimate'), + 'name' => __('Email', 'ultimate-multisite'), 'type' => 'email', 'id' => 'email_address', 'required' => true, @@ -715,7 +715,7 @@ private function get_multi_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Username', 'multisite-ultimate'), + 'name' => __('Username', 'ultimate-multisite'), 'type' => 'username', 'id' => 'username', 'required' => true, @@ -725,7 +725,7 @@ private function get_multi_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Password', 'multisite-ultimate'), + 'name' => __('Password', 'ultimate-multisite'), 'type' => 'password', 'id' => 'password', 'required' => true, @@ -736,7 +736,7 @@ private function get_multi_step_template() { ], [ 'step' => 'user', - 'name' => __('Next Step', 'multisite-ultimate'), + 'name' => __('Next Step', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'next_step_user', ], @@ -744,12 +744,12 @@ private function get_multi_step_template() { ], [ 'id' => 'payment', - 'name' => __('Payment', 'multisite-ultimate'), + 'name' => __('Payment', 'ultimate-multisite'), 'desc' => '', 'fields' => [ [ 'step' => 'checkout', - 'name' => __('Your Order', 'multisite-ultimate'), + 'name' => __('Your Order', 'ultimate-multisite'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -757,13 +757,13 @@ private function get_multi_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'multisite-ultimate'), + 'name' => __('Payment Method', 'ultimate-multisite'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Billing Address', 'multisite-ultimate'), + 'name' => __('Billing Address', 'ultimate-multisite'), 'type' => 'billing_address', 'id' => 'billing_address', 'required' => true, @@ -771,7 +771,7 @@ private function get_multi_step_template() { ], [ 'step' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'checkout', ], @@ -830,17 +830,17 @@ public static function convert_steps_to_v2($steps, $old_settings = []) { 'enable_price_1' => [ 'duration' => '1', 'duration_unit' => 'month', - 'label' => __('Monthly', 'multisite-ultimate'), + 'label' => __('Monthly', 'ultimate-multisite'), ], 'enable_price_3' => [ 'duration' => '3', 'duration_unit' => 'month', - 'label' => __('Quarterly', 'multisite-ultimate'), + 'label' => __('Quarterly', 'ultimate-multisite'), ], 'enable_price_12' => [ 'duration' => '1', 'duration_unit' => 'year', - 'label' => __('Yearly', 'multisite-ultimate'), + 'label' => __('Yearly', 'ultimate-multisite'), ], ]; @@ -865,7 +865,7 @@ public static function convert_steps_to_v2($steps, $old_settings = []) { } $step['fields']['pricing_table'] = [ - 'name' => __('Pricing Tables', 'multisite-ultimate'), + 'name' => __('Pricing Tables', 'ultimate-multisite'), 'id' => 'pricing_table', 'type' => 'pricing_table', 'pricing_table_template' => 'legacy', @@ -891,7 +891,7 @@ public static function convert_steps_to_v2($steps, $old_settings = []) { $step['fields'] = [ 'template_selection' => [ - 'name' => __('Template Selection', 'multisite-ultimate'), + 'name' => __('Template Selection', 'ultimate-multisite'), 'id' => 'template_selection', 'type' => 'template_selection', 'template_selection_template' => 'legacy', @@ -938,7 +938,7 @@ public static function convert_steps_to_v2($steps, $old_settings = []) { $field['id'] = 'password'; $field['password_strength_meter'] = false; $field['password_confirm_field'] = true; - $field['password_confirm_label'] = wu_get_isset($step['fields']['user_pass_conf'], 'name', __('Confirm Password', 'multisite-ultimate')); + $field['password_confirm_label'] = wu_get_isset($step['fields']['user_pass_conf'], 'name', __('Confirm Password', 'ultimate-multisite')); break; case 'user_email': @@ -969,7 +969,7 @@ public static function convert_steps_to_v2($steps, $old_settings = []) { $field['id'] = 'submit_button'; if ('account' === $step_id) { - $field['name'] = __('Continue to the Next Step', 'multisite-ultimate'); + $field['name'] = __('Continue to the Next Step', 'ultimate-multisite'); } break; @@ -990,17 +990,17 @@ public static function convert_steps_to_v2($steps, $old_settings = []) { */ $new_format[] = [ 'id' => 'payment', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'fields' => [ [ - 'name' => __('Order Summary', 'multisite-ultimate'), + 'name' => __('Order Summary', 'ultimate-multisite'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', 'table_columns' => 'simple', ], [ - 'name' => __('Billing Address', 'multisite-ultimate'), + 'name' => __('Billing Address', 'ultimate-multisite'), 'type' => 'billing_address', 'id' => 'billing_address', 'zip_and_country' => true, @@ -1008,19 +1008,19 @@ public static function convert_steps_to_v2($steps, $old_settings = []) { [ 'type' => 'discount_code', 'id' => 'discount_code', - 'name' => __('Coupon Code', 'multisite-ultimate'), - 'tooltip' => __('Coupon Code', 'multisite-ultimate'), + 'name' => __('Coupon Code', 'ultimate-multisite'), + 'tooltip' => __('Coupon Code', 'ultimate-multisite'), 'display_checkbox' => true, ], [ - 'name' => __('Payment Methods', 'multisite-ultimate'), + 'name' => __('Payment Methods', 'ultimate-multisite'), 'type' => 'payment', 'id' => 'payment', ], [ 'type' => 'submit_button', 'id' => 'submit_button', - 'name' => __('Pay & Create Account', 'multisite-ultimate'), + 'name' => __('Pay & Create Account', 'ultimate-multisite'), ], ], ]; @@ -1210,7 +1210,7 @@ public static function finish_checkout_form_fields() { $fields = [ [ 'step' => 'checkout', - 'name' => __('Your Order', 'multisite-ultimate'), + 'name' => __('Your Order', 'ultimate-multisite'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -1218,13 +1218,13 @@ public static function finish_checkout_form_fields() { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'multisite-ultimate'), + 'name' => __('Payment Method', 'ultimate-multisite'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Finish Payment', 'multisite-ultimate'), + 'name' => __('Finish Payment', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'checkout', 'order' => 0, @@ -1234,7 +1234,7 @@ public static function finish_checkout_form_fields() { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'desc' => '', 'fields' => $fields, ], @@ -1310,7 +1310,7 @@ public static function membership_change_form_fields() { $label = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('%2$s', '%1$s %2$s', $product->get_duration(), 'multisite-ultimate'), // phpcs:ignore + _n('%2$s', '%1$s %2$s', $product->get_duration(), 'ultimate-multisite'), // phpcs:ignore $product->get_duration(), wu_get_translatable_string($product->get_duration() <= 1 ? $product->get_duration_unit() : $product->get_duration_unit() . 's') ); @@ -1341,7 +1341,7 @@ public static function membership_change_form_fields() { $label = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('%2$s', '%1$s %2$s', $variation['duration'], 'multisite-ultimate'), // phpcs:ignore + _n('%2$s', '%1$s %2$s', $variation['duration'], 'ultimate-multisite'), // phpcs:ignore $variation['duration'], wu_get_translatable_string($variation['duration'] <= 1 ? $variation['duration_unit'] : $variation['duration_unit'] . 's') ); @@ -1369,7 +1369,7 @@ public static function membership_change_form_fields() { $fields[] = [ 'step' => 'checkout', - 'name' => __('Plans', 'multisite-ultimate'), + 'name' => __('Plans', 'ultimate-multisite'), 'type' => 'pricing_table', 'id' => 'pricing_table', 'required' => true, @@ -1404,7 +1404,7 @@ public static function membership_change_form_fields() { $end_fields = [ [ 'step' => 'checkout', - 'name' => __('Your Order', 'multisite-ultimate'), + 'name' => __('Your Order', 'ultimate-multisite'), 'type' => 'order_summary', 'id' => 'order_summary', 'order_summary_template' => 'clean', @@ -1412,13 +1412,13 @@ public static function membership_change_form_fields() { ], [ 'step' => 'checkout', - 'name' => __('Payment Method', 'multisite-ultimate'), + 'name' => __('Payment Method', 'ultimate-multisite'), 'type' => 'payment', 'id' => 'payment', ], [ 'step' => 'checkout', - 'name' => __('Complete Checkout', 'multisite-ultimate'), + 'name' => __('Complete Checkout', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'checkout', 'order' => 0, @@ -1430,7 +1430,7 @@ public static function membership_change_form_fields() { $steps = [ [ 'id' => 'checkout', - 'name' => __('Checkout', 'multisite-ultimate'), + 'name' => __('Checkout', 'ultimate-multisite'), 'desc' => '', 'fields' => $fields, ], @@ -1466,7 +1466,7 @@ public static function add_new_site_form_fields() { $template_selection_fields = [ [ 'step' => 'template', - 'name' => __('Template Selection', 'multisite-ultimate'), + 'name' => __('Template Selection', 'ultimate-multisite'), 'type' => 'template_selection', 'id' => 'template_selection', 'cols' => 4, @@ -1483,7 +1483,7 @@ public static function add_new_site_form_fields() { $steps[] = [ 'id' => 'template', - 'name' => __('Template Selection', 'multisite-ultimate'), + 'name' => __('Template Selection', 'ultimate-multisite'), 'desc' => '', 'fields' => $template_selection_fields, ]; @@ -1519,7 +1519,7 @@ public static function add_new_site_form_fields() { $final_fields[] = [ 'step' => 'create', 'id' => 'site_title', - 'name' => __('Site Title', 'multisite-ultimate'), + 'name' => __('Site Title', 'ultimate-multisite'), 'tooltip' => '', 'placeholder' => '', 'type' => 'site_title', @@ -1530,7 +1530,7 @@ public static function add_new_site_form_fields() { $final_fields[] = [ 'step' => 'create', 'id' => 'site_url', - 'name' => __('Site URL', 'multisite-ultimate'), + 'name' => __('Site URL', 'ultimate-multisite'), 'tooltip' => '', 'placeholder' => '', 'display_field_attachments' => false, @@ -1541,7 +1541,7 @@ public static function add_new_site_form_fields() { $final_fields[] = [ 'step' => 'create', - 'name' => __('Create Site', 'multisite-ultimate'), + 'name' => __('Create Site', 'ultimate-multisite'), 'type' => 'submit_button', 'id' => 'checkout', 'order' => 0, @@ -1549,7 +1549,7 @@ public static function add_new_site_form_fields() { $steps[] = [ 'id' => 'create', - 'name' => __('Create Site', 'multisite-ultimate'), + 'name' => __('Create Site', 'ultimate-multisite'), 'desc' => '', 'classes' => 'wu-max-w-sm', 'fields' => $final_fields, diff --git a/inc/models/class-customer.php b/inc/models/class-customer.php index f19a8804c..7a377d15d 100644 --- a/inc/models/class-customer.php +++ b/inc/models/class-customer.php @@ -203,7 +203,7 @@ public function get_display_name() { $user = $this->get_user(); if (empty($user)) { - return __('User Deleted', 'multisite-ultimate'); + return __('User Deleted', 'ultimate-multisite'); } return $user->display_name; @@ -259,7 +259,7 @@ public function get_username() { $user = $this->get_user(); if (empty($user)) { - return __('none', 'multisite-ultimate'); + return __('none', 'ultimate-multisite'); } return $user->user_login; @@ -276,7 +276,7 @@ public function get_email_address() { $user = $this->get_user(); if (empty($user)) { - return __('none', 'multisite-ultimate'); + return __('none', 'ultimate-multisite'); } return $user->user_email; diff --git a/inc/models/class-discount-code.php b/inc/models/class-discount-code.php index e5c8875bc..637739f36 100644 --- a/inc/models/class-discount-code.php +++ b/inc/models/class-discount-code.php @@ -465,14 +465,14 @@ public function is_active() { public function is_valid($product = false) { if ($this->is_active() === false) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'multisite-ultimate')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'ultimate-multisite')); } /* * Check for uses */ if ($this->has_max_uses() && $this->get_uses() >= $this->get_max_uses()) { - return new \WP_Error('discount_code', __('This discount code was already redeemed the maximum amount of times allowed.', 'multisite-ultimate')); + return new \WP_Error('discount_code', __('This discount code was already redeemed the maximum amount of times allowed.', 'ultimate-multisite')); } /* @@ -487,7 +487,7 @@ public function is_valid($product = false) { $start_date_instance = wu_date($start_date); if ($now < $start_date_instance) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'multisite-ultimate')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'ultimate-multisite')); } } @@ -495,7 +495,7 @@ public function is_valid($product = false) { $expiration_date_instance = wu_date($expiration_date); if ($now > $expiration_date_instance) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'multisite-ultimate')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'ultimate-multisite')); } } @@ -513,7 +513,7 @@ public function is_valid($product = false) { $allowed = $this->get_limit_products() && in_array($product_id, $this->get_allowed_products()); // phpcs:ignore if (false === $allowed) { - return new \WP_Error('discount_code', __('This coupon code is not valid.', 'multisite-ultimate')); + return new \WP_Error('discount_code', __('This coupon code is not valid.', 'ultimate-multisite')); } } @@ -638,7 +638,7 @@ public function get_discount_description(): string { $description[] = sprintf( // translators: placeholder is the value off. Can be wither $X.XX or X% - __('%1$s OFF on Subscriptions', 'multisite-ultimate'), + __('%1$s OFF on Subscriptions', 'ultimate-multisite'), $value ); } @@ -652,12 +652,12 @@ public function get_discount_description(): string { $description[] = sprintf( // translators: placeholder is the value off. Can be wither $X.XX or X% - __('%1$s OFF on Setup Fees', 'multisite-ultimate'), + __('%1$s OFF on Setup Fees', 'ultimate-multisite'), $setup_fee_value ); } - return implode(' ' . __('and', 'multisite-ultimate') . ' ', $description); + return implode(' ' . __('and', 'ultimate-multisite') . ' ', $description); } /** diff --git a/inc/models/class-domain.php b/inc/models/class-domain.php index b5dfaff71..1bde5da85 100644 --- a/inc/models/class-domain.php +++ b/inc/models/class-domain.php @@ -538,7 +538,7 @@ public function delete() { */ wu_log_clear("domain-{$this->get_domain()}"); - wu_log_add("domain-{$this->get_domain()}", __('Domain deleted and logs cleared...', 'multisite-ultimate')); + wu_log_add("domain-{$this->get_domain()}", __('Domain deleted and logs cleared...', 'ultimate-multisite')); return $results; } diff --git a/inc/models/class-event.php b/inc/models/class-event.php index 41a6e3dec..7ae12734b 100644 --- a/inc/models/class-event.php +++ b/inc/models/class-event.php @@ -156,14 +156,14 @@ public function get_severity() { public function get_severity_label() { $labels = [ - self::SEVERITY_SUCCESS => __('Success', 'multisite-ultimate'), - self::SEVERITY_NEUTRAL => __('Neutral', 'multisite-ultimate'), - self::SEVERITY_INFO => __('Info', 'multisite-ultimate'), - self::SEVERITY_WARNING => __('Warning', 'multisite-ultimate'), - self::SEVERITY_FATAL => __('Fatal', 'multisite-ultimate'), + self::SEVERITY_SUCCESS => __('Success', 'ultimate-multisite'), + self::SEVERITY_NEUTRAL => __('Neutral', 'ultimate-multisite'), + self::SEVERITY_INFO => __('Info', 'ultimate-multisite'), + self::SEVERITY_WARNING => __('Warning', 'ultimate-multisite'), + self::SEVERITY_FATAL => __('Fatal', 'ultimate-multisite'), ]; - return $labels[ $this->get_severity() ] ?? __('Note', 'multisite-ultimate'); + return $labels[ $this->get_severity() ] ?? __('Note', 'ultimate-multisite'); } /** @@ -303,12 +303,12 @@ public static function get_default_system_messages($slug) { $default_messages = []; - $default_messages['changed'] = __('The {{model}} #{{object_id}} was changed: {{payload}}', 'multisite-ultimate'); - $default_messages['created'] = __('The {{model}} #{{object_id}} was created.', 'multisite-ultimate'); + $default_messages['changed'] = __('The {{model}} #{{object_id}} was changed: {{payload}}', 'ultimate-multisite'); + $default_messages['created'] = __('The {{model}} #{{object_id}} was created.', 'ultimate-multisite'); $default_messages = apply_filters('wu_get_default_system_messages', $default_messages); - return wu_get_isset($default_messages, $slug, __('No Message', 'multisite-ultimate')); + return wu_get_isset($default_messages, $slug, __('No Message', 'ultimate-multisite')); } diff --git a/inc/models/class-membership.php b/inc/models/class-membership.php index 5a96c1611..282e13a06 100644 --- a/inc/models/class-membership.php +++ b/inc/models/class-membership.php @@ -670,7 +670,7 @@ public function set_addon_products($addon_products): void { public function swap($order) { if ( ! is_a($order, Cart::class)) { - return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'multisite-ultimate')); + return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'ultimate-multisite')); } // clear the current addons. @@ -743,11 +743,11 @@ public function schedule_swap($order, $schedule_date = false) { } if ( ! wu_validate_date($schedule_date)) { - return new \WP_Error('invalid-date', __('Schedule date is invalid.', 'multisite-ultimate')); + return new \WP_Error('invalid-date', __('Schedule date is invalid.', 'ultimate-multisite')); } if ( ! is_a($order, Cart::class)) { - return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'multisite-ultimate')); + return new \WP_Error('invalid-date', __('Swap Cart is invalid.', 'ultimate-multisite')); } $date_instance = wu_date($schedule_date); @@ -831,7 +831,7 @@ public function get_recurring_description() { $description = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'multisite-ultimate'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'ultimate-multisite'), // phpcs:ignore $this->get_duration(), wu_get_translatable_string(($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's')) ); @@ -847,12 +847,12 @@ public function get_recurring_description() { public function get_times_billed_description(): string { // translators: times billed / subscription duration in cycles. e.g. 1/12 cycles - $description = __('%1$s / %2$s cycles', 'multisite-ultimate'); + $description = __('%1$s / %2$s cycles', 'ultimate-multisite'); if ($this->is_forever_recurring()) { // translators: the place holder is the number of times the membership was billed. - $description = __('%1$s / until cancelled', 'multisite-ultimate'); + $description = __('%1$s / until cancelled', 'ultimate-multisite'); } return sprintf($description, $this->get_times_billed(), $this->get_billing_cycles()); @@ -872,7 +872,7 @@ public function get_price_description(): string { $message = sprintf( // translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc) - _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'multisite-ultimate'), // phpcs:ignore + _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'ultimate-multisite'), // phpcs:ignore wu_format_currency($this->get_amount(), $this->get_currency()), $duration, wu_get_translatable_string($duration <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's') @@ -883,7 +883,7 @@ public function get_price_description(): string { if ( ! $this->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'multisite-ultimate'), + _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'ultimate-multisite'), $this->get_billing_cycles() ); @@ -892,13 +892,13 @@ public function get_price_description(): string { } else { $pricing['subscription'] = sprintf( // translators: %1$s is the formatted price of the product - __('%1$s one time payment', 'multisite-ultimate'), + __('%1$s one time payment', 'ultimate-multisite'), wu_format_currency($this->get_initial_amount(), $this->get_currency()) ); } if ($this->is_free()) { - $pricing['subscription'] = __('Free!', 'multisite-ultimate'); + $pricing['subscription'] = __('Free!', 'ultimate-multisite'); } return implode(' + ', $pricing); diff --git a/inc/models/class-payment.php b/inc/models/class-payment.php index 7536c2c00..5919865eb 100644 --- a/inc/models/class-payment.php +++ b/inc/models/class-payment.php @@ -549,13 +549,13 @@ public function get_payment_method() { $gateway = $this->get_gateway(); if ( ! $gateway) { - return __('None', 'multisite-ultimate'); + return __('None', 'ultimate-multisite'); } $gateway_class = wu_get_gateway($gateway); if ( ! $gateway_class) { - return __('None', 'multisite-ultimate'); + return __('None', 'ultimate-multisite'); } $title = $gateway_class->get_public_title(); @@ -938,7 +938,7 @@ public function get_invoice_number() { $prefix = str_replace($search, $replace, (string) $prefix); - return sprintf('%s%s %s', $prefix, $this->invoice_number, $provisional ? __('(provisional)', 'multisite-ultimate') : ''); + return sprintf('%s%s %s', $prefix, $this->invoice_number, $provisional ? __('(provisional)', 'ultimate-multisite') : ''); } /** @@ -1058,11 +1058,11 @@ public function refund($amount = false, $should_cancel_membership_on_refund = nu * it is a partial refund. */ if ($amount >= $this->get_total()) { - $title = __('Full Refund', 'multisite-ultimate'); + $title = __('Full Refund', 'ultimate-multisite'); $new_status = Payment_Status::REFUND; } else { - $title = __('Partial Refund', 'multisite-ultimate'); + $title = __('Partial Refund', 'ultimate-multisite'); $new_status = Payment_Status::PARTIAL_REFUND; } @@ -1072,7 +1072,7 @@ public function refund($amount = false, $should_cancel_membership_on_refund = nu $formatted_value = date_i18n(get_option('date_format'), $time); // translators: %s is the date of processing. - $description = sprintf(__('Processed on %s', 'multisite-ultimate'), $formatted_value); + $description = sprintf(__('Processed on %s', 'ultimate-multisite'), $formatted_value); $line_item_data = [ 'type' => 'refund', diff --git a/inc/models/class-product.php b/inc/models/class-product.php index c5ce2fea5..534025b89 100644 --- a/inc/models/class-product.php +++ b/inc/models/class-product.php @@ -633,11 +633,11 @@ public function get_amount() { public function get_formatted_amount($key = 'amount') { if ($this->is_free()) { - return __('Free!', 'multisite-ultimate'); + return __('Free!', 'ultimate-multisite'); } if ($this->get_pricing_type() === 'contact_us') { - return $this->get_contact_us_label() ?: __('Contact Us', 'multisite-ultimate'); + return $this->get_contact_us_label() ?: __('Contact Us', 'ultimate-multisite'); } return wu_format_currency($this->get_amount(), $this->get_currency()); @@ -710,11 +710,11 @@ public function get_price_description($include_fees = true) { $pricing = []; if ($this->get_pricing_type() === 'contact_us') { - return __('Contact us', 'multisite-ultimate'); + return __('Contact us', 'ultimate-multisite'); } if ($this->is_free()) { - return __('Free!', 'multisite-ultimate'); + return __('Free!', 'ultimate-multisite'); } if ($this->is_recurring()) { @@ -722,7 +722,7 @@ public function get_price_description($include_fees = true) { $message = sprintf( // translators: %1$s is the formatted price, %2$s the duration, and %3$s the duration unit (day, week, month, etc) - _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'multisite-ultimate'), // phpcs:ignore + _n('%1$s every %3$s', '%1$s every %2$s %3$s', $duration, 'ultimate-multisite'), // phpcs:ignore wu_format_currency($this->get_amount(), $this->get_currency()), $duration, wu_get_translatable_string($duration <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's') @@ -733,7 +733,7 @@ public function get_price_description($include_fees = true) { if ( ! $this->is_forever_recurring()) { $billing_cycles_message = sprintf( // translators: %s is the number of billing cycles. - _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'multisite-ultimate'), + _n('for %s cycle', 'for %s cycles', $this->get_billing_cycles(), 'ultimate-multisite'), $this->get_billing_cycles() ); @@ -742,7 +742,7 @@ public function get_price_description($include_fees = true) { } else { $pricing['subscription'] = sprintf( // translators: %1$s is the formatted price of the product - __('%1$s one time payment', 'multisite-ultimate'), + __('%1$s one time payment', 'ultimate-multisite'), wu_format_currency($this->get_amount(), $this->get_currency()) ); } @@ -750,7 +750,7 @@ public function get_price_description($include_fees = true) { if ($this->has_setup_fee() && $include_fees) { $pricing['fee'] = sprintf( // translators: %1$s is the formatted price of the setup fee - __('Setup Fee of %1$s', 'multisite-ultimate'), + __('Setup Fee of %1$s', 'ultimate-multisite'), wu_format_currency($this->get_setup_fee(), $this->get_currency()) ); } @@ -771,12 +771,12 @@ public function get_recurring_description() { } if ( ! $this->is_recurring()) { - return __('one-time payment', 'multisite-ultimate'); + return __('one-time payment', 'ultimate-multisite'); } $description = sprintf( // translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc) - _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'multisite-ultimate'), // phpcs:ignore + _n('every %2$s', 'every %1$s %2$s', $this->get_duration(), 'ultimate-multisite'), // phpcs:ignore $this->get_duration(), wu_get_translatable_string($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's') ); diff --git a/inc/models/class-site.php b/inc/models/class-site.php index 2efc7ee6d..3f35d19c1 100644 --- a/inc/models/class-site.php +++ b/inc/models/class-site.php @@ -1432,7 +1432,7 @@ public function is_customer_primary_site() { public function delete() { if ( ! $this->get_id()) { - return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'multisite-ultimate')); + return new \WP_Error("wu_{$this->model}_delete_unsaved_item", __('Item not found.', 'ultimate-multisite')); } /** diff --git a/inc/objects/class-billing-address.php b/inc/objects/class-billing-address.php index 328f2d8f9..d66cd8e5b 100644 --- a/inc/objects/class-billing-address.php +++ b/inc/objects/class-billing-address.php @@ -258,38 +258,38 @@ public static function fields($zip_only = false, $checkout_form = false) { $fields['company_name'] = [ 'type' => 'text', - 'title' => __('Company Name', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. Google (optional)', 'multisite-ultimate'), + 'title' => __('Company Name', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. Google (optional)', 'ultimate-multisite'), 'wrapper_classes' => 'sm:wu-col-span-1', ]; $fields['billing_email'] = [ 'type' => 'text', - 'title' => __('Billing Email', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. john@company.com', 'multisite-ultimate'), + 'title' => __('Billing Email', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. john@company.com', 'ultimate-multisite'), 'wrapper_classes' => 'sm:wu-col-span-1', 'required' => true, ]; $fields['billing_address_line_1'] = [ 'type' => 'text', - 'title' => __('Address Line 1', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. 555 1st Avenue', 'multisite-ultimate'), + 'title' => __('Address Line 1', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. 555 1st Avenue', 'ultimate-multisite'), 'wrapper_classes' => 'wu-col-span-2', 'required' => true, ]; $fields['billing_address_line_2'] = [ 'type' => 'text', - 'title' => __('Address Line 2', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. Apartment 10a', 'multisite-ultimate'), + 'title' => __('Address Line 2', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. Apartment 10a', 'ultimate-multisite'), 'wrapper_classes' => 'wu-col-span-2', ]; $fields['billing_country'] = [ 'type' => 'select', - 'title' => __('Country', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. US', 'multisite-ultimate'), + 'title' => __('Country', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. US', 'ultimate-multisite'), 'wrapper_classes' => 'sm:wu-col-span-1', 'value' => ' ', 'options' => $countries, @@ -298,22 +298,22 @@ public static function fields($zip_only = false, $checkout_form = false) { $fields['billing_state'] = [ 'type' => 'text', - 'title' => __('State / Province', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. NY', 'multisite-ultimate'), + 'title' => __('State / Province', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. NY', 'ultimate-multisite'), 'wrapper_classes' => 'sm:wu-col-span-1', ]; $fields['billing_city'] = [ 'type' => 'text', - 'title' => __('City / Town', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. New York City', 'multisite-ultimate'), + 'title' => __('City / Town', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. New York City', 'ultimate-multisite'), 'wrapper_classes' => 'sm:wu-col-span-1', ]; $fields['billing_zip_code'] = [ 'type' => 'text', - 'title' => __('ZIP / Postal Code', 'multisite-ultimate'), - 'default_placeholder' => __('E.g. 10009', 'multisite-ultimate'), + 'title' => __('ZIP / Postal Code', 'ultimate-multisite'), + 'default_placeholder' => __('E.g. 10009', 'ultimate-multisite'), 'wrapper_classes' => 'sm:wu-col-span-1', 'required' => true, ]; diff --git a/inc/objects/class-note.php b/inc/objects/class-note.php index 95658aefd..1a0a66f69 100644 --- a/inc/objects/class-note.php +++ b/inc/objects/class-note.php @@ -195,17 +195,17 @@ public static function fields() { $fields['text'] = [ 'type' => 'text', - 'title' => __('Text', 'multisite-ultimate'), + 'title' => __('Text', 'ultimate-multisite'), ]; $fields['author_id'] = [ 'type' => 'number', - 'title' => __('Author ID', 'multisite-ultimate'), + 'title' => __('Author ID', 'ultimate-multisite'), ]; $fields['note_id'] = [ 'type' => 'text', - 'title' => __('Note ID', 'multisite-ultimate'), + 'title' => __('Note ID', 'ultimate-multisite'), ]; uasort($fields, 'wu_sort_by_order'); diff --git a/inc/site-templates/class-template-placeholders.php b/inc/site-templates/class-template-placeholders.php index fc05ba01b..58ef28377 100644 --- a/inc/site-templates/class-template-placeholders.php +++ b/inc/site-templates/class-template-placeholders.php @@ -161,7 +161,7 @@ public function save_placeholders(): void { wp_send_json( [ 'code' => 'not-enough-permissions', - 'message' => __('You don\'t have permission to alter placeholders.', 'multisite-ultimate'), + 'message' => __('You don\'t have permission to alter placeholders.', 'ultimate-multisite'), ] ); } @@ -177,7 +177,7 @@ public function save_placeholders(): void { wp_send_json( [ 'code' => 'invalid-input', - 'message' => __('The JSON provided is invalid', 'multisite-ultimate'), + 'message' => __('The JSON provided is invalid', 'ultimate-multisite'), ] ); } @@ -195,7 +195,7 @@ public function save_placeholders(): void { wp_send_json( [ 'code' => 'success', - 'message' => __('Placeholders successfully updated!', 'multisite-ultimate'), + 'message' => __('Placeholders successfully updated!', 'ultimate-multisite'), ] ); } diff --git a/inc/sso/class-sso.php b/inc/sso/class-sso.php index 54edf1606..cb3ddecd3 100644 --- a/inc/sso/class-sso.php +++ b/inc/sso/class-sso.php @@ -949,7 +949,7 @@ public function calculate_secret_from_date($date) { try { $int_version = (int) \DateTime::createFromFormat('Y-m-d H:i:s', $date, $tz)->format('mdisY'); } catch (\Throwable $exception) { - throw new SSO_Exception(esc_html__('SSO secret creation failed.', 'multisite-ultimate'), 500); + throw new SSO_Exception(esc_html__('SSO secret creation failed.', 'ultimate-multisite'), 500); } return wp_hash($int_version); diff --git a/inc/tax/class-dashboard-taxes-tab.php b/inc/tax/class-dashboard-taxes-tab.php index c190a10da..6582b5f93 100644 --- a/inc/tax/class-dashboard-taxes-tab.php +++ b/inc/tax/class-dashboard-taxes-tab.php @@ -60,7 +60,7 @@ public function add_tab($dashboard_filters) { $dashboard_filters['taxes'] = [ 'field' => 'type', - 'label' => __('Taxes', 'multisite-ultimate'), + 'label' => __('Taxes', 'ultimate-multisite'), 'url' => add_query_arg('tab', 'taxes'), 'count' => 0, ]; @@ -78,9 +78,9 @@ public function disabled_message(): void { wu_render_empty_state( [ - 'message' => __('You do not have tax support enabled yet...', 'multisite-ultimate'), - 'sub_message' => __('If you need to collect taxes, you\'ll be glad to hear that Multisite Ultimate offers tax support!', 'multisite-ultimate'), - 'link_label' => __('Enable Tax Support', 'multisite-ultimate'), + 'message' => __('You do not have tax support enabled yet...', 'ultimate-multisite'), + 'sub_message' => __('If you need to collect taxes, you\'ll be glad to hear that Multisite Ultimate offers tax support!', 'ultimate-multisite'), + 'link_label' => __('Enable Tax Support', 'ultimate-multisite'), 'link_url' => wu_network_admin_url( 'wp-ultimo-settings', [ @@ -104,7 +104,7 @@ public function add_back_link($links) { $back_link = [ [ 'url' => wu_network_admin_url('wp-ultimo'), - 'label' => __('Go Back', 'multisite-ultimate'), + 'label' => __('Go Back', 'ultimate-multisite'), 'icon' => 'wu-reply', ], ]; @@ -148,11 +148,11 @@ public function register_widgets($tab, $screen, $dashboard_page): void { $this->dashboard_page = $dashboard_page; - add_meta_box('wp-ultimo-taxes', __('Taxes', 'multisite-ultimate'), [$this, 'output_widget_taxes'], $screen->id, 'full', 'high'); + add_meta_box('wp-ultimo-taxes', __('Taxes', 'ultimate-multisite'), [$this, 'output_widget_taxes'], $screen->id, 'full', 'high'); - add_meta_box('wp-ultimo-taxes-by-rate', __('Taxes by Code', 'multisite-ultimate'), [$this, 'output_widget_taxes_by_rate'], $screen->id, 'normal', 'high'); + add_meta_box('wp-ultimo-taxes-by-rate', __('Taxes by Code', 'ultimate-multisite'), [$this, 'output_widget_taxes_by_rate'], $screen->id, 'normal', 'high'); - add_meta_box('wp-ultimo-taxes-by-day', __('Taxes by Day', 'multisite-ultimate'), [$this, 'output_widget_taxes_by_day'], $screen->id, 'side', 'high'); + add_meta_box('wp-ultimo-taxes-by-day', __('Taxes by Day', 'ultimate-multisite'), [$this, 'output_widget_taxes_by_day'], $screen->id, 'side', 'high'); $this->register_scripts(); } @@ -211,8 +211,8 @@ public function register_scripts(): void { 'today' => date_i18n('Y-m-d', strtotime('tomorrow')), 'month_list' => $month_list, 'i18n' => [ - 'net_profit_label' => __('Net Profit', 'multisite-ultimate'), - 'taxes_label' => __('Taxes Collected', 'multisite-ultimate'), + 'net_profit_label' => __('Net Profit', 'ultimate-multisite'), + 'taxes_label' => __('Taxes Collected', 'ultimate-multisite'), ], ] ); diff --git a/inc/tax/class-tax.php b/inc/tax/class-tax.php index ed8851e19..6299a9965 100644 --- a/inc/tax/class-tax.php +++ b/inc/tax/class-tax.php @@ -101,8 +101,8 @@ public function add_settings(): void { wu_register_settings_section( 'taxes', [ - 'title' => __('Taxes', 'multisite-ultimate'), - 'desc' => __('Taxes', 'multisite-ultimate'), + 'title' => __('Taxes', 'ultimate-multisite'), + 'desc' => __('Taxes', 'ultimate-multisite'), 'icon' => 'dashicons-wu-percent', 'order' => 55, ] @@ -112,8 +112,8 @@ public function add_settings(): void { 'taxes', 'enable_taxes', [ - 'title' => __('Enable Taxes', 'multisite-ultimate'), - 'desc' => __('Enable this option to be able to collect sales taxes on your network payments.', 'multisite-ultimate'), + 'title' => __('Enable Taxes', 'ultimate-multisite'), + 'desc' => __('Enable this option to be able to collect sales taxes on your network payments.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, ] @@ -123,8 +123,8 @@ public function add_settings(): void { 'taxes', 'inclusive_tax', [ - 'title' => __('Inclusive Tax', 'multisite-ultimate'), - 'desc' => __('Enable this option if your prices include taxes. In that case, Multisite Ultimate will calculate the included tax instead of adding taxes to the price.', 'multisite-ultimate'), + 'title' => __('Inclusive Tax', 'ultimate-multisite'), + 'desc' => __('Enable this option if your prices include taxes. In that case, Multisite Ultimate will calculate the included tax instead of adding taxes to the price.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 0, 'require' => [ @@ -145,7 +145,7 @@ public function add_sidebar_widget(): void { wu_register_settings_side_panel( 'taxes', [ - 'title' => __('Tax Rates', 'multisite-ultimate'), + 'title' => __('Tax Rates', 'ultimate-multisite'), 'render' => [$this, 'render_taxes_side_panel'], ] ); @@ -186,7 +186,7 @@ public function get_tax_rate_types() { return apply_filters( 'wu_get_tax_rate_types', [ - 'regular' => __('Regular', 'multisite-ultimate'), + 'regular' => __('Regular', 'ultimate-multisite'), ] ); } @@ -201,7 +201,7 @@ public function get_tax_rate_defaults() { $defaults = [ 'id' => uniqid(), - 'title' => __('Tax Rate', 'multisite-ultimate'), + 'title' => __('Tax Rate', 'ultimate-multisite'), 'country' => '', 'state' => '', 'city' => '', @@ -229,7 +229,7 @@ public function get_tax_rates($fetch_state_options = false) { 'tax_rates', [ 'default' => [ - 'name' => __('Default', 'multisite-ultimate'), + 'name' => __('Default', 'ultimate-multisite'), 'rates' => [], ], ] @@ -292,7 +292,7 @@ public function save_taxes_rates(): void { wp_send_json( [ 'code' => 'not-enough-permissions', - 'message' => __('You don\'t have permission to alter tax rates', 'multisite-ultimate'), + 'message' => __('You don\'t have permission to alter tax rates', 'ultimate-multisite'), ] ); } @@ -311,7 +311,7 @@ public function save_taxes_rates(): void { wp_send_json( [ 'code' => 'tax-rates-not-found', - 'message' => __('No tax rates present in the request', 'multisite-ultimate'), + 'message' => __('No tax rates present in the request', 'ultimate-multisite'), ] ); } @@ -343,7 +343,7 @@ function ($item) { wp_send_json( [ 'code' => 'success', - 'message' => __('Tax Rates successfully updated!', 'multisite-ultimate'), + 'message' => __('Tax Rates successfully updated!', 'ultimate-multisite'), 'tax_category' => strtolower(sanitize_title(wu_get_isset($data, 'tax_category', 'default'))), ] ); @@ -383,21 +383,21 @@ public function render_taxes_side_panel(): void {
- +
- <?php esc_attr_e('Manage Tax Rates', 'multisite-ultimate'); ?> + <?php esc_attr_e('Manage Tax Rates', 'ultimate-multisite'); ?>

- +

- +
@@ -405,17 +405,17 @@ public function render_taxes_side_panel(): void {
- +
- +
diff --git a/inc/traits/trait-wp-ultimo-coupon-deprecated.php b/inc/traits/trait-wp-ultimo-coupon-deprecated.php index 9475223f7..160966b0c 100644 --- a/inc/traits/trait-wp-ultimo-coupon-deprecated.php +++ b/inc/traits/trait-wp-ultimo-coupon-deprecated.php @@ -31,7 +31,7 @@ public function __set($key, $value) { * * @since 2.0.0 */ - _doing_it_wrong(esc_html($key), esc_html__('Discount Code keys should not be set directly.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(esc_html($key), esc_html__('Discount Code keys should not be set directly.', 'ultimate-multisite'), '2.0.0'); $this->meta[ "wpu_{$key}" ] = $value; } @@ -57,7 +57,7 @@ public function __get($key) { if (null === $value) { // translators: the placeholder is the key. - $message = sprintf(__('Discount Codes do not have a %s parameter', 'multisite-ultimate'), $key); + $message = sprintf(__('Discount Codes do not have a %s parameter', 'ultimate-multisite'), $key); // throw new \Exception($message); @@ -69,7 +69,7 @@ public function __get($key) { * * @since 2.0.0 */ - _doing_it_wrong(esc_html($key), esc_html__('Discount Code keys should not be accessed directly', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(esc_html($key), esc_html__('Discount Code keys should not be accessed directly', 'ultimate-multisite'), '2.0.0'); return $value; } diff --git a/inc/traits/trait-wp-ultimo-plan-deprecated.php b/inc/traits/trait-wp-ultimo-plan-deprecated.php index ff3593de7..e76941d00 100644 --- a/inc/traits/trait-wp-ultimo-plan-deprecated.php +++ b/inc/traits/trait-wp-ultimo-plan-deprecated.php @@ -82,7 +82,7 @@ public function __get($key) { * * @since 2.0.0 */ - _doing_it_wrong(esc_html($key), esc_html__('Product keys should not be accessed directly', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(esc_html($key), esc_html__('Product keys should not be accessed directly', 'ultimate-multisite'), '2.0.0'); return $value; } @@ -144,12 +144,12 @@ public function get_pricing_table_lines() { */ if ($this->should_display_quota_on_pricing_tables('setup_fee', true)) { if ($this->get_pricing_type() === 'contact_us') { - $pricing_table_lines['wu_product_contact_us'] = __('Contact Us to know more', 'multisite-ultimate'); + $pricing_table_lines['wu_product_contact_us'] = __('Contact Us to know more', 'ultimate-multisite'); } else { $pricing_table_lines['wu_product_setup_fee'] = $this->has_setup_fee() // translators: %s is the setup fee wrapped in strong tag. - ? sprintf(__('Setup Fee: %s', 'multisite-ultimate'), "" . wu_format_currency($this->get_setup_fee()) . '') - : __('No Setup Fee', 'multisite-ultimate'); + ? sprintf(__('Setup Fee: %s', 'ultimate-multisite'), "" . wu_format_currency($this->get_setup_fee()) . '') + : __('No Setup Fee', 'ultimate-multisite'); } } @@ -172,7 +172,7 @@ public function get_pricing_table_lines() { if ($this->is_post_type_disabled($pt_slug)) { // Translators: used as "No Posts" where a post type is disabled - $pricing_table_lines[ 'wu_product_limit_post_type_' . $pt_slug ] = sprintf(__('No %s', 'multisite-ultimate'), $post_type->labels->name); + $pricing_table_lines[ 'wu_product_limit_post_type_' . $pt_slug ] = sprintf(__('No %s', 'ultimate-multisite'), $post_type->labels->name); continue; } @@ -183,7 +183,7 @@ public function get_pricing_table_lines() { * @var integer|string */ $is_unlimited = 0 === (int) $this->get_limitations()->post_types->{$pt_slug}->number || ! $this->get_limitations()->post_types->is_enabled(); - $value = $is_unlimited ? __('Unlimited', 'multisite-ultimate') : $this->get_limitations()->post_types->{$pt_slug}->number; + $value = $is_unlimited ? __('Unlimited', 'ultimate-multisite') : $this->get_limitations()->post_types->{$pt_slug}->number; // Add Line $label = 1 === (int) $value ? $post_type->labels->singular_name : $post_type->labels->name; @@ -199,10 +199,10 @@ public function get_pricing_table_lines() { */ if (wu_get_setting('enable_multiple_sites') && $this->should_display_quota_on_pricing_tables('sites')) { $is_unlimited = (int) $this->get_limitations()->sites->get_limit() === 0 || ! $this->get_limitations()->sites->is_enabled(); - $value = $is_unlimited ? __('Unlimited', 'multisite-ultimate') : $this->get_limitations()->sites->get_limit(); + $value = $is_unlimited ? __('Unlimited', 'ultimate-multisite') : $this->get_limitations()->sites->get_limit(); // Add Line - $pricing_table_lines['wu_product_limit_sites'] = sprintf('%s %s', $value, _n('Site', 'Sites', $this->get_limitations()->sites->get_limit(), 'multisite-ultimate')); + $pricing_table_lines['wu_product_limit_sites'] = sprintf('%s %s', $value, _n('Site', 'Sites', $this->get_limitations()->sites->get_limit(), 'ultimate-multisite')); } /** @@ -210,11 +210,11 @@ public function get_pricing_table_lines() { */ if ($this->should_display_quota_on_pricing_tables('upload')) { $is_unlimited = (int) $this->get_limitations()->disk_space->get_limit() === 0 || ! $this->get_limitations()->disk_space->is_enabled(); - $disk_space = $is_unlimited ? __('Unlimited', 'multisite-ultimate') : size_format(absint($this->get_limitations()->disk_space->get_limit()) * 1024 * 1024); + $disk_space = $is_unlimited ? __('Unlimited', 'ultimate-multisite') : size_format(absint($this->get_limitations()->disk_space->get_limit()) * 1024 * 1024); // Add Line // translators: %s is the disk space with appropriate suffix, MB, GB KB etc. - $pricing_table_lines['wu_product_limit_disk_space'] = ! empty($disk_space) ? sprintf(__('%s Disk Space', 'multisite-ultimate'), $disk_space) : false; + $pricing_table_lines['wu_product_limit_disk_space'] = ! empty($disk_space) ? sprintf(__('%s Disk Space', 'ultimate-multisite'), $disk_space) : false; } /** @@ -224,10 +224,10 @@ public function get_pricing_table_lines() { */ if ($this->should_display_quota_on_pricing_tables('visits')) { $is_unlimited = (int) $this->get_limitations()->visits->get_limit() === 0 || ! $this->get_limitations()->visits->is_enabled(); - $value = $is_unlimited ? __('Unlimited', 'multisite-ultimate') : number_format($this->get_limitations()->visits->get_limit()); + $value = $is_unlimited ? __('Unlimited', 'ultimate-multisite') : number_format($this->get_limitations()->visits->get_limit()); // Add Line - $pricing_table_lines['wu_product_limit_visits'] = sprintf('%s %s', $value, _n('Visit per month', 'Visits per month', $this->get_limitations()->visits->get_limit(), 'multisite-ultimate')); + $pricing_table_lines['wu_product_limit_visits'] = sprintf('%s %s', $value, _n('Visit per month', 'Visits per month', $this->get_limitations()->visits->get_limit(), 'ultimate-multisite')); } /** @@ -239,7 +239,7 @@ public function get_pricing_table_lines() { if ($trial_days > 0 || $trial_days_plan) { $trial_days = $trial_days_plan ?: $trial_days; // translators: %s is the number of days for the trial - $pricing_table_lines['wu_product_trial'] = ! $this->is_free() ? sprintf(__('%s day Free Trial', 'multisite-ultimate'), $trial_days) : '-'; + $pricing_table_lines['wu_product_trial'] = ! $this->is_free() ? sprintf(__('%s day Free Trial', 'ultimate-multisite'), $trial_days) : '-'; } /** diff --git a/inc/traits/trait-wp-ultimo-settings-deprecated.php b/inc/traits/trait-wp-ultimo-settings-deprecated.php index d637fc648..cceb0236a 100644 --- a/inc/traits/trait-wp-ultimo-settings-deprecated.php +++ b/inc/traits/trait-wp-ultimo-settings-deprecated.php @@ -67,7 +67,7 @@ public function handle_legacy_filters(): void { ]; foreach ($filters as $filter) { - $message = __('Adding setting sections directly via filters is no longer supported.', 'multisite-ultimate'); + $message = __('Adding setting sections directly via filters is no longer supported.', 'ultimate-multisite'); $legacy_settings = apply_filters_deprecated($filter, [$legacy_settings], '2.0.0', 'wu_register_settings_field()', $message); } @@ -76,8 +76,8 @@ public function handle_legacy_filters(): void { $this->add_section( 'other', [ - 'title' => __('Other', 'multisite-ultimate'), - 'desc' => __('Other', 'multisite-ultimate'), + 'title' => __('Other', 'ultimate-multisite'), + 'desc' => __('Other', 'ultimate-multisite'), ] ); diff --git a/inc/traits/trait-wp-ultimo-site-deprecated.php b/inc/traits/trait-wp-ultimo-site-deprecated.php index bc23fb0de..554430f4c 100644 --- a/inc/traits/trait-wp-ultimo-site-deprecated.php +++ b/inc/traits/trait-wp-ultimo-site-deprecated.php @@ -41,7 +41,7 @@ public function __get($key) { * * @since 2.0.0 */ - _doing_it_wrong(esc_html($key), esc_html__('Product keys should not be accessed directly', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(esc_html($key), esc_html__('Product keys should not be accessed directly', 'ultimate-multisite'), '2.0.0'); return $value; } diff --git a/inc/traits/trait-wp-ultimo-subscription-deprecated.php b/inc/traits/trait-wp-ultimo-subscription-deprecated.php index c59a44d66..7edc2c5f9 100644 --- a/inc/traits/trait-wp-ultimo-subscription-deprecated.php +++ b/inc/traits/trait-wp-ultimo-subscription-deprecated.php @@ -40,7 +40,7 @@ public function __get($key) { * * @since 2.0.0 */ - _doing_it_wrong(esc_html($key), esc_html__('Membership keys should not be accessed directly', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(esc_html($key), esc_html__('Membership keys should not be accessed directly', 'ultimate-multisite'), '2.0.0'); return $value; } diff --git a/inc/ui/class-account-summary-element.php b/inc/ui/class-account-summary-element.php index 12b137976..5214b5690 100644 --- a/inc/ui/class-account-summary-element.php +++ b/inc/ui/class-account-summary-element.php @@ -98,14 +98,14 @@ public function get_icon($context = 'block') { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Account Summary', 'multisite-ultimate'); + return __('Account Summary', 'ultimate-multisite'); } /** @@ -114,14 +114,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a account summary block to the page.', 'multisite-ultimate'); + return __('Adds a account summary block to the page.', 'ultimate-multisite'); } /** @@ -146,16 +146,16 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('About this Site', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely.', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('About this Site', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely.', 'ultimate-multisite'), 'tooltip' => '', ]; @@ -206,7 +206,7 @@ public function keywords() { public function defaults() { return [ - 'title' => __('About this Site', 'multisite-ultimate'), + 'title' => __('About this Site', 'ultimate-multisite'), ]; } diff --git a/inc/ui/class-base-element.php b/inc/ui/class-base-element.php index 7495534f8..a68029f5d 100644 --- a/inc/ui/class-base-element.php +++ b/inc/ui/class-base-element.php @@ -120,7 +120,7 @@ abstract public function get_icon($context = 'block'); * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string @@ -133,7 +133,7 @@ abstract public function get_title(); * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string @@ -757,12 +757,12 @@ public function render_generator_modal(): void { $fields['shortcode_result'] = [ 'type' => 'note', 'wrapper_classes' => 'sm:wu-block', - 'desc' => '
' . __('Result', 'multisite-ultimate') . '
', + 'desc' => '
' . __('Result', 'ultimate-multisite') . '
', ]; $fields['submit_copy'] = [ 'type' => 'submit', - 'title' => __('Copy Shortcode', 'multisite-ultimate'), + 'title' => __('Copy Shortcode', 'ultimate-multisite'), 'value' => 'edit', 'classes' => 'button button-primary wu-w-full wu-copy', 'wrapper_classes' => 'wu-items-end', @@ -811,8 +811,8 @@ public function render_customize_modal(): void { $fields['hide'] = [ 'type' => 'toggle', - 'title' => __('Hide Element', 'multisite-ultimate'), - 'desc' => __('Be careful. Hiding an element from the account page might remove important functionality from your customers\' reach.', 'multisite-ultimate'), + 'title' => __('Hide Element', 'ultimate-multisite'), + 'desc' => __('Be careful. Hiding an element from the account page might remove important functionality from your customers\' reach.', 'ultimate-multisite'), 'value' => $this->hidden_by_default, 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -847,14 +847,14 @@ public function render_customize_modal(): void { 'fields' => [ 'restore' => [ 'type' => 'submit', - 'title' => __('Reset Settings', 'multisite-ultimate'), + 'title' => __('Reset Settings', 'ultimate-multisite'), 'value' => 'edit', 'classes' => 'button', 'wrapper_classes' => 'wu-mb-0', ], 'submit' => [ 'type' => 'submit', - 'title' => __('Save Changes', 'multisite-ultimate'), + 'title' => __('Save Changes', 'ultimate-multisite'), 'value' => 'edit', 'classes' => 'button button-primary', 'wrapper_classes' => 'wu-mb-0', @@ -1076,7 +1076,7 @@ public function should_display_customize_controls() { public function as_inline_content($screen_id, $hook = 'admin_notices', $atts = []): void { if ( ! function_exists('get_current_screen')) { - _doing_it_wrong(__METHOD__, esc_html__('An element can not be loaded as inline content unless the get_current_screen() function is already available.', 'multisite-ultimate'), '2.0.0'); + _doing_it_wrong(__METHOD__, esc_html__('An element can not be loaded as inline content unless the get_current_screen() function is already available.', 'ultimate-multisite'), '2.0.0'); return; } @@ -1233,14 +1233,14 @@ public function super_admin_notice(): void {
diff --git a/inc/ui/class-billing-info-element.php b/inc/ui/class-billing-info-element.php index 8a17af5e1..d55754a7b 100644 --- a/inc/ui/class-billing-info-element.php +++ b/inc/ui/class-billing-info-element.php @@ -112,14 +112,14 @@ public function register_scripts(): void { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Billing Information', 'multisite-ultimate'); + return __('Billing Information', 'ultimate-multisite'); } /** @@ -128,14 +128,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -160,16 +160,16 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('Billing Address', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely.', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('Billing Address', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely.', 'ultimate-multisite'), 'tooltip' => '', ]; @@ -221,7 +221,7 @@ public function keywords() { public function defaults() { return [ - 'title' => __('Billing Address', 'multisite-ultimate'), + 'title' => __('Billing Address', 'ultimate-multisite'), ]; } @@ -330,8 +330,8 @@ public function render_update_billing_address() { $fields['billing-title'] = [ 'type' => 'header', 'order' => 1, - 'title' => __('Your Address', 'multisite-ultimate'), - 'desc' => __('Enter your billing address here. This info will be used on your invoices.', 'multisite-ultimate'), + 'title' => __('Your Address', 'ultimate-multisite'), + 'desc' => __('Enter your billing address here. This info will be used on your invoices.', 'ultimate-multisite'), 'wrapper_classes' => 'wu-col-span-2', ]; @@ -341,7 +341,7 @@ public function render_update_billing_address() { $fields['submit'] = [ 'type' => 'submit', - 'title' => __('Save Changes', 'multisite-ultimate'), + 'title' => __('Save Changes', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-col-span-2', @@ -380,7 +380,7 @@ public function handle_update_billing_address(): void { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('membership-dont-exist', __('Something went wrong.', 'multisite-ultimate')); + $error = new \WP_Error('membership-dont-exist', __('Something went wrong.', 'ultimate-multisite')); wp_send_json_error($error); } diff --git a/inc/ui/class-checkout-element.php b/inc/ui/class-checkout-element.php index 3ed1f7593..c92aa48d7 100644 --- a/inc/ui/class-checkout-element.php +++ b/inc/ui/class-checkout-element.php @@ -102,14 +102,14 @@ public function get_icon($context = 'block'): string { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Checkout', 'multisite-ultimate'); + return __('Checkout', 'ultimate-multisite'); } /** @@ -118,14 +118,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -150,14 +150,14 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['slug'] = [ - 'title' => __('Slug', 'multisite-ultimate'), - 'desc' => __('The checkout form slug.', 'multisite-ultimate'), + 'title' => __('Slug', 'ultimate-multisite'), + 'desc' => __('The checkout form slug.', 'ultimate-multisite'), 'type' => 'text', ]; @@ -271,7 +271,7 @@ public function register_scripts() { wp_add_inline_style('wu-checkout', $custom_css); } catch (SassException $e) { // translators: %s the error message. - wu_log_add('checkout', sprintf(__('An error occurred while compiling scss: %s', 'multisite-ultimate'), $e->getMessage()), LogLevel::ERROR); + wu_log_add('checkout', sprintf(__('An error occurred while compiling scss: %s', 'ultimate-multisite'), $e->getMessage()), LogLevel::ERROR); } } @@ -344,7 +344,7 @@ public function output_form($atts, $content = null) { */ echo '

'; // Translators: Placeholder receives the customer display name - printf(esc_html__('Hi %s. You have a pending payment for your membership!', 'multisite-ultimate'), esc_html($customer->get_display_name())); + printf(esc_html__('Hi %s. You have a pending payment for your membership!', 'ultimate-multisite'), esc_html($customer->get_display_name())); $payment_url = add_query_arg( [ @@ -354,7 +354,7 @@ public function output_form($atts, $content = null) { ); // Translators: The link to registration url with payment hash - echo '
' . sprintf(esc_html__('Click here to pay.', 'multisite-ultimate'), esc_attr($payment_url)); + echo '
' . sprintf(esc_html__('Click here to pay.', 'ultimate-multisite'), esc_attr($payment_url)); echo '

'; return; @@ -367,7 +367,7 @@ public function output_form($atts, $content = null) { if ( ! $membership->is_active() && $membership->get_status() !== Membership_Status::TRIALING && in_array($atts['slug'], $membership_blocked_forms, true)) { // Translators: Placeholder receives the customer display name - printf(esc_html__('Hi %s. You cannot take action on your membership while it is not active!', 'multisite-ultimate'), esc_html($customer->get_display_name())); + printf(esc_html__('Hi %s. You cannot take action on your membership while it is not active!', 'ultimate-multisite'), esc_html($customer->get_display_name())); if ($membership->get_status() === Membership_Status::PENDING && $customer->get_email_verification() === 'pending') { /** @@ -383,17 +383,17 @@ public function output_form($atts, $content = null) { 'resend_verification_email_nonce' => wp_create_nonce('wu_resend_verification_email_nonce'), 'membership_hash' => $membership->get_hash(), 'i18n' => [ - 'resending_verification_email' => __('Resending verification email...', 'multisite-ultimate'), - 'email_sent' => __('Verification email sent!', 'multisite-ultimate'), + 'resending_verification_email' => __('Resending verification email...', 'ultimate-multisite'), + 'email_sent' => __('Verification email sent!', 'ultimate-multisite'), ], ] ); wp_enqueue_script('wu-thank-you'); - echo '

' . esc_html__('Check your inbox and verify your email address.', 'multisite-ultimate') . '

'; + echo '

' . esc_html__('Check your inbox and verify your email address.', 'ultimate-multisite') . '

'; echo ''; - printf('%s', esc_html__('Resend verification email', 'multisite-ultimate')); + printf('%s', esc_html__('Resend verification email', 'ultimate-multisite')); echo ''; } @@ -416,13 +416,13 @@ public function output_form($atts, $content = null) { ); if ( ! in_array($slug, $allowed_forms, true) && ! wu_request('payment')) { - printf('

%s

', esc_html__('You already have a membership!', 'multisite-ultimate')); + printf('

%s

', esc_html__('You already have a membership!', 'ultimate-multisite')); if (isset($published_sites[0])) { printf( '

%s

', esc_attr(get_admin_url($published_sites[0]->get_id(), 'admin.php?page=account')), - esc_html__('Go to my account', 'multisite-ultimate') + esc_html__('Go to my account', 'ultimate-multisite') ); } @@ -431,7 +431,7 @@ public function output_form($atts, $content = null) { } if ($membership && $membership->get_customer_id() !== $customer->get_id()) { - printf('

%s

', esc_html__('You are not allowed to change this membership!', 'multisite-ultimate')); + printf('

%s

', esc_html__('You are not allowed to change this membership!', 'ultimate-multisite')); return; } @@ -463,7 +463,7 @@ public function output_form($atts, $content = null) { if ($used_limit >= $limit_max) { // Translators: Placeholder receives the limit name - echo '

' . sprintf(esc_html__('You reached your membership %s limit!', 'multisite-ultimate'), esc_html($limitation)) . '

'; + echo '

' . sprintf(esc_html__('You reached your membership %s limit!', 'ultimate-multisite'), esc_html($limitation)) . '

'; echo ''; @@ -471,7 +471,7 @@ public function output_form($atts, $content = null) { printf( '%s', esc_url(wu_get_registration_url()), - esc_html(__('Buy a new membership', 'multisite-ultimate')) + esc_html(__('Buy a new membership', 'ultimate-multisite')) ); } @@ -496,7 +496,7 @@ public function output_form($atts, $content = null) { } if ( ! empty($update_link)) { - $button_text = __('Upgrade your account', 'multisite-ultimate'); + $button_text = __('Upgrade your account', 'ultimate-multisite'); printf('%s', esc_attr($update_link), esc_html($button_text)); } @@ -511,12 +511,12 @@ public function output_form($atts, $content = null) { } elseif ( ! $customer && 'wu-finish-checkout' === $slug) { echo '

'; if (is_user_logged_in()) { - esc_html_e('You need to be the account owner to complete this payment.', 'multisite-ultimate'); + esc_html_e('You need to be the account owner to complete this payment.', 'ultimate-multisite'); } else { - esc_html_e('You need to be logged in to complete a payment', 'multisite-ultimate'); + esc_html_e('You need to be logged in to complete a payment', 'ultimate-multisite'); // Translators: The link to login url with redirect_to url - echo '
' . sprintf(esc_html__('Click here sign in.', 'multisite-ultimate'), esc_attr(wp_login_url(wu_get_current_url()))); + echo '
' . sprintf(esc_html__('Click here sign in.', 'ultimate-multisite'), esc_attr(wp_login_url(wu_get_current_url()))); } echo '

'; @@ -529,19 +529,19 @@ public function output_form($atts, $content = null) { if ( ! $checkout_form) { // translators: %s is the id of the form. e.g. main-form - printf(esc_html__('Checkout form %s not found.', 'multisite-ultimate'), esc_html($slug)); + printf(esc_html__('Checkout form %s not found.', 'ultimate-multisite'), esc_html($slug)); return; } if ($checkout_form->get_field_count() === 0) { // translators: %s is the id of the form. e.g. main-form - printf(esc_html__('Checkout form %s contains no fields.', 'multisite-ultimate'), esc_html($slug)); + printf(esc_html__('Checkout form %s contains no fields.', 'ultimate-multisite'), esc_html($slug)); return; } if ( ! $checkout_form->is_active() || ! wu_get_setting('enable_registration', true)) { - printf('

%s

', esc_html__('Registration is not available at this time.', 'multisite-ultimate')); + printf('

%s

', esc_html__('Registration is not available at this time.', 'ultimate-multisite')); return; } @@ -549,7 +549,7 @@ public function output_form($atts, $content = null) { $geolocation = \WP_Ultimo\Geolocation::geolocate_ip('', true); if ( ! in_array($geolocation['country'], $checkout_form->get_allowed_countries(), true)) { - printf('

%s

', esc_html__('Registration is closed for your location.', 'multisite-ultimate')); + printf('

%s

', esc_html__('Registration is closed for your location.', 'ultimate-multisite')); return; } } diff --git a/inc/ui/class-current-membership-element.php b/inc/ui/class-current-membership-element.php index 49fefaab4..7eb3cbee4 100644 --- a/inc/ui/class-current-membership-element.php +++ b/inc/ui/class-current-membership-element.php @@ -120,14 +120,14 @@ public function get_icon($context = 'block'): string { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Membership', 'multisite-ultimate'); + return __('Membership', 'ultimate-multisite'); } /** @@ -136,14 +136,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -168,31 +168,31 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('Your Membership', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely.', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('Your Membership', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely.', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['display_images'] = [ 'type' => 'toggle', - 'title' => __('Display Product Images?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the product images on the element.', 'multisite-ultimate'), + 'title' => __('Display Product Images?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the product images on the element.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; $fields['columns'] = [ 'type' => 'number', - 'title' => __('Columns', 'multisite-ultimate'), - 'desc' => __('How many columns to use.', 'multisite-ultimate'), + 'title' => __('Columns', 'ultimate-multisite'), + 'desc' => __('How many columns to use.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 2, 'min' => 1, @@ -247,7 +247,7 @@ public function keywords() { public function defaults() { return [ - 'title' => __('Your Membership', 'multisite-ultimate'), + 'title' => __('Your Membership', 'ultimate-multisite'), 'display_images' => 1, 'columns' => 2, ]; @@ -365,19 +365,19 @@ public function render_edit_membership_product_modal(): void { $error = ''; if ( ! $membership) { - $error = __('Membership not selected.', 'multisite-ultimate'); + $error = __('Membership not selected.', 'ultimate-multisite'); } $product = wu_get_product_by_slug(wu_request('product')); if ( ! $product) { - $error = __('Product not selected.', 'multisite-ultimate'); + $error = __('Product not selected.', 'ultimate-multisite'); } $customer = wu_get_current_customer(); if (empty($error) && ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'multisite-ultimate'); + $error = __('You are not allowed to do this.', 'ultimate-multisite'); } if ( ! empty($error)) { @@ -434,7 +434,7 @@ public function render_edit_membership_product_modal(): void { ], 'quantity' => [ 'type' => 'number', - 'title' => __('Quantity to Cancel', 'multisite-ultimate'), + 'title' => __('Quantity to Cancel', 'ultimate-multisite'), 'value' => 1, 'placeholder' => 1, 'wrapper_classes' => 'wu-w-1/2', @@ -450,8 +450,8 @@ public function render_edit_membership_product_modal(): void { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Product Cancellation', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Product Cancellation', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], @@ -463,8 +463,8 @@ public function render_edit_membership_product_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Cancel Product Subscription', 'multisite-ultimate'), - 'placeholder' => __('Cancel Product Subscription', 'multisite-ultimate'), + 'title' => __('Cancel Product Subscription', 'ultimate-multisite'), + 'placeholder' => __('Cancel Product Subscription', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'wu-w-full button button-primary', 'wrapper_classes' => 'wu-items-end', @@ -508,7 +508,7 @@ public function render_edit_membership_product_modal(): void { public function handle_edit_membership_product_modal(): void { if ( ! wu_request('confirm')) { - $error = new \WP_Error('not-confirmed', __('Please confirm the cancellation.', 'multisite-ultimate')); + $error = new \WP_Error('not-confirmed', __('Please confirm the cancellation.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -516,7 +516,7 @@ public function handle_edit_membership_product_modal(): void { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('membership-not-found', __('Membership not found.', 'multisite-ultimate')); + $error = new \WP_Error('membership-not-found', __('Membership not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -524,7 +524,7 @@ public function handle_edit_membership_product_modal(): void { $product = wu_get_product_by_slug(wu_request('product')); if ( ! $product) { - $error = new \WP_Error('product-not-found', __('Product not found.', 'multisite-ultimate')); + $error = new \WP_Error('product-not-found', __('Product not found.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -532,7 +532,7 @@ public function handle_edit_membership_product_modal(): void { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'multisite-ultimate'); + $error = __('You are not allowed to do this.', 'ultimate-multisite'); wp_send_json_error($error); } @@ -582,7 +582,7 @@ public function handle_edit_membership_product_modal(): void { $removed_quantity = $quantity + $existing_difference; // translators: %1$s is the quantity removed, %2$s is the product name. - $description = sprintf(__('remove %1$s %2$s from membership', 'multisite-ultimate'), $removed_quantity, $product->get_name()); + $description = sprintf(__('remove %1$s %2$s from membership', 'ultimate-multisite'), $removed_quantity, $product->get_name()); $cart->set_cart_descriptor($description); diff --git a/inc/ui/class-current-site-element.php b/inc/ui/class-current-site-element.php index 25689a895..8a728f017 100644 --- a/inc/ui/class-current-site-element.php +++ b/inc/ui/class-current-site-element.php @@ -101,14 +101,14 @@ public function init(): void { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Site', 'multisite-ultimate'); + return __('Site', 'ultimate-multisite'); } /** @@ -117,14 +117,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a block to display the current site being managed.', 'multisite-ultimate'); + return __('Adds a block to display the current site being managed.', 'ultimate-multisite'); } /** @@ -149,15 +149,15 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['display_breadcrumbs'] = [ 'type' => 'toggle', - 'title' => __('Display Breadcrumbs?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the breadcrumbs block.', 'multisite-ultimate'), + 'title' => __('Display Breadcrumbs?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the breadcrumbs block.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; @@ -170,7 +170,7 @@ public function fields() { $pages = $pages ?: []; - $pages_list = [0 => __('Current Page', 'multisite-ultimate')]; + $pages_list = [0 => __('Current Page', 'ultimate-multisite')]; foreach ($pages as $page) { $pages_list[ $page->ID ] = $page->post_title; @@ -178,31 +178,31 @@ public function fields() { $fields['breadcrumbs_my_sites_page'] = [ 'type' => 'select', - 'title' => __('My Sites Page', 'multisite-ultimate'), + 'title' => __('My Sites Page', 'ultimate-multisite'), 'value' => 0, - 'desc' => __('The page with the customer sites list.', 'multisite-ultimate'), + 'desc' => __('The page with the customer sites list.', 'ultimate-multisite'), 'options' => $pages_list, ]; $fields['display_description'] = [ 'type' => 'toggle', - 'title' => __('Display Site Description?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the site description on the element.', 'multisite-ultimate'), + 'title' => __('Display Site Description?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the site description on the element.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 0, ]; $fields['display_image'] = [ 'type' => 'toggle', - 'title' => __('Display Site Screenshot?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'multisite-ultimate'), + 'title' => __('Display Site Screenshot?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; $fields['screenshot_size'] = [ 'type' => 'number', - 'title' => __('Screenshot Size', 'multisite-ultimate'), + 'title' => __('Screenshot Size', 'ultimate-multisite'), 'desc' => '', 'tooltip' => '', 'value' => 200, @@ -215,10 +215,10 @@ public function fields() { $fields['screenshot_position'] = [ 'type' => 'select', - 'title' => __('Screenshot Position', 'multisite-ultimate'), + 'title' => __('Screenshot Position', 'ultimate-multisite'), 'options' => [ - 'right' => __('Right', 'multisite-ultimate'), - 'left' => __('Left', 'multisite-ultimate'), + 'right' => __('Right', 'ultimate-multisite'), + 'left' => __('Left', 'ultimate-multisite'), ], 'desc' => '', 'tooltip' => '', @@ -230,8 +230,8 @@ public function fields() { $fields['show_admin_link'] = [ 'type' => 'toggle', - 'title' => __('Show Admin Link?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the WP admin link on the element.', 'multisite-ultimate'), + 'title' => __('Show Admin Link?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the WP admin link on the element.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; @@ -361,13 +361,13 @@ public function output($atts, $content = null): void { $actions = [ 'visit_site' => [ - 'label' => __('Visit Site', 'multisite-ultimate'), + 'label' => __('Visit Site', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-browser wu-align-text-bottom', 'classes' => '', 'href' => $this->site ? $this->site->get_active_site_url() : '', ], 'edit_site' => [ - 'label' => __('Edit Site', 'multisite-ultimate'), + 'label' => __('Edit Site', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-text-bottom', 'classes' => 'wubox', 'href' => $this->site ? wu_get_form_url( @@ -381,7 +381,7 @@ public function output($atts, $content = null): void { if ($atts['show_admin_link'] && $this->site) { $actions['site_admin'] = [ - 'label' => __('Admin Panel', 'multisite-ultimate'), + 'label' => __('Admin Panel', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-grid wu-align-text-bottom', 'classes' => '', 'href' => get_admin_url($this->site->get_id()), @@ -418,8 +418,8 @@ public function render_edit_site() { $fields = [ 'site_title' => [ 'type' => 'text', - 'title' => __('Site Title', 'multisite-ultimate'), - 'placeholder' => __('e.g. My Awesome Site', 'multisite-ultimate'), + 'title' => __('Site Title', 'ultimate-multisite'), + 'placeholder' => __('e.g. My Awesome Site', 'ultimate-multisite'), 'value' => $site->get_title(), 'html_attr' => [ 'v-model' => 'site_title', @@ -427,8 +427,8 @@ public function render_edit_site() { ], 'site_description' => [ 'type' => 'textarea', - 'title' => __('Site Description', 'multisite-ultimate'), - 'placeholder' => __('e.g. My Awesome Site description.', 'multisite-ultimate'), + 'title' => __('Site Description', 'ultimate-multisite'), + 'placeholder' => __('e.g. My Awesome Site description.', 'ultimate-multisite'), 'value' => $site->get_description(), 'html_attr' => [ 'rows' => 5, @@ -440,7 +440,7 @@ public function render_edit_site() { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Save Changes', 'multisite-ultimate'), + 'title' => __('Save Changes', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -484,7 +484,7 @@ public function handle_edit_site(): void { $site = wu_get_site_by_hash(wu_request('site')); if ( ! $site) { - $error = new \WP_Error('site-dont-exist', __('Something went wrong.', 'multisite-ultimate')); + $error = new \WP_Error('site-dont-exist', __('Something went wrong.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -492,7 +492,7 @@ public function handle_edit_site(): void { $new_title = wu_request('site_title'); if ( ! $new_title) { - $error = new \WP_Error('title_empty', __('Site title can not be empty.', 'multisite-ultimate')); + $error = new \WP_Error('title_empty', __('Site title can not be empty.', 'ultimate-multisite')); wp_send_json_error($error); } diff --git a/inc/ui/class-domain-mapping-element.php b/inc/ui/class-domain-mapping-element.php index dcf69eb3a..3ed807569 100644 --- a/inc/ui/class-domain-mapping-element.php +++ b/inc/ui/class-domain-mapping-element.php @@ -86,14 +86,14 @@ public function get_icon($context = 'block'): string { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Domains', 'multisite-ultimate'); + return __('Domains', 'ultimate-multisite'); } /** @@ -102,14 +102,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds the site\'s domains block.', 'multisite-ultimate'); + return __('Adds the site\'s domains block.', 'ultimate-multisite'); } /** @@ -134,16 +134,16 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('Domains', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely.', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('Domains', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely.', 'ultimate-multisite'), 'tooltip' => '', ]; @@ -193,7 +193,7 @@ public function keywords() { public function defaults() { return [ - 'title' => __('Domains', 'multisite-ultimate'), + 'title' => __('Domains', 'ultimate-multisite'), ]; } @@ -290,7 +290,7 @@ public function render_user_add_new_domain_modal(): void { $fields = [ 'instructions_note' => [ 'type' => 'note', - 'desc' => sprintf('%s', __('← Back to the Instructions', 'multisite-ultimate')), + 'desc' => sprintf('%s', __('← Back to the Instructions', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-if' => 'ready', 'v-cloak' => '1', @@ -299,7 +299,7 @@ public function render_user_add_new_domain_modal(): void { 'instructions' => [ 'type' => 'text-display', 'copy' => false, - 'title' => __('Instructions', 'multisite-ultimate'), + 'title' => __('Instructions', 'ultimate-multisite'), 'tooltip' => '', 'display_value' => sprintf('
%s
', wpautop($instructions)), 'wrapper_html_attr' => [ @@ -309,7 +309,7 @@ public function render_user_add_new_domain_modal(): void { ], 'ready' => [ 'type' => 'submit', - 'title' => __('Next Step →', 'multisite-ultimate'), + 'title' => __('Next Step →', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -327,8 +327,8 @@ public function render_user_add_new_domain_modal(): void { ], 'domain' => [ 'type' => 'text', - 'title' => __('Domain', 'multisite-ultimate'), - 'placeholder' => __('mydomain.com', 'multisite-ultimate'), + 'title' => __('Domain', 'ultimate-multisite'), + 'placeholder' => __('mydomain.com', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'ready', 'v-cloak' => 1, @@ -336,8 +336,8 @@ public function render_user_add_new_domain_modal(): void { ], 'primary_domain' => [ 'type' => 'toggle', - 'title' => __('Primary Domain', 'multisite-ultimate'), - 'desc' => __('Check to set this domain as the primary', 'multisite-ultimate'), + 'title' => __('Primary Domain', 'ultimate-multisite'), + 'desc' => __('Check to set this domain as the primary', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'primary_domain', ], @@ -348,7 +348,7 @@ public function render_user_add_new_domain_modal(): void { ], 'primary_note' => [ 'type' => 'note', - 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'multisite-ultimate'), + 'desc' => __('By making this the primary domain, we will convert the previous primary domain for this site, if one exists, into an alias domain.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-if' => "require('primary_domain', true) && ready", 'v-cloak' => 1, @@ -356,7 +356,7 @@ public function render_user_add_new_domain_modal(): void { ], 'submit_button_new' => [ 'type' => 'submit', - 'title' => __('Add Domain', 'multisite-ultimate'), + 'title' => __('Add Domain', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -405,7 +405,7 @@ public function handle_user_add_new_domain_modal(): void { if ( ! is_super_admin() && (! $current_site || $current_site->get_customer()->get_user_id() !== $current_user_id)) { wp_send_json_error( - new \WP_Error('no-permissions', __('You do not have permissions to perform this action.', 'multisite-ultimate')) + new \WP_Error('no-permissions', __('You do not have permissions to perform this action.', 'ultimate-multisite')) ); exit; @@ -469,8 +469,8 @@ public function render_user_delete_domain_modal(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Deletion', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Deletion', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], @@ -481,8 +481,8 @@ public function render_user_delete_domain_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete', 'multisite-ultimate'), - 'placeholder' => __('Delete', 'multisite-ultimate'), + 'title' => __('Delete', 'ultimate-multisite'), + 'placeholder' => __('Delete', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -553,8 +553,8 @@ public function render_user_make_domain_primary_modal(): void { $fields = [ 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Action', 'multisite-ultimate'), - 'desc' => __('This action will also convert the previous primary domain (if any) to an alias to prevent unexpected behavior.', 'multisite-ultimate'), + 'title' => __('Confirm Action', 'ultimate-multisite'), + 'desc' => __('This action will also convert the previous primary domain (if any) to an alias to prevent unexpected behavior.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], @@ -565,8 +565,8 @@ public function render_user_make_domain_primary_modal(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Make it Primary', 'multisite-ultimate'), - 'placeholder' => __('Make it Primary', 'multisite-ultimate'), + 'title' => __('Make it Primary', 'ultimate-multisite'), + 'placeholder' => __('Make it Primary', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -641,7 +641,7 @@ public function handle_user_make_domain_primary_modal(): void { ); } - wp_send_json_error(new \WP_Error('error', __('Something wrong happenned.', 'multisite-ultimate'))); + wp_send_json_error(new \WP_Error('error', __('Something wrong happenned.', 'ultimate-multisite'))); } /** @@ -711,12 +711,12 @@ public function output($atts, $content = null): void { $secure = 'dashicons-wu-lock-open'; - $secure_message = __('Domain not secured with HTTPS', 'multisite-ultimate'); + $secure_message = __('Domain not secured with HTTPS', 'ultimate-multisite'); if ($domain->is_secure()) { $secure = 'dashicons-wu-lock wu-text-green-500'; - $secure_message = __('Domain secured with HTTPS', 'multisite-ultimate'); + $secure_message = __('Domain secured with HTTPS', 'ultimate-multisite'); } $url_atts = [ @@ -748,7 +748,7 @@ public function output($atts, $content = null): void { $other_atts = [ 'domains' => $domains, 'modal' => [ - 'label' => __('Add Domain', 'multisite-ultimate'), + 'label' => __('Add Domain', 'ultimate-multisite'), 'icon' => 'wu-circle-with-plus', 'classes' => 'wubox', 'url' => wu_get_form_url('user_add_new_domain', $url_atts), diff --git a/inc/ui/class-field.php b/inc/ui/class-field.php index 62d8325cf..04e72f6de 100644 --- a/inc/ui/class-field.php +++ b/inc/ui/class-field.php @@ -219,7 +219,7 @@ public function get_compat_template_name() { if (array_key_exists($this->type, $deprecated)) { // translators: The %1$s placeholder is the old type name, the second, the new type name. - _doing_it_wrong(esc_html('wu_add_field'), esc_html(sprintf(__('The field type "%1$s" is no longer supported, use "%2$s" instead.', 'multisite-ultimate'), $this->type, $new_type_name)), '2.0.0'); + _doing_it_wrong(esc_html('wu_add_field'), esc_html(sprintf(__('The field type "%1$s" is no longer supported, use "%2$s" instead.', 'ultimate-multisite'), $this->type, $new_type_name)), '2.0.0'); } /* diff --git a/inc/ui/class-invoices-element.php b/inc/ui/class-invoices-element.php index a4d53698f..940c68162 100644 --- a/inc/ui/class-invoices-element.php +++ b/inc/ui/class-invoices-element.php @@ -74,14 +74,14 @@ public function get_icon($context = 'block') { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Invoices', 'multisite-ultimate'); + return __('Invoices', 'ultimate-multisite'); } /** @@ -90,14 +90,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -122,24 +122,24 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('Invoices', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely.', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('Invoices', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely.', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['limit'] = [ 'type' => 'int', - 'title' => __('Limit', 'multisite-ultimate'), + 'title' => __('Limit', 'ultimate-multisite'), 'value' => 10, - 'desc' => __('Limit the number of invoices to show.', 'multisite-ultimate'), + 'desc' => __('Limit the number of invoices to show.', 'ultimate-multisite'), 'tooltip' => '', ]; @@ -191,7 +191,7 @@ public function keywords() { public function defaults() { return [ - 'title' => __('Invoices', 'multisite-ultimate'), + 'title' => __('Invoices', 'ultimate-multisite'), 'limit' => 0, ]; } diff --git a/inc/ui/class-jumper.php b/inc/ui/class-jumper.php index 287cb2632..3ca4e2e59 100644 --- a/inc/ui/class-jumper.php +++ b/inc/ui/class-jumper.php @@ -185,7 +185,7 @@ public function add_user_custom_links($links) { $custom_links = $this->get_user_custom_links(); if ( ! empty($custom_links)) { - $links[ __('Custom Links', 'multisite-ultimate') ] = $custom_links; + $links[ __('Custom Links', 'ultimate-multisite') ] = $custom_links; } return $links; @@ -203,27 +203,27 @@ public function add_wp_ultimo_extra_links($links) { if (isset($links['WP Ultimo'])) { $settings_tabs = [ - 'general' => __('General', 'multisite-ultimate'), - 'network' => __('Network Settings', 'multisite-ultimate'), - 'gateways' => __('Payment Gateways', 'multisite-ultimate'), - 'domain_mapping' => __('Domain Mapping & SSL', 'multisite-ultimate'), - 'emails' => __('Emails', 'multisite-ultimate'), - 'styling' => __('Styling', 'multisite-ultimate'), - 'tools' => __('Tools', 'multisite-ultimate'), - 'advanced' => __('Advanced', 'multisite-ultimate'), - 'activation' => __('Activation & Support', 'multisite-ultimate'), + 'general' => __('General', 'ultimate-multisite'), + 'network' => __('Network Settings', 'ultimate-multisite'), + 'gateways' => __('Payment Gateways', 'ultimate-multisite'), + 'domain_mapping' => __('Domain Mapping & SSL', 'ultimate-multisite'), + 'emails' => __('Emails', 'ultimate-multisite'), + 'styling' => __('Styling', 'ultimate-multisite'), + 'tools' => __('Tools', 'ultimate-multisite'), + 'advanced' => __('Advanced', 'ultimate-multisite'), + 'activation' => __('Activation & Support', 'ultimate-multisite'), ]; foreach ($settings_tabs as $tab => $tab_label) { $url = network_admin_url('admin.php?page=wp-ultimo-settings&wu-tab=' . $tab); // translators: The placeholder represents the title of the Settings tab. - $links['WP Ultimo'][ $url ] = sprintf(__('Settings: %s', 'multisite-ultimate'), $tab_label); + $links['WP Ultimo'][ $url ] = sprintf(__('Settings: %s', 'ultimate-multisite'), $tab_label); } - $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-settings&wu-tab=tools') ] = __('Settings: Webhooks', 'multisite-ultimate'); + $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-settings&wu-tab=tools') ] = __('Settings: Webhooks', 'ultimate-multisite'); - $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-system-info&wu-tab=logs') ] = __('System Info: Logs', 'multisite-ultimate'); + $links['WP Ultimo'][ network_admin_url('admin.php?page=wp-ultimo-system-info&wu-tab=logs') ] = __('System Info: Logs', 'ultimate-multisite'); /** * Adds Main Site Dashboard @@ -231,7 +231,7 @@ public function add_wp_ultimo_extra_links($links) { if (isset($links[ __('Sites') ])) { // phpcs:ignore WordPress.WP.I18n.MissingArgDomain $main_site_url = get_admin_url(get_current_site()->site_id); - $links[ __('Sites') ][ $main_site_url ] = __('Main Site Dashboard', 'multisite-ultimate'); // phpcs:ignore WordPress.WP.I18n.MissingArgDomain + $links[ __('Sites') ][ $main_site_url ] = __('Main Site Dashboard', 'ultimate-multisite'); // phpcs:ignore WordPress.WP.I18n.MissingArgDomain } } @@ -298,7 +298,7 @@ public function add_jumper_footer_message($text) { $html = trim($html, '+'); // translators: the %s placeholder is the key combination to trigger the Jumper. - return '' . sprintf(__('Quick Tip: Use %s to jump between pages.', 'multisite-ultimate'), $html) . '' . $text; + return '' . sprintf(__('Quick Tip: Use %s to jump between pages.', 'ultimate-multisite'), $html) . '' . $text; } /** @@ -317,7 +317,7 @@ public function enqueue_scripts(): void { 'wu-jumper', 'wu_jumper_vars', [ - 'not_found_message' => __('Nothing found for', 'multisite-ultimate'), + 'not_found_message' => __('Nothing found for', 'ultimate-multisite'), 'trigger_key' => $this->get_defined_trigger_key(), 'network_base_url' => network_admin_url(), 'ajaxurl' => wu_ajax_url(), @@ -406,7 +406,7 @@ public function build_link_list() { return Logger::track_time( 'jumper', - __('Regenerating Jumper menu items', 'multisite-ultimate'), + __('Regenerating Jumper menu items', 'ultimate-multisite'), function () { global $menu, $submenu; @@ -486,8 +486,8 @@ public function add_settings(): void { wu_register_settings_section( 'tools', [ - 'title' => __('Tools', 'multisite-ultimate'), - 'desc' => __('Tools', 'multisite-ultimate'), + 'title' => __('Tools', 'ultimate-multisite'), + 'desc' => __('Tools', 'ultimate-multisite'), 'icon' => 'dashicons-wu-tools', ] ); @@ -496,8 +496,8 @@ public function add_settings(): void { 'tools', 'tools_header', [ - 'title' => __('Jumper', 'multisite-ultimate'), - 'desc' => __('Spotlight-like search bar that allows you to easily access everything on your network.', 'multisite-ultimate'), + 'title' => __('Jumper', 'ultimate-multisite'), + 'desc' => __('Spotlight-like search bar that allows you to easily access everything on your network.', 'ultimate-multisite'), 'type' => 'header', ] ); @@ -506,8 +506,8 @@ public function add_settings(): void { 'tools', 'enable_jumper', [ - 'title' => __('Enable Jumper', 'multisite-ultimate'), - 'desc' => __('Turn this option on to make the Jumper available on your network.', 'multisite-ultimate'), + 'title' => __('Enable Jumper', 'ultimate-multisite'), + 'desc' => __('Turn this option on to make the Jumper available on your network.', 'ultimate-multisite'), 'type' => 'toggle', 'default' => 1, ] @@ -517,8 +517,8 @@ public function add_settings(): void { 'tools', 'jumper_key', [ - 'title' => __('Trigger Key', 'multisite-ultimate'), - 'desc' => __('Change the keyboard key used in conjunction with ctrl + alt (or cmd + option), to trigger the Jumper box.', 'multisite-ultimate'), + 'title' => __('Trigger Key', 'ultimate-multisite'), + 'desc' => __('Change the keyboard key used in conjunction with ctrl + alt (or cmd + option), to trigger the Jumper box.', 'ultimate-multisite'), 'type' => 'text', 'default' => 'g', 'require' => [ @@ -531,9 +531,9 @@ public function add_settings(): void { 'tools', 'jumper_custom_links', [ - 'title' => __('Custom Links', 'multisite-ultimate'), - 'desc' => __('Use this textarea to add custom links to the Jumper. Add one per line, with the format "Title : url".', 'multisite-ultimate'), - 'placeholder' => __('Tile of Custom Link : http://link.com', 'multisite-ultimate'), + 'title' => __('Custom Links', 'ultimate-multisite'), + 'desc' => __('Use this textarea to add custom links to the Jumper. Add one per line, with the format "Title : url".', 'ultimate-multisite'), + 'placeholder' => __('Tile of Custom Link : http://link.com', 'ultimate-multisite'), 'type' => 'textarea', 'html_attr' => [ 'rows' => 4, diff --git a/inc/ui/class-limits-element.php b/inc/ui/class-limits-element.php index 52fc351a6..188a435ae 100644 --- a/inc/ui/class-limits-element.php +++ b/inc/ui/class-limits-element.php @@ -73,14 +73,14 @@ public function get_icon($context = 'block'): string { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Limits & Quotas', 'multisite-ultimate'); + return __('Limits & Quotas', 'ultimate-multisite'); } /** @@ -89,14 +89,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -121,23 +121,23 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('Site Limits', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely.', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('Site Limits', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely.', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['columns'] = [ 'type' => 'number', - 'title' => __('Columns', 'multisite-ultimate'), - 'desc' => __('How many columns to use.', 'multisite-ultimate'), + 'title' => __('Columns', 'ultimate-multisite'), + 'desc' => __('How many columns to use.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, 'min' => 1, @@ -193,7 +193,7 @@ public function defaults() { return [ 'columns' => 1, - 'title' => __('Site Limits', 'multisite-ultimate'), + 'title' => __('Site Limits', 'ultimate-multisite'), ]; } diff --git a/inc/ui/class-login-form-element.php b/inc/ui/class-login-form-element.php index cee213e0b..29332b3e0 100644 --- a/inc/ui/class-login-form-element.php +++ b/inc/ui/class-login-form-element.php @@ -89,14 +89,14 @@ public function get_icon($context = 'block'): string { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Login Form', 'multisite-ultimate'); + return __('Login Form', 'ultimate-multisite'); } /** @@ -105,14 +105,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a login form to the page.', 'multisite-ultimate'); + return __('Adds a login form to the page.', 'ultimate-multisite'); } /** @@ -137,23 +137,23 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['display_title'] = [ 'type' => 'toggle', - 'title' => __('Display Title?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the title element.', 'multisite-ultimate'), + 'title' => __('Display Title?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the title element.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('Login', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('Login', 'ultimate-multisite'), 'desc' => '', 'tooltip' => '', 'required' => [ @@ -163,22 +163,22 @@ public function fields() { $fields['redirect_type'] = [ 'type' => 'select', - 'title' => __('Redirect Type', 'multisite-ultimate'), - 'desc' => __('The behavior after login', 'multisite-ultimate'), + 'title' => __('Redirect Type', 'ultimate-multisite'), + 'desc' => __('The behavior after login', 'ultimate-multisite'), 'tooltip' => '', 'default' => 'default', 'options' => [ - 'default' => __('Wordpress Default', 'multisite-ultimate'), - 'customer_site' => __('Send To Customer Site', 'multisite-ultimate'), - 'main_site' => __('Send To Main Site', 'multisite-ultimate'), + 'default' => __('Wordpress Default', 'ultimate-multisite'), + 'customer_site' => __('Send To Customer Site', 'ultimate-multisite'), + 'main_site' => __('Send To Main Site', 'ultimate-multisite'), ], ]; $fields['customer_redirect_path'] = [ 'type' => 'text', - 'title' => __('Customer Redirect Path', 'multisite-ultimate'), - 'value' => __('/wp-admin', 'multisite-ultimate'), - 'desc' => __('e.g. /wp-admin', 'multisite-ultimate'), + 'title' => __('Customer Redirect Path', 'ultimate-multisite'), + 'value' => __('/wp-admin', 'ultimate-multisite'), + 'desc' => __('e.g. /wp-admin', 'ultimate-multisite'), 'tooltip' => '', 'required' => [ 'redirect_type' => 'customer_site', @@ -187,9 +187,9 @@ public function fields() { $fields['main_redirect_path'] = [ 'type' => 'text', - 'title' => __('Main Site Redirect Path', 'multisite-ultimate'), - 'value' => __('/wp-admin', 'multisite-ultimate'), - 'desc' => __('e.g. /wp-admin', 'multisite-ultimate'), + 'title' => __('Main Site Redirect Path', 'ultimate-multisite'), + 'value' => __('/wp-admin', 'ultimate-multisite'), + 'desc' => __('e.g. /wp-admin', 'ultimate-multisite'), 'tooltip' => '', 'required' => [ 'redirect_type' => 'main_site', @@ -197,67 +197,67 @@ public function fields() { ]; $fields['header_username'] = [ - 'title' => __('Username Field', 'multisite-ultimate'), - 'desc' => __('Username Field', 'multisite-ultimate'), + 'title' => __('Username Field', 'ultimate-multisite'), + 'desc' => __('Username Field', 'ultimate-multisite'), 'type' => 'header', ]; $fields['label_username'] = [ 'type' => 'text', - 'title' => __('Username Field Label', 'multisite-ultimate'), - 'value' => __('Username or Email Address', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide.', 'multisite-ultimate'), + 'title' => __('Username Field Label', 'ultimate-multisite'), + 'value' => __('Username or Email Address', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide.', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['placeholder_username'] = [ 'type' => 'text', - 'title' => __('Username Field Placeholder', 'multisite-ultimate'), - 'desc' => __('e.g. Username Here', 'multisite-ultimate'), + 'title' => __('Username Field Placeholder', 'ultimate-multisite'), + 'desc' => __('e.g. Username Here', 'ultimate-multisite'), 'value' => '', 'tooltip' => '', ]; $fields['header_password'] = [ - 'title' => __('Password Field', 'multisite-ultimate'), - 'desc' => __('Password Field', 'multisite-ultimate'), + 'title' => __('Password Field', 'ultimate-multisite'), + 'desc' => __('Password Field', 'ultimate-multisite'), 'type' => 'header', ]; $fields['label_password'] = [ 'type' => 'text', - 'title' => __('Password Field Label', 'multisite-ultimate'), - 'value' => __('Password', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide.', 'multisite-ultimate'), + 'title' => __('Password Field Label', 'ultimate-multisite'), + 'value' => __('Password', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide.', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['placeholder_password'] = [ 'type' => 'text', - 'title' => __('Password Field Placeholder', 'multisite-ultimate'), - 'desc' => __('e.g. Your Password', 'multisite-ultimate'), + 'title' => __('Password Field Placeholder', 'ultimate-multisite'), + 'desc' => __('e.g. Your Password', 'ultimate-multisite'), 'value' => '', 'tooltip' => '', ]; $fields['header_remember'] = [ - 'title' => __('Remember Me', 'multisite-ultimate'), - 'desc' => __('Remember Me', 'multisite-ultimate'), + 'title' => __('Remember Me', 'ultimate-multisite'), + 'desc' => __('Remember Me', 'ultimate-multisite'), 'type' => 'header', ]; $fields['remember'] = [ 'type' => 'toggle', - 'title' => __('Display Remember Toggle?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the remember me checkbox.', 'multisite-ultimate'), + 'title' => __('Display Remember Toggle?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the remember me checkbox.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; $fields['label_remember'] = [ 'type' => 'text', - 'title' => __('Remember Me Label', 'multisite-ultimate'), - 'value' => __('Remember Me', 'multisite-ultimate'), + 'title' => __('Remember Me Label', 'ultimate-multisite'), + 'value' => __('Remember Me', 'ultimate-multisite'), 'desc' => '', 'tooltip' => '', 'required' => [ @@ -267,8 +267,8 @@ public function fields() { $fields['desc_remember'] = [ 'type' => 'text', - 'title' => __('Remember Me Description', 'multisite-ultimate'), - 'value' => __('Keep me logged in for two weeks.', 'multisite-ultimate'), + 'title' => __('Remember Me Description', 'ultimate-multisite'), + 'value' => __('Keep me logged in for two weeks.', 'ultimate-multisite'), 'desc' => '', 'tooltip' => '', 'required' => [ @@ -277,15 +277,15 @@ public function fields() { ]; $fields['header_submit'] = [ - 'title' => __('Submit Button', 'multisite-ultimate'), - 'desc' => __('Submit Button', 'multisite-ultimate'), + 'title' => __('Submit Button', 'ultimate-multisite'), + 'desc' => __('Submit Button', 'ultimate-multisite'), 'type' => 'header', ]; $fields['label_log_in'] = [ 'type' => 'text', - 'title' => __('Submit Button Label', 'multisite-ultimate'), - 'value' => __('Log In', 'multisite-ultimate'), + 'title' => __('Submit Button Label', 'ultimate-multisite'), + 'value' => __('Log In', 'ultimate-multisite'), 'tooltip' => '', ]; @@ -351,7 +351,7 @@ public function defaults() { return [ 'display_title' => 1, - 'title' => __('Login', 'multisite-ultimate'), + 'title' => __('Login', 'ultimate-multisite'), 'redirect_type' => 'default', 'customer_redirect_path' => '/wp-admin', @@ -367,7 +367,7 @@ public function defaults() { 'placeholder_password' => '', 'label_remember' => __('Remember Me'), // phpcs:ignore WordPress.WP.I18n.MissingArgDomain - 'desc_remember' => __('Keep me logged in for two weeks.', 'multisite-ultimate'), + 'desc_remember' => __('Keep me logged in for two weeks.', 'ultimate-multisite'), 'label_log_in' => __('Log In'), // phpcs:ignore WordPress.WP.I18n.MissingArgDomain diff --git a/inc/ui/class-my-sites-element.php b/inc/ui/class-my-sites-element.php index 8d6254009..13cef1409 100644 --- a/inc/ui/class-my-sites-element.php +++ b/inc/ui/class-my-sites-element.php @@ -84,14 +84,14 @@ public function get_icon($context = 'block') { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('My Sites', 'multisite-ultimate'); + return __('My Sites', 'ultimate-multisite'); } /** @@ -100,14 +100,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a block to display the sites owned by the current customer.', 'multisite-ultimate'); + return __('Adds a block to display the sites owned by the current customer.', 'ultimate-multisite'); } /** @@ -132,33 +132,33 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['site_manage_type'] = [ 'type' => 'select', - 'title' => __('Site Manage Type', 'multisite-ultimate'), - 'desc' => __('The page to manage a site.', 'multisite-ultimate'), + 'title' => __('Site Manage Type', 'ultimate-multisite'), + 'desc' => __('The page to manage a site.', 'ultimate-multisite'), 'tooltip' => '', 'default' => 'default', 'options' => [ - 'default' => __('Same Page', 'multisite-ultimate'), - 'wp_admin' => __('WP Admin', 'multisite-ultimate'), - 'custom_page' => __('Custom Page', 'multisite-ultimate'), + 'default' => __('Same Page', 'ultimate-multisite'), + 'wp_admin' => __('WP Admin', 'ultimate-multisite'), + 'custom_page' => __('Custom Page', 'ultimate-multisite'), ], ]; $fields['site_show'] = [ 'type' => 'select', - 'title' => __('Which sites to show?', 'multisite-ultimate'), - 'desc' => __('Select which sites should be listed for user.', 'multisite-ultimate'), + 'title' => __('Which sites to show?', 'ultimate-multisite'), + 'desc' => __('Select which sites should be listed for user.', 'ultimate-multisite'), 'tooltip' => '', 'default' => 'all', 'options' => [ - 'all' => __('All', 'multisite-ultimate'), - 'owned' => __('Owned', 'multisite-ultimate'), + 'all' => __('All', 'ultimate-multisite'), + 'owned' => __('Owned', 'ultimate-multisite'), ], ]; @@ -170,7 +170,7 @@ public function fields() { $pages = $pages ?: []; - $pages_list = [0 => __('Current Page', 'multisite-ultimate')]; + $pages_list = [0 => __('Current Page', 'ultimate-multisite')]; foreach ($pages as $page) { $pages_list[ $page->ID ] = $page->post_title; @@ -178,9 +178,9 @@ public function fields() { $fields['custom_manage_page'] = [ 'type' => 'select', - 'title' => __('Manage Redirect Page', 'multisite-ultimate'), + 'title' => __('Manage Redirect Page', 'ultimate-multisite'), 'value' => 0, - 'desc' => __('The page to redirect user after select a site.', 'multisite-ultimate'), + 'desc' => __('The page to redirect user after select a site.', 'ultimate-multisite'), 'tooltip' => '', 'required' => [ 'site_manage_type' => 'custom_page', @@ -190,8 +190,8 @@ public function fields() { $fields['columns'] = [ 'type' => 'number', - 'title' => __('Columns', 'multisite-ultimate'), - 'desc' => __('How many columns to use.', 'multisite-ultimate'), + 'title' => __('Columns', 'ultimate-multisite'), + 'desc' => __('How many columns to use.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 4, 'min' => 1, @@ -200,8 +200,8 @@ public function fields() { $fields['display_images'] = [ 'type' => 'toggle', - 'title' => __('Display Site Screenshot?', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'multisite-ultimate'), + 'title' => __('Display Site Screenshot?', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the site screenshots on the element.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; diff --git a/inc/ui/class-payment-methods-element.php b/inc/ui/class-payment-methods-element.php index 6d249008e..841d03fe7 100644 --- a/inc/ui/class-payment-methods-element.php +++ b/inc/ui/class-payment-methods-element.php @@ -58,14 +58,14 @@ public function get_icon($context = 'block') { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Payment Methods', 'multisite-ultimate'); + return __('Payment Methods', 'ultimate-multisite'); } /** @@ -74,14 +74,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -106,23 +106,23 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['password_strength'] = [ 'type' => 'toggle', - 'title' => __('Password Strength Meter', 'multisite-ultimate'), - 'desc' => __('Set this customer as a VIP.', 'multisite-ultimate'), + 'title' => __('Password Strength Meter', 'ultimate-multisite'), + 'desc' => __('Set this customer as a VIP.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; $fields['apply_styles'] = [ 'type' => 'toggle', - 'title' => __('Apply Styles', 'multisite-ultimate'), - 'desc' => __('Set this customer as a VIP.', 'multisite-ultimate'), + 'title' => __('Apply Styles', 'ultimate-multisite'), + 'desc' => __('Set this customer as a VIP.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; diff --git a/inc/ui/class-simple-text-element.php b/inc/ui/class-simple-text-element.php index 9a62996e4..daf8e78dc 100644 --- a/inc/ui/class-simple-text-element.php +++ b/inc/ui/class-simple-text-element.php @@ -74,14 +74,14 @@ public function get_icon($context = 'block') { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Simple Text', 'multisite-ultimate'); + return __('Simple Text', 'ultimate-multisite'); } /** @@ -90,14 +90,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a simple text block to the page.', 'multisite-ultimate'); + return __('Adds a simple text block to the page.', 'ultimate-multisite'); } /** @@ -122,16 +122,16 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['simple_text'] = [ 'type' => 'textarea', - 'title' => __('Content', 'multisite-ultimate'), - 'placeholder' => __('E.g. Text, HTML or shortcode.', 'multisite-ultimate'), - 'desc' => __('You can insert plain text, HTML or a shortcode in this block.', 'multisite-ultimate'), + 'title' => __('Content', 'ultimate-multisite'), + 'placeholder' => __('E.g. Text, HTML or shortcode.', 'ultimate-multisite'), + 'desc' => __('You can insert plain text, HTML or a shortcode in this block.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'rows' => 6, @@ -198,7 +198,7 @@ public function keywords() { public function defaults() { return [ - 'simple_text' => __('Text, HTML or shortcode.', 'multisite-ultimate'), + 'simple_text' => __('Text, HTML or shortcode.', 'ultimate-multisite'), ]; } diff --git a/inc/ui/class-site-actions-element.php b/inc/ui/class-site-actions-element.php index 0215b6c37..2ec953dba 100644 --- a/inc/ui/class-site-actions-element.php +++ b/inc/ui/class-site-actions-element.php @@ -96,14 +96,14 @@ public function get_icon($context = 'block'): string { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Actions', 'multisite-ultimate'); + return __('Actions', 'ultimate-multisite'); } /** @@ -112,14 +112,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -144,31 +144,31 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['show_change_password'] = [ 'type' => 'toggle', - 'title' => __('Show Change Password', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the password link.', 'multisite-ultimate'), + 'title' => __('Show Change Password', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the password link.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; $fields['show_change_default_site'] = [ 'type' => 'toggle', - 'title' => __('Show Change Default Site', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the change default site link.', 'multisite-ultimate'), + 'title' => __('Show Change Default Site', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the change default site link.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; $fields['show_change_payment_method'] = [ 'type' => 'toggle', - 'title' => __('Show Change Payment Method', 'multisite-ultimate'), - 'desc' => __('Toggle to show/hide the option to cancel the current payment method.', 'multisite-ultimate'), + 'title' => __('Show Change Payment Method', 'ultimate-multisite'), + 'desc' => __('Toggle to show/hide the option to cancel the current payment method.', 'ultimate-multisite'), 'tooltip' => '', 'value' => 1, ]; @@ -181,7 +181,7 @@ public function fields() { $pages = $pages ?: []; - $pages_list = [0 => __('Default', 'multisite-ultimate')]; + $pages_list = [0 => __('Default', 'ultimate-multisite')]; foreach ($pages as $page) { $pages_list[ $page->ID ] = $page->post_title; @@ -189,9 +189,9 @@ public function fields() { $fields['redirect_after_delete'] = [ 'type' => 'select', - 'title' => __('Redirect After Delete', 'multisite-ultimate'), + 'title' => __('Redirect After Delete', 'ultimate-multisite'), 'value' => 0, - 'desc' => __('The page to redirect user after delete current site.', 'multisite-ultimate'), + 'desc' => __('The page to redirect user after delete current site.', 'ultimate-multisite'), 'tooltip' => '', 'options' => $pages_list, ]; @@ -371,7 +371,7 @@ public function get_actions($atts) { if ($is_template_switching_enabled && $this->site) { $actions['template_switching'] = [ - 'label' => __('Change Site Template', 'multisite-ultimate'), + 'label' => __('Change Site Template', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'href' => add_query_arg( [ @@ -384,7 +384,7 @@ public function get_actions($atts) { if (count($all_blogs) > 1 && wu_get_isset($atts, 'show_change_default_site')) { $actions['default_site'] = [ - 'label' => __('Change Default Site', 'multisite-ultimate'), + 'label' => __('Change Default Site', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox', 'href' => wu_get_form_url('change_default_site'), @@ -393,7 +393,7 @@ public function get_actions($atts) { if (wu_get_isset($atts, 'show_change_password')) { $actions['change_password'] = [ - 'label' => __('Change Password', 'multisite-ultimate'), + 'label' => __('Change Password', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox', 'href' => wu_get_form_url('change_password'), @@ -404,7 +404,7 @@ public function get_actions($atts) { if (wu_get_isset($atts, 'show_change_payment_method') && $payment_gateway) { $actions['cancel_payment_method'] = [ - 'label' => __('Cancel Current Payment Method', 'multisite-ultimate'), + 'label' => __('Cancel Current Payment Method', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox', 'href' => wu_get_form_url( @@ -435,7 +435,7 @@ public function get_danger_zone_actions($atts) { $actions = array_merge( [ 'delete_site' => [ - 'label' => __('Delete Site', 'multisite-ultimate'), + 'label' => __('Delete Site', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox wu-text-red-500', 'href' => wu_get_form_url( @@ -455,7 +455,7 @@ public function get_danger_zone_actions($atts) { $actions = array_merge( [ 'cancel_membership' => [ - 'label' => __('Cancel Membership', 'multisite-ultimate'), + 'label' => __('Cancel Membership', 'ultimate-multisite'), 'icon_classes' => 'dashicons-wu-edit wu-align-middle', 'classes' => 'wubox wu-text-red-500', 'href' => wu_get_form_url( @@ -487,13 +487,13 @@ public function render_delete_site(): void { $error = ''; if ( ! $site) { - $error = __('Site not selected.', 'multisite-ultimate'); + $error = __('Site not selected.', 'ultimate-multisite'); } $customer = wu_get_current_customer(); if ( ! $customer || $customer->get_id() !== $site->get_customer_id()) { - $error = __('You are not allowed to do this.', 'multisite-ultimate'); + $error = __('You are not allowed to do this.', 'ultimate-multisite'); } if ( ! empty($error)) { @@ -530,16 +530,16 @@ public function render_delete_site(): void { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Site Deletion', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Site Deletion', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Delete Site', 'multisite-ultimate'), - 'placeholder' => __('Delete Site', 'multisite-ultimate'), + 'title' => __('Delete Site', 'ultimate-multisite'), + 'placeholder' => __('Delete Site', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -584,13 +584,13 @@ public function handle_delete_site() { $site = wu_get_site_by_hash(wu_request('site')); if ( ! $site || ! $site->is_customer_allowed()) { - return new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + return new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); } $customer = wu_get_current_customer(); if ( ! $customer || $customer->get_id() !== $site->get_customer_id()) { - return new \WP_Error('error', __('You are not allowed to do this.', 'multisite-ultimate')); + return new \WP_Error('error', __('You are not allowed to do this.', 'ultimate-multisite')); } $wpdb->query('START TRANSACTION'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery @@ -636,23 +636,23 @@ public function render_change_password(): void { $fields = [ 'password' => [ 'type' => 'password', - 'title' => __('Current Password', 'multisite-ultimate'), - 'placeholder' => __('******', 'multisite-ultimate'), + 'title' => __('Current Password', 'ultimate-multisite'), + 'placeholder' => __('******', 'ultimate-multisite'), ], 'new_password' => [ 'type' => 'password', - 'title' => __('New Password', 'multisite-ultimate'), - 'placeholder' => __('******', 'multisite-ultimate'), + 'title' => __('New Password', 'ultimate-multisite'), + 'placeholder' => __('******', 'ultimate-multisite'), 'meter' => true, ], 'new_password_conf' => [ 'type' => 'password', - 'placeholder' => __('******', 'multisite-ultimate'), - 'title' => __('Confirm New Password', 'multisite-ultimate'), + 'placeholder' => __('******', 'ultimate-multisite'), + 'title' => __('Confirm New Password', 'ultimate-multisite'), ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Reset Password', 'multisite-ultimate'), + 'title' => __('Reset Password', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -688,7 +688,7 @@ public function handle_change_password(): void { $user = wp_get_current_user(); if ( ! $user) { - $error = new \WP_Error('user-dont-exist', __('Something went wrong.', 'multisite-ultimate')); + $error = new \WP_Error('user-dont-exist', __('Something went wrong.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -696,7 +696,7 @@ public function handle_change_password(): void { $current_password = wu_request('password'); if ( ! wp_check_password($current_password, $user->user_pass, $user->ID)) { - $error = new \WP_Error('wrong-password', __('Your current password is wrong.', 'multisite-ultimate')); + $error = new \WP_Error('wrong-password', __('Your current password is wrong.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -705,13 +705,13 @@ public function handle_change_password(): void { $new_password_conf = wu_request('new_password_conf'); if ( ! $new_password || strlen((string) $new_password) < 6) { - $error = new \WP_Error('password-min-length', __('The new password must be at least 6 characters long.', 'multisite-ultimate')); + $error = new \WP_Error('password-min-length', __('The new password must be at least 6 characters long.', 'ultimate-multisite')); wp_send_json_error($error); } if ($new_password !== $new_password_conf) { - $error = new \WP_Error('passwords-dont-match', __('New passwords do not match.', 'multisite-ultimate')); + $error = new \WP_Error('passwords-dont-match', __('New passwords do not match.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -752,8 +752,8 @@ public function render_change_default_site(): void { $fields = [ 'new_primary_site' => [ 'type' => 'select', - 'title' => __('Primary Site', 'multisite-ultimate'), - 'desc' => __('Change the primary site of your network.', 'multisite-ultimate'), + 'title' => __('Primary Site', 'ultimate-multisite'), + 'desc' => __('Change the primary site of your network.', 'ultimate-multisite'), 'options' => $option_blogs, 'value' => $primary_blog, 'html_attr' => [ @@ -762,7 +762,7 @@ public function render_change_default_site(): void { ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Change Default Site', 'multisite-ultimate'), + 'title' => __('Change Default Site', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -814,7 +814,7 @@ public function handle_change_default_site(): void { ); } - $error = new \WP_Error('no-site-selected', __('You need to select a new primary site.', 'multisite-ultimate')); + $error = new \WP_Error('no-site-selected', __('You need to select a new primary site.', 'ultimate-multisite')); wp_send_json_error($error); } @@ -832,13 +832,13 @@ public function render_cancel_payment_method(): void { $error = ''; if ( ! $membership) { - $error = __('Membership not selected.', 'multisite-ultimate'); + $error = __('Membership not selected.', 'ultimate-multisite'); } $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'multisite-ultimate'); + $error = __('You are not allowed to do this.', 'ultimate-multisite'); } if ( ! empty($error)) { @@ -875,16 +875,16 @@ public function render_cancel_payment_method(): void { ], 'confirm' => [ 'type' => 'toggle', - 'title' => __('Confirm Payment Method Cancellation', 'multisite-ultimate'), - 'desc' => __('This action can not be undone.', 'multisite-ultimate'), + 'title' => __('Confirm Payment Method Cancellation', 'ultimate-multisite'), + 'desc' => __('This action can not be undone.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmed', ], ], 'submit_button' => [ 'type' => 'submit', - 'title' => __('Cancel Payment Method', 'multisite-ultimate'), - 'placeholder' => __('Cancel Payment Method', 'multisite-ultimate'), + 'title' => __('Cancel Payment Method', 'ultimate-multisite'), + 'placeholder' => __('Cancel Payment Method', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', @@ -926,7 +926,7 @@ public function handle_cancel_payment_method(): void { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); wp_send_json_error($error); @@ -936,7 +936,7 @@ public function handle_cancel_payment_method(): void { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = new \WP_Error('error', __('You are not allowed to do this.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('You are not allowed to do this.', 'ultimate-multisite')); wp_send_json_error($error); @@ -979,13 +979,13 @@ public function render_cancel_membership(): void { $error = ''; if ( ! $membership) { - $error = __('Membership not selected.', 'multisite-ultimate'); + $error = __('Membership not selected.', 'ultimate-multisite'); } $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = __('You are not allowed to do this.', 'multisite-ultimate'); + $error = __('You are not allowed to do this.', 'ultimate-multisite'); } if ( ! empty($error)) { @@ -1022,33 +1022,33 @@ public function render_cancel_membership(): void { ], 'cancellation_reason' => [ 'type' => 'select', - 'title' => __('Please tell us why you are cancelling.', 'multisite-ultimate'), - 'desc' => __('We would love your feedback.', 'multisite-ultimate'), + 'title' => __('Please tell us why you are cancelling.', 'ultimate-multisite'), + 'desc' => __('We would love your feedback.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'cancellation_reason', ], 'default' => '', 'options' => [ - '' => __('Select a reason', 'multisite-ultimate'), - 'unused' => __('I no longer need it', 'multisite-ultimate'), - 'too_expensive' => __('It\'s too expensive', 'multisite-ultimate'), - 'missing_features' => __('I need more features', 'multisite-ultimate'), - 'switched_service' => __('Switched to another service', 'multisite-ultimate'), - 'customer_service' => __('Customer support is less than expected', 'multisite-ultimate'), - 'too_complex' => __('Too complex', 'multisite-ultimate'), - 'other' => __('Other', 'multisite-ultimate'), + '' => __('Select a reason', 'ultimate-multisite'), + 'unused' => __('I no longer need it', 'ultimate-multisite'), + 'too_expensive' => __('It\'s too expensive', 'ultimate-multisite'), + 'missing_features' => __('I need more features', 'ultimate-multisite'), + 'switched_service' => __('Switched to another service', 'ultimate-multisite'), + 'customer_service' => __('Customer support is less than expected', 'ultimate-multisite'), + 'too_complex' => __('Too complex', 'ultimate-multisite'), + 'other' => __('Other', 'ultimate-multisite'), ], ], 'cancellation_explanation' => [ 'type' => 'textarea', - 'title' => __('Please provide additional details.', 'multisite-ultimate'), + 'title' => __('Please provide additional details.', 'ultimate-multisite'), 'wrapper_html_attr' => [ 'v-show' => 'cancellation_reason === "other"', ], ], 'confirm' => [ 'type' => 'text', - 'title' => __('Type CANCEL to confirm this membership cancellation.', 'multisite-ultimate'), + 'title' => __('Type CANCEL to confirm this membership cancellation.', 'ultimate-multisite'), 'html_attr' => [ 'v-model' => 'confirmation', ], @@ -1065,19 +1065,19 @@ public function render_cancel_membership(): void { $fields['next_charge'] = [ 'type' => 'note', // translators: %s: Next charge date. - 'desc' => sprintf(__('Your sites will stay working until %s.', 'multisite-ultimate'), date_i18n(get_option('date_format'), $next_charge)), + 'desc' => sprintf(__('Your sites will stay working until %s.', 'ultimate-multisite'), date_i18n(get_option('date_format'), $next_charge)), ]; } $fields['submit_button'] = [ 'type' => 'submit', - 'title' => __('Cancel Membership', 'multisite-ultimate'), - 'placeholder' => __('Cancel Membership', 'multisite-ultimate'), + 'title' => __('Cancel Membership', 'ultimate-multisite'), + 'placeholder' => __('Cancel Membership', 'ultimate-multisite'), 'value' => 'save', 'classes' => 'button button-primary wu-w-full', 'wrapper_classes' => 'wu-items-end', 'html_attr' => [ - 'v-bind:disabled' => 'confirmation !== "' . __('CANCEL', 'multisite-ultimate') . '" || cancellation_reason === ""', + 'v-bind:disabled' => 'confirmation !== "' . __('CANCEL', 'ultimate-multisite') . '" || cancellation_reason === ""', ], ]; @@ -1114,7 +1114,7 @@ public function handle_cancel_membership(): void { $membership = wu_get_membership_by_hash(wu_request('membership')); if ( ! $membership) { - $error = new \WP_Error('error', __('An unexpected error happened.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('An unexpected error happened.', 'ultimate-multisite')); wp_send_json_error($error); @@ -1124,7 +1124,7 @@ public function handle_cancel_membership(): void { $customer = wu_get_current_customer(); if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) { - $error = new \WP_Error('error', __('You are not allowed to do this.', 'multisite-ultimate')); + $error = new \WP_Error('error', __('You are not allowed to do this.', 'ultimate-multisite')); wp_send_json_error($error); @@ -1132,12 +1132,12 @@ public function handle_cancel_membership(): void { } $cancellation_options = [ - 'unused' => __('I no longer need it', 'multisite-ultimate'), - 'too_expensive' => __('It\'s too expensive', 'multisite-ultimate'), - 'missing_features' => __('I need more features', 'multisite-ultimate'), - 'switched_service' => __('Switched to another service', 'multisite-ultimate'), - 'customer_service' => __('Customer support is less than expected', 'multisite-ultimate'), - 'too_complex' => __('Too complex', 'multisite-ultimate'), + 'unused' => __('I no longer need it', 'ultimate-multisite'), + 'too_expensive' => __('It\'s too expensive', 'ultimate-multisite'), + 'missing_features' => __('I need more features', 'ultimate-multisite'), + 'switched_service' => __('Switched to another service', 'ultimate-multisite'), + 'customer_service' => __('Customer support is less than expected', 'ultimate-multisite'), + 'too_complex' => __('Too complex', 'ultimate-multisite'), 'other' => wu_request('cancellation_explanation'), ]; diff --git a/inc/ui/class-site-maintenance-element.php b/inc/ui/class-site-maintenance-element.php index de4ef33b5..02f20ff2e 100644 --- a/inc/ui/class-site-maintenance-element.php +++ b/inc/ui/class-site-maintenance-element.php @@ -81,14 +81,14 @@ public function get_icon($context = 'block') { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Site Maintenance', 'multisite-ultimate'); + return __('Site Maintenance', 'ultimate-multisite'); } /** @@ -97,14 +97,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds the toggle control to turn maintenance mode on.', 'multisite-ultimate'); + return __('Adds the toggle control to turn maintenance mode on.', 'ultimate-multisite'); } /** @@ -129,23 +129,23 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Label', 'multisite-ultimate'), - 'value' => __('Toggle Maintenance Mode', 'multisite-ultimate'), - 'placeholder' => __('e.g. Toggle Maintenance Mode', 'multisite-ultimate'), + 'title' => __('Label', 'ultimate-multisite'), + 'value' => __('Toggle Maintenance Mode', 'ultimate-multisite'), + 'placeholder' => __('e.g. Toggle Maintenance Mode', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['desc'] = [ 'type' => 'textarea', - 'title' => __('Description', 'multisite-ultimate'), - 'value' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'multisite-ultimate'), + 'title' => __('Description', 'ultimate-multisite'), + 'value' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'ultimate-multisite'), 'tooltip' => '', ]; @@ -196,8 +196,8 @@ public function keywords() { public function defaults() { return [ - 'title' => __('Toggle Maintenance Mode', 'multisite-ultimate'), - 'desc' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'multisite-ultimate'), + 'title' => __('Toggle Maintenance Mode', 'ultimate-multisite'), + 'desc' => __('Put your site on maintenance mode. When activated, the front-end will only be accessible to logged users.', 'ultimate-multisite'), ]; } diff --git a/inc/ui/class-template-previewer.php b/inc/ui/class-template-previewer.php index 0c494e605..bd9bd772b 100644 --- a/inc/ui/class-template-previewer.php +++ b/inc/ui/class-template-previewer.php @@ -256,7 +256,7 @@ public function template_previewer(): void { * Check if this is a site template */ if ( ! $selected_template || ($selected_template->get_type() !== Site_Type::SITE_TEMPLATE && ! wu_request('customizer'))) { - wp_die(esc_html__('This template is not available', 'multisite-ultimate')); + wp_die(esc_html__('This template is not available', 'ultimate-multisite')); } $categories = []; @@ -376,7 +376,7 @@ public function get_settings() { 'bg_color' => '#f9f9f9', 'button_bg_color' => '#00a1ff', 'logo_url' => wu_get_network_logo(), - 'button_text' => __('Use this Template', 'multisite-ultimate'), + 'button_text' => __('Use this Template', 'ultimate-multisite'), 'preview_url_parameter' => 'template-preview', 'display_responsive_controls' => true, 'use_custom_logo' => false, diff --git a/inc/ui/class-template-switching-element.php b/inc/ui/class-template-switching-element.php index eb30d3a0d..e0ab87fae 100644 --- a/inc/ui/class-template-switching-element.php +++ b/inc/ui/class-template-switching-element.php @@ -81,7 +81,7 @@ public function get_icon($context = 'block'): string { */ public function get_title() { - return __('Template Switching', 'multisite-ultimate'); + return __('Template Switching', 'ultimate-multisite'); } /** @@ -92,7 +92,7 @@ public function get_title() { */ public function get_description() { - return __('Adds the template switching form to this page.', 'multisite-ultimate'); + return __('Adds the template switching form to this page.', 'ultimate-multisite'); } /** @@ -141,8 +141,8 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('Layout', 'multisite-ultimate'), - 'desc' => __('Layout', 'multisite-ultimate'), + 'title' => __('Layout', 'ultimate-multisite'), + 'desc' => __('Layout', 'ultimate-multisite'), 'type' => 'header', ]; @@ -152,8 +152,8 @@ public function fields() { 'fields' => [ 'template_selection_template' => [ 'type' => 'select', - 'title' => __('Template Selector Layout', 'multisite-ultimate'), - 'placeholder' => __('Select your Layout', 'multisite-ultimate'), + 'title' => __('Template Selector Layout', 'ultimate-multisite'), + 'placeholder' => __('Select your Layout', 'ultimate-multisite'), 'default' => 'clean', 'options' => [$this, 'get_template_selection_templates'], 'wrapper_classes' => 'wu-flex-grow', @@ -169,7 +169,7 @@ public function fields() { 'order' => 99, 'wrapper_classes' => 'sm:wu-p-0 sm:wu-block', 'classes' => '', - 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'multisite-ultimate')), + 'desc' => sprintf('
%s
', __('Want to add customized template selection templates?
See how you can do that here.', 'ultimate-multisite')), ]; return $fields; @@ -274,7 +274,7 @@ public function switch_template() { $template_id = wu_request('template_id', ''); if ( ! $template_id) { - return new \WP_Error('template_id_required', __('You need to provide a valid template to duplicate.', 'multisite-ultimate')); + return new \WP_Error('template_id_required', __('You need to provide a valid template to duplicate.', 'ultimate-multisite')); } $switch = \WP_Ultimo\Helpers\Site_Duplicator::override_site($template_id, $this->site->get_id()); @@ -353,14 +353,14 @@ public function output($atts, $content = null): void { if ($template_class) { $template_class->render_container($template_attributes, $reducer_class); } else { - esc_html_e('Template does not exist.', 'multisite-ultimate'); + esc_html_e('Template does not exist.', 'ultimate-multisite'); } }; $checkout_fields['back_to_template_selection'] = [ 'type' => 'note', 'order' => 0, - 'desc' => sprintf('%s', __('← Back to Template Selection', 'multisite-ultimate')), + 'desc' => sprintf('%s', __('← Back to Template Selection', 'ultimate-multisite')), 'wrapper_html_attr' => [ 'v-init:original_template_id' => $this->site->get_template_id(), 'v-show' => 'template_id != original_template_id', @@ -381,8 +381,8 @@ public function output($atts, $content = null): void { $checkout_fields['confirm_switch'] = [ 'type' => 'toggle', - 'title' => __('Confirm template switch?', 'multisite-ultimate'), - 'desc' => __('Switching your current template completely overwrites the content of your site with the contents of the newly chosen template. All customizations will be lost. This action cannot be undone.', 'multisite-ultimate'), + 'title' => __('Confirm template switch?', 'ultimate-multisite'), + 'desc' => __('Switching your current template completely overwrites the content of your site with the contents of the newly chosen template. All customizations will be lost. This action cannot be undone.', 'ultimate-multisite'), 'tooltip' => '', 'wrapper_classes' => '', 'value' => 0, @@ -397,7 +397,7 @@ public function output($atts, $content = null): void { $checkout_fields['submit_switch'] = [ 'type' => 'link', - 'display_value' => __('Process Switch', 'multisite-ultimate'), + 'display_value' => __('Process Switch', 'ultimate-multisite'), 'wrapper_classes' => 'wu-text-right wu-bg-gray-100', 'classes' => 'button button-primary', 'wrapper_html_attr' => [ diff --git a/inc/ui/class-thank-you-element.php b/inc/ui/class-thank-you-element.php index a6787d01c..583221544 100644 --- a/inc/ui/class-thank-you-element.php +++ b/inc/ui/class-thank-you-element.php @@ -135,8 +135,8 @@ public function register_scripts(): void { 'resend_verification_email_nonce' => wp_create_nonce('wu_resend_verification_email_nonce'), 'membership_hash' => $this->membership ? $this->membership->get_hash() : false, 'i18n' => [ - 'resending_verification_email' => __('Resending verification email...', 'multisite-ultimate'), - 'email_sent' => __('Verification email sent!', 'multisite-ultimate'), + 'resending_verification_email' => __('Resending verification email...', 'ultimate-multisite'), + 'email_sent' => __('Verification email sent!', 'ultimate-multisite'), ], ] ); @@ -149,14 +149,14 @@ public function register_scripts(): void { * * This is used on the Blocks list of Gutenberg. * You should return a string with the localized title. - * e.g. return __('My Element', 'multisite-ultimate'). + * e.g. return __('My Element', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_title() { - return __('Thank You', 'multisite-ultimate'); + return __('Thank You', 'ultimate-multisite'); } /** @@ -165,14 +165,14 @@ public function get_title() { * This is also used on the Gutenberg block list * to explain what this block is about. * You should return a string with the localized title. - * e.g. return __('Adds a checkout form to the page', 'multisite-ultimate'). + * e.g. return __('Adds a checkout form to the page', 'ultimate-multisite'). * * @since 2.0.0 * @return string */ public function get_description() { - return __('Adds a checkout form block to the page.', 'multisite-ultimate'); + return __('Adds a checkout form block to the page.', 'ultimate-multisite'); } /** @@ -197,24 +197,24 @@ public function fields() { $fields = []; $fields['header'] = [ - 'title' => __('General', 'multisite-ultimate'), - 'desc' => __('General', 'multisite-ultimate'), + 'title' => __('General', 'ultimate-multisite'), + 'desc' => __('General', 'ultimate-multisite'), 'type' => 'header', ]; $fields['title'] = [ 'type' => 'text', - 'title' => __('Title', 'multisite-ultimate'), - 'value' => __('Thank You', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely.', 'multisite-ultimate'), + 'title' => __('Title', 'ultimate-multisite'), + 'value' => __('Thank You', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely.', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['thank_you_message'] = [ 'type' => 'textarea', - 'title' => __('Thank You Message', 'multisite-ultimate'), - 'desc' => __('Shortcodes are supported.', 'multisite-ultimate'), - 'value' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'multisite-ultimate'), + 'title' => __('Thank You Message', 'ultimate-multisite'), + 'desc' => __('Shortcodes are supported.', 'ultimate-multisite'), + 'value' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'rows' => 4, @@ -223,17 +223,17 @@ public function fields() { $fields['title_pending'] = [ 'type' => 'text', - 'title' => __('Title (Pending)', 'multisite-ultimate'), - 'value' => __('Thank You', 'multisite-ultimate'), - 'desc' => __('Leave blank to hide the title completely. This title is used when the payment was not yet confirmed.', 'multisite-ultimate'), + 'title' => __('Title (Pending)', 'ultimate-multisite'), + 'value' => __('Thank You', 'ultimate-multisite'), + 'desc' => __('Leave blank to hide the title completely. This title is used when the payment was not yet confirmed.', 'ultimate-multisite'), 'tooltip' => '', ]; $fields['thank_you_message_pending'] = [ 'type' => 'textarea', - 'title' => __('Thank You Message (Pending)', 'multisite-ultimate'), - 'desc' => __('This content is used when the payment was not yet confirmed. Shortcodes are supported.', 'multisite-ultimate'), - 'value' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'multisite-ultimate'), + 'title' => __('Thank You Message (Pending)', 'ultimate-multisite'), + 'desc' => __('This content is used when the payment was not yet confirmed. Shortcodes are supported.', 'ultimate-multisite'), + 'value' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'rows' => 4, @@ -242,9 +242,9 @@ public function fields() { $fields['no_sites_message'] = [ 'type' => 'textarea', - 'title' => __('No Sites Message', 'multisite-ultimate'), - 'desc' => __('A message to show if membership has no sites. Shortcodes are supported.', 'multisite-ultimate'), - 'value' => __('No sites found', 'multisite-ultimate'), + 'title' => __('No Sites Message', 'ultimate-multisite'), + 'desc' => __('A message to show if membership has no sites. Shortcodes are supported.', 'ultimate-multisite'), + 'value' => __('No sites found', 'ultimate-multisite'), 'tooltip' => '', 'html_attr' => [ 'rows' => 4, @@ -299,11 +299,11 @@ public function keywords() { public function defaults() { return [ - 'title' => __('Thank You', 'multisite-ultimate'), - 'thank_you_message' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'multisite-ultimate'), - 'title_pending' => __('Thank You', 'multisite-ultimate'), - 'thank_you_message_pending' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'multisite-ultimate'), - 'no_sites_message' => __('No sites found', 'multisite-ultimate'), + 'title' => __('Thank You', 'ultimate-multisite'), + 'thank_you_message' => __('Thank you for your payment! Your transaction has been completed and a receipt for your purchase has been emailed to you.', 'ultimate-multisite'), + 'title_pending' => __('Thank You', 'ultimate-multisite'), + 'thank_you_message_pending' => __('Thank you for your order! We are waiting on the payment processor to confirm your payment, which can take up to 5 minutes. We will notify you via email when your site is ready.', 'ultimate-multisite'), + 'no_sites_message' => __('No sites found', 'ultimate-multisite'), ]; } diff --git a/inc/ui/class-tours.php b/inc/ui/class-tours.php index a4b9f64f2..f68b3e010 100644 --- a/inc/ui/class-tours.php +++ b/inc/ui/class-tours.php @@ -97,8 +97,8 @@ public function enqueue_scripts(): void { 'ajaxurl' => wu_ajax_url(), 'nonce' => wp_create_nonce('wu_tour_finished'), 'i18n' => [ - 'next' => __('Next', 'multisite-ultimate'), - 'finish' => __('Close', 'multisite-ultimate'), + 'next' => __('Next', 'ultimate-multisite'), + 'finish' => __('Close', 'ultimate-multisite'), ], ] ); diff --git a/multisite-ultimate.php b/multisite-ultimate.php index 2cc7f34e1..cefddf8a0 100644 --- a/multisite-ultimate.php +++ b/multisite-ultimate.php @@ -91,7 +91,7 @@ function () { ', '' ); diff --git a/views/admin-pages/fields/field-dashicon.php b/views/admin-pages/fields/field-dashicon.php index b10c22cc8..55ec07acb 100644 --- a/views/admin-pages/fields/field-dashicon.php +++ b/views/admin-pages/fields/field-dashicon.php @@ -29,7 +29,7 @@
@@ -123,7 +123,7 @@ class="wu-w-64 wu-px-3 wu-py-2 wu-text-sm wu-border wu-border-gray-300 wu-rounde - +
@@ -137,16 +137,16 @@ class="wu-bg-white wu-border wu-border-gray-200 wu-rounded-lg wu-shadow-sm wu-ov
- +
- +
- +
- +
@@ -165,7 +165,7 @@ class="wu-w-full wu-rounded-lg wu-bg-gray-100 wu-border wu-border-gray-200 wu-r

{{ addon.name }}

- {{ addon.extensions['wp-update-server-plugin'].author.display_name }} + {{ addon.extensions['wp-update-server-plugin'].author.display_name }}

@@ -180,11 +180,11 @@ class="wu-w-full wu-rounded-lg wu-bg-gray-100 wu-border wu-border-gray-200 wu-r
- + {{ addon.last_updated }}
- {{ addon.active_installs }}+ + {{ addon.active_installs }}+
@@ -205,7 +205,7 @@ class="wu-w-full wu-rounded-lg wu-bg-gray-100 wu-border wu-border-gray-200 wu-r
- + @@ -218,7 +218,7 @@ class="wu-px-4 wu-py-2 wu-text-sm wu-font-medium wu-text-gray-500 wu-bg-gray-100 disabled > - + - + - + - +
@@ -267,8 +267,8 @@ class="wu-text-center wu-py-12"
-

-

+

+

diff --git a/views/base/addons/details.php b/views/base/addons/details.php index 31de25832..982c07355 100644 --- a/views/base/addons/details.php +++ b/views/base/addons/details.php @@ -28,32 +28,32 @@ - + =' + step_name + '&field=' + field.id" > - + | @@ -105,38 +105,38 @@ class="wubox" + > + >
- + {{ field.type }} - + {{ field.id }} - + diff --git a/views/base/checkout-forms/steps.php b/views/base/checkout-forms/steps.php index 3124c0f01..1aa909aa5 100644 --- a/views/base/checkout-forms/steps.php +++ b/views/base/checkout-forms/steps.php @@ -18,7 +18,7 @@ - + @@ -30,27 +30,27 @@
  • - - + +
  • - +
  • @@ -94,7 +94,7 @@ class="postbox wu-my-4"

    - {{ step.name }} + {{ step.name }}

    @@ -107,11 +107,11 @@ class="postbox wu-my-4" - guests', 'multisite-ultimate')); ?> + guests', 'ultimate-multisite')); ?> - logged-in users', 'multisite-ultimate')); ?> + logged-in users', 'ultimate-multisite')); ?> @@ -141,28 +141,28 @@ class="wu-bg-gray-100 wu-px-4 wu-py-3 wu--m-3 wu-mt-3 wu-border-t wu-border-l-0 - + - +
  • - - +
  • - =' + step.id" type="button" class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none hover:wu-shadow-none focus:wu-shadow-none wu-text-gray-600 hover:wu-text-gray-800 wubox wu-p-4 md:wu-p-0 wu-inline-block"> - +
  • @@ -221,11 +221,11 @@ class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none @@ -234,7 +234,7 @@ class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none
    - +
    @@ -244,7 +244,7 @@ class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none
    - +
    @@ -255,7 +255,7 @@ class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none
    @@ -276,7 +276,7 @@ class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none - + @@ -288,27 +288,27 @@ class="wu-uppercase wu-text-2xs wu-font-semibold wu-no-underline wu-outline-none
  • - - + +
  • - +
  • diff --git a/views/base/customers/grid-item.php b/views/base/customers/grid-item.php index c4f4a9d5b..8c1adbc1b 100644 --- a/views/base/customers/grid-item.php +++ b/views/base/customers/grid-item.php @@ -56,12 +56,12 @@ class="wu--mt-8 wu-py-8 wu-bg-gray-100 wu-bg-cover wu-bg-center" get_email_address()); ?> - +
    - is_vip() ? esc_html__('VIP Customer', 'multisite-ultimate') : esc_html__('Regular Customer', 'multisite-ultimate'); ?> + is_vip() ? esc_html__('VIP Customer', 'ultimate-multisite') : esc_html__('Regular Customer', 'ultimate-multisite'); ?>
    @@ -70,32 +70,32 @@ class="wu--mt-8 wu-py-8 wu-bg-gray-100 wu-bg-cover wu-bg-center"
    - + is_online()) { - echo '' . esc_html__('Online', 'multisite-ultimate'); + echo '' . esc_html__('Online', 'ultimate-multisite'); } elseif ( '0000-00-00 00:00:00' !== $item->get_last_login() ) { - echo esc_html(human_time_diff(strtotime($item->get_last_login()), time())) . ' ' . esc_html__('ago', 'multisite-ultimate'); + echo esc_html(human_time_diff(strtotime($item->get_last_login()), time())) . ' ' . esc_html__('ago', 'ultimate-multisite'); } else { - esc_html_e('Never logged in', 'multisite-ultimate'); + esc_html_e('Never logged in', 'ultimate-multisite'); } ?>
    - + - get_date_registered()), time()) . ' ' . __('ago', 'multisite-ultimate')); ?> + get_date_registered()), time()) . ' ' . __('ago', 'ultimate-multisite')); ?>
    - +
    @@ -106,7 +106,7 @@ class="wu--mt-8 wu-py-8 wu-bg-gray-100 wu-bg-cover wu-bg-center" if ( ! empty($item->get_memberships())) { ?> - + - +
    @@ -126,7 +126,7 @@ class="wu--mt-8 wu-py-8 wu-bg-gray-100 wu-bg-cover wu-bg-center" // Concatenate switch to url $is_modal_switch_to = \WP_Ultimo\User_Switching::get_instance()->check_user_switching_is_activated() ? '' : 'wubox'; - echo $item->get_user_id() !== get_current_user_id() ? sprintf('%s', esc_html__('Switch To', 'multisite-ultimate'), esc_attr($is_modal_switch_to), esc_attr(\WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id())), esc_html__('Switch To', 'multisite-ultimate')) : esc_html__('None', 'multisite-ultimate'); + echo $item->get_user_id() !== get_current_user_id() ? sprintf('%s', esc_html__('Switch To', 'ultimate-multisite'), esc_attr($is_modal_switch_to), esc_attr(\WP_Ultimo\User_Switching::get_instance()->render($item->get_user_id())), esc_html__('Switch To', 'ultimate-multisite')) : esc_html__('None', 'ultimate-multisite'); ?>
    @@ -138,11 +138,11 @@ class="wu--mt-8 wu-py-8 wu-bg-gray-100 wu-bg-cover wu-bg-center" - +
    diff --git a/views/base/edit/display-notes.php b/views/base/edit/display-notes.php index 6b39a18a1..d9f2685e5 100644 --- a/views/base/edit/display-notes.php +++ b/views/base/edit/display-notes.php @@ -13,8 +13,8 @@ __('No notes yet.', 'multisite-ultimate'), - 'sub_message' => __('Use the "Add new Note" to create the first one.', 'multisite-ultimate'), + 'message' => __('No notes yet.', 'ultimate-multisite'), + 'sub_message' => __('Use the "Add new Note" to create the first one.', 'ultimate-multisite'), 'link_url' => false, 'display_background_image' => false, ] @@ -79,7 +79,7 @@ + title=""> diff --git a/views/base/edit/editor-customizer.php b/views/base/edit/editor-customizer.php index 3a493d44d..75a9a4fe9 100644 --- a/views/base/edit/editor-customizer.php +++ b/views/base/edit/editor-customizer.php @@ -15,7 +15,7 @@ - + @@ -33,7 +33,7 @@ - + diff --git a/views/base/edit/widget-list-table.php b/views/base/edit/widget-list-table.php index a40df68ad..4a43b5fde 100644 --- a/views/base/edit/widget-list-table.php +++ b/views/base/edit/widget-list-table.php @@ -31,7 +31,7 @@ - + diff --git a/views/base/edit/widget-tabs.php b/views/base/edit/widget-tabs.php index 88fc647cd..7c3bbc405 100644 --- a/views/base/edit/widget-tabs.php +++ b/views/base/edit/widget-tabs.php @@ -35,7 +35,7 @@ class="wu-block md:wu-px-3 wu-w-full md:wu-w-1/4 wu-bg-gray-100 md:wu-border-sol   - + @@ -81,13 +81,13 @@ class="wu-cursor-pointer wu-block md:wu-py-2 md:wu-px-4 wu-p-4 wu-no-underline w - + - + @@ -103,7 +103,7 @@ class="wu-cursor-pointer wu-block md:wu-py-2 md:wu-px-4 wu-p-4 wu-no-underline w - + diff --git a/views/base/filter.php b/views/base/filter.php index b22652ca1..f55afc444 100644 --- a/views/base/filter.php +++ b/views/base/filter.php @@ -49,11 +49,11 @@ class=" - +
    - +
    @@ -112,7 +112,7 @@ class="wu-row wu-flex wu-p-4 wu-mt-0 wu-my-3 wu-bg-gray-100 wu-rounded wu-border class="wu-uppercase wu-font-semibold wu-text-gray-600 wu-text-xs" v-if="index === 0" > - + - - + + @@ -153,24 +153,24 @@ class="wu-uppercase wu-font-semibold wu-text-gray-600 wu-text-xs"
    @@ -180,7 +180,7 @@ class="wu-uppercase wu-font-semibold wu-text-gray-600 wu-text-xs" @@ -195,7 +195,7 @@ class="form-control wu-w-full" class="button" v-show="index > 0" > - + @@ -208,7 +208,7 @@ class="button" class="button button-primary wu-float-right" v-show="index === filters.length - 1" > - + diff --git a/views/base/products/grid-item.php b/views/base/products/grid-item.php index 4c69ed0d2..e3e17efdc 100644 --- a/views/base/products/grid-item.php +++ b/views/base/products/grid-item.php @@ -63,11 +63,11 @@ class="wu-w-full" - + diff --git a/views/base/responsive-table-row.php b/views/base/responsive-table-row.php index f380ac725..1c5c77b4a 100644 --- a/views/base/responsive-table-row.php +++ b/views/base/responsive-table-row.php @@ -129,7 +129,7 @@
    - + diff --git a/views/base/settings.php b/views/base/settings.php index 953816e65..f4939f028 100644 --- a/views/base/settings.php +++ b/views/base/settings.php @@ -55,7 +55,7 @@
    -

    +

    @@ -90,7 +90,7 @@ class="wu-w-full"
  • - +
  • @@ -185,7 +185,7 @@ class="wu-block wu-py-2 wu-px-4 wu-no-underline wu-text-sm wu-rounded
  • - +
  • $section) : ?> diff --git a/views/base/sites/grid-item.php b/views/base/sites/grid-item.php index 4c6da7d29..08815c584 100644 --- a/views/base/sites/grid-item.php +++ b/views/base/sites/grid-item.php @@ -51,22 +51,22 @@ class="wu-w-full wu-h-auto wu-image-preview" -
    - + + - + @@ -76,7 +76,7 @@ class="wu-w-full wu-h-auto wu-image-preview"   - + diff --git a/views/base/wizard/submit-box.php b/views/base/wizard/submit-box.php index fa31aac5e..7552e94da 100644 --- a/views/base/wizard/submit-box.php +++ b/views/base/wizard/submit-box.php @@ -11,13 +11,13 @@
    - + diff --git a/views/broadcast/widget-targets.php b/views/broadcast/widget-targets.php index 1bea71ff0..20198ba4a 100644 --- a/views/broadcast/widget-targets.php +++ b/views/broadcast/widget-targets.php @@ -55,7 +55,7 @@ - + diff --git a/views/checkout/fields/field-password.php b/views/checkout/fields/field-password.php index a916537b1..b4dc1a182 100644 --- a/views/checkout/fields/field-password.php +++ b/views/checkout/fields/field-password.php @@ -33,7 +33,7 @@ meter) : ?> - + diff --git a/views/checkout/partials/pricing-table-list.php b/views/checkout/partials/pricing-table-list.php index a6622da9f..598687d24 100644 --- a/views/checkout/partials/pricing-table-list.php +++ b/views/checkout/partials/pricing-table-list.php @@ -16,7 +16,7 @@
    - +
    @@ -35,7 +35,7 @@
    - +
    diff --git a/views/checkout/paypal/confirm.php b/views/checkout/paypal/confirm.php index 7e5fa0db5..8aaa5faa7 100644 --- a/views/checkout/paypal/confirm.php +++ b/views/checkout/paypal/confirm.php @@ -16,7 +16,7 @@ $date = wp_date(get_option('date_format'), strtotime($membership->get_date_trial_end(), wu_get_current_time('timestamp', true))); // translators: %1$s is the date it will end - $notes[] = sprintf(__('Your trial period will end on %1$s.', 'multisite-ultimate'), $date); + $notes[] = sprintf(__('Your trial period will end on %1$s.', 'ultimate-multisite'), $date); } $original_cart = $payment->get_meta('wu_original_cart'); @@ -37,29 +37,29 @@ $subtotal = wu_format_currency($payment->get_subtotal(), $payment->get_currency()); if ($is_trial_setup) { // translators: %1$s is the start date, %2$s is the subtotal amount, and %3$s is the description of how often. - $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s %3$s.', 'multisite-ultimate'), $date, $subtotal, $desc); + $notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s %3$s.', 'ultimate-multisite'), $date, $subtotal, $desc); } else { $date_renew = wp_date(get_option('date_format'), strtotime($membership->get_date_expiration(), wu_get_current_time('timestamp', true))); // translators: $1$s the date membership will start, $2$s amount to be billed, %3$s the description of how often. - $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'multisite-ultimate'), $date_renew, $subtotal, $desc); + $notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'ultimate-multisite'), $date_renew, $subtotal, $desc); } } elseif ($is_trial_setup) { $initial_amount_format = wu_format_currency($membership->get_initial_amount(), $payment->get_currency()); // translators: %1$s is the membership level, %2$s is the initial amount, and %3$s is the currency description - $notes[] = sprintf(__('After the first payment of %1$s you will be billed %2$s %3$s.', 'multisite-ultimate'), $initial_amount_format, $recurring_total_format, $desc); + $notes[] = sprintf(__('After the first payment of %1$s you will be billed %2$s %3$s.', 'ultimate-multisite'), $initial_amount_format, $recurring_total_format, $desc); } else { // translators: $1$s amount to be billed, $2$s how often - $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'multisite-ultimate'), $recurring_total_format, $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'ultimate-multisite'), $recurring_total_format, $desc); } } else { $recurring_total_format = wu_format_currency($recurring_total, $payment->get_currency()); if ($is_trial_setup) { // translators: $1$s amount to be billed, $2$s how often - $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'multisite-ultimate'), $recurring_total_format, $desc); + $notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'ultimate-multisite'), $recurring_total_format, $desc); } else { // translators: $1$s how often - $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'multisite-ultimate'), $desc); + $notes[] = sprintf(__('After this payment you will be billed %1$s.', 'ultimate-multisite'), $desc); } } } @@ -72,7 +72,7 @@
    -

    +

    @@ -81,8 +81,8 @@

    - -
    + +

    @@ -91,8 +91,8 @@ - - + + @@ -118,7 +118,7 @@ - + @@ -126,14 +126,14 @@ - + - + @@ -164,7 +164,7 @@
    diff --git a/views/checkout/register.php b/views/checkout/register.php index bf80c1a05..1e8238285 100644 --- a/views/checkout/register.php +++ b/views/checkout/register.php @@ -14,7 +14,7 @@ 'product-fields', $product_fields, [ - 'title' => __('Products', 'multisite-ultimate'), + 'title' => __('Products', 'ultimate-multisite'), 'views' => 'checkout/fields', ] ); diff --git a/views/checkout/templates/order-bump/simple.php b/views/checkout/templates/order-bump/simple.php index 9efa01c0d..c7e5025c1 100644 --- a/views/checkout/templates/order-bump/simple.php +++ b/views/checkout/templates/order-bump/simple.php @@ -42,11 +42,11 @@
    - +
    - +
    diff --git a/views/checkout/templates/order-summary/simple.php b/views/checkout/templates/order-summary/simple.php index 1418e16e4..4a95c7f73 100644 --- a/views/checkout/templates/order-summary/simple.php +++ b/views/checkout/templates/order-summary/simple.php @@ -11,7 +11,7 @@
    - +
    @@ -24,31 +24,31 @@ @@ -63,7 +63,7 @@ @@ -73,13 +73,13 @@ @@ -185,7 +185,7 @@ @@ -203,7 +203,7 @@ @@ -227,7 +227,7 @@ - + @@ -248,7 +248,7 @@
  • - +
  • @@ -256,12 +256,12 @@ - + diff --git a/views/checkout/templates/pricing-table/legacy.php b/views/checkout/templates/pricing-table/legacy.php index 0174c6796..a6a518bf1 100644 --- a/views/checkout/templates/pricing-table/legacy.php +++ b/views/checkout/templates/pricing-table/legacy.php @@ -103,7 +103,7 @@ function ($all_have_same_duration, $product) use ($first_recurring_product) {
    - +
    @@ -132,7 +132,7 @@ class="get_id()}"); ?> lift wu-plan p /** * Featured tag. */ - echo esc_html(apply_filters('wu_featured_plan_label', __('Featured Plan', 'multisite-ultimate'), $product)); + echo esc_html(apply_filters('wu_featured_plan_label', __('Featured Plan', 'ultimate-multisite'), $product)); ?> @@ -160,7 +160,7 @@ class="get_id()}"); ?> lift wu-plan p - + @@ -180,7 +180,7 @@ class="get_id()}"); ?> lift wu-plan p - + @@ -258,7 +258,7 @@ class="get_id()}"); ?> lift wu-plan p /** * Period Unit. */ - $symbol = $product->is_recurring() ? __('/mo', 'multisite-ultimate') : ''; + $symbol = $product->is_recurring() ? __('/mo', 'ultimate-multisite') : ''; echo esc_html((! $symbol_left ? wu_get_currency_symbol() : '') . ' ' . $symbol); @@ -306,8 +306,8 @@ class="get_id()}"); ?> lift wu-plan p * Display quarterly and Annually plans, to be hidden. */ $prices_total = [ - 3 => __('every 3 months', 'multisite-ultimate'), - 12 => __('yearly', 'multisite-ultimate'), + 3 => __('every 3 months', 'ultimate-multisite'), + 12 => __('yearly', 'ultimate-multisite'), ]; foreach ($prices_total as $freq => $string) { @@ -317,7 +317,7 @@ class="get_id()}"); ?> lift wu-plan p echo "
  • -
  • "; } else { // translators: %1$s: the price, %2$s: the period. - $text = sprintf(__('%1$s, billed %2$s', 'multisite-ultimate'), wu_format_currency($price_variation['amount']), $string); + $text = sprintf(__('%1$s, billed %2$s', 'ultimate-multisite'), wu_format_currency($price_variation['amount']), $string); $extra_check_for_annual = ''; @@ -347,7 +347,7 @@ class="get_id()}"); ?> lift wu-plan p value="get_id()); ?>" class="button button-primary button-next" > - + diff --git a/views/checkout/templates/steps/clean.php b/views/checkout/templates/steps/clean.php index 2b21f024f..49a85354e 100644 --- a/views/checkout/templates/steps/clean.php +++ b/views/checkout/templates/steps/clean.php @@ -22,7 +22,7 @@ ?> - - - + + @@ -92,7 +92,7 @@ = 0) : ?> - + @@ -109,7 +109,7 @@
    - +
    diff --git a/views/dashboard-statistics/widget-forms.php b/views/dashboard-statistics/widget-forms.php index 2788cb865..279030b55 100644 --- a/views/dashboard-statistics/widget-forms.php +++ b/views/dashboard-statistics/widget-forms.php @@ -16,8 +16,8 @@ $data = []; $slug = 'signup_forms'; $headers = [ - __('Checkout Form', 'multisite-ultimate'), - __('Signups', 'multisite-ultimate'), + __('Checkout Form', 'ultimate-multisite'), + __('Signups', 'ultimate-multisite'), ]; foreach ($forms as $form) { @@ -50,8 +50,8 @@
    - - + + @@ -63,7 +63,7 @@ @@ -81,7 +81,7 @@
    - +
    diff --git a/views/dashboard-statistics/widget-most-visited-sites.php b/views/dashboard-statistics/widget-most-visited-sites.php index cc3fe1cdc..211f4444c 100644 --- a/views/dashboard-statistics/widget-most-visited-sites.php +++ b/views/dashboard-statistics/widget-most-visited-sites.php @@ -17,8 +17,8 @@ $data = []; $slug = 'most_visited_sites'; $headers = [ - __('Site', 'multisite-ultimate'), - __('Visits', 'multisite-ultimate'), + __('Site', 'ultimate-multisite'), + __('Visits', 'ultimate-multisite'), ]; foreach ($sites as $site_visits) { @@ -54,8 +54,8 @@
    - - + + @@ -71,17 +71,17 @@
    - + - + - + - + @@ -89,7 +89,7 @@
    @@ -105,7 +105,7 @@
    - +
    diff --git a/views/dashboard-statistics/widget-mrr-growth.php b/views/dashboard-statistics/widget-mrr-growth.php index f2b676902..b23c49a8b 100644 --- a/views/dashboard-statistics/widget-mrr-growth.php +++ b/views/dashboard-statistics/widget-mrr-growth.php @@ -13,7 +13,7 @@ - + diff --git a/views/dashboard-statistics/widget-new-accounts.php b/views/dashboard-statistics/widget-new-accounts.php index c0b5aad8a..e8fa7ee52 100644 --- a/views/dashboard-statistics/widget-new-accounts.php +++ b/views/dashboard-statistics/widget-new-accounts.php @@ -16,7 +16,7 @@
    - +
    @@ -24,8 +24,8 @@
    get_currency())); ?>
    get_currency())); ?>
    get_total(), $payment->get_currency())); ?>
    - + - + - + - + - + - + - + - + - + @@ -95,7 +95,7 @@ - + @@ -169,7 +169,7 @@ - + - + - +
    |⟶ |⟶
    signup_form); ?> signup_form) : ?> - + count); ?>
    - count, 'multisite-ultimate')), esc_html($site_visits->count)); ?> + count, 'ultimate-multisite')), esc_html($site_visits->count)); ?>
    - - + + @@ -39,7 +39,7 @@ diff --git a/views/dashboard-statistics/widget-revenue.php b/views/dashboard-statistics/widget-revenue.php index 391082272..15110c34a 100644 --- a/views/dashboard-statistics/widget-revenue.php +++ b/views/dashboard-statistics/widget-revenue.php @@ -11,7 +11,7 @@
      -
    • > +
    • >
      @@ -22,7 +22,7 @@
      - +
    • @@ -38,7 +38,7 @@
      - +
      @@ -54,7 +54,7 @@
      - +
      @@ -67,8 +67,8 @@
    - - + + @@ -93,7 +93,7 @@ diff --git a/views/dashboard-statistics/widget-tax-by-code.php b/views/dashboard-statistics/widget-tax-by-code.php index 14da96877..425a4fe6f 100644 --- a/views/dashboard-statistics/widget-tax-by-code.php +++ b/views/dashboard-statistics/widget-tax-by-code.php @@ -16,10 +16,10 @@ $data = []; $slug = 'taxes_by_code'; $headers = [ - __('Tax', 'multisite-ultimate'), - __('Rate', 'multisite-ultimate'), - __('Orders', 'multisite-ultimate'), - __('Tax Total', 'multisite-ultimate'), + __('Tax', 'ultimate-multisite'), + __('Rate', 'ultimate-multisite'), + __('Orders', 'ultimate-multisite'), + __('Tax Total', 'ultimate-multisite'), ]; foreach ($taxes_by_rate as $tax_line) { @@ -47,10 +47,10 @@ - - - - + + + + @@ -73,7 +73,7 @@ diff --git a/views/dashboard-statistics/widget-tax-by-day.php b/views/dashboard-statistics/widget-tax-by-day.php index b93180888..5beae6f27 100644 --- a/views/dashboard-statistics/widget-tax-by-day.php +++ b/views/dashboard-statistics/widget-tax-by-day.php @@ -16,11 +16,11 @@ $data = []; $slug = 'taxes_by_day'; $headers = [ - __('Day', 'multisite-ultimate'), - __('Orders', 'multisite-ultimate'), - __('Total Sales', 'multisite-ultimate'), - __('Tax Total', 'multisite-ultimate'), - __('Net Profit', 'multisite-ultimate'), + __('Day', 'ultimate-multisite'), + __('Orders', 'ultimate-multisite'), + __('Total Sales', 'ultimate-multisite'), + __('Tax Total', 'ultimate-multisite'), + __('Net Profit', 'ultimate-multisite'), ]; foreach ($taxes_by_day as $day => $tax_line) { @@ -49,11 +49,11 @@ - - - - - + + + + + @@ -77,7 +77,7 @@ diff --git a/views/dashboard-statistics/widget-tax-graph.php b/views/dashboard-statistics/widget-tax-graph.php index f2b676902..b23c49a8b 100644 --- a/views/dashboard-statistics/widget-tax-graph.php +++ b/views/dashboard-statistics/widget-tax-graph.php @@ -13,7 +13,7 @@ - + diff --git a/views/dashboard-statistics/widget-taxes.php b/views/dashboard-statistics/widget-taxes.php index f2b676902..b23c49a8b 100644 --- a/views/dashboard-statistics/widget-taxes.php +++ b/views/dashboard-statistics/widget-taxes.php @@ -13,7 +13,7 @@ - + diff --git a/views/dashboard-widgets/account-summary.php b/views/dashboard-widgets/account-summary.php index 41af05161..8c780cda8 100644 --- a/views/dashboard-widgets/account-summary.php +++ b/views/dashboard-widgets/account-summary.php @@ -29,12 +29,12 @@
    - + @@ -62,8 +62,8 @@ class="wu-text-sm wu-no-underline button"
    - - + +
    @@ -78,14 +78,14 @@ class="wu-text-sm wu-no-underline button" - +
    - - + +
    @@ -116,8 +116,8 @@ class="wu-text-sm wu-no-underline button"
    - - + +
    diff --git a/views/dashboard-widgets/activity-stream.php b/views/dashboard-widgets/activity-stream.php index 8fa4c79c4..d486793b7 100644 --- a/views/dashboard-widgets/activity-stream.php +++ b/views/dashboard-widgets/activity-stream.php @@ -13,11 +13,11 @@
    - +
    - +
    @@ -61,7 +61,7 @@ class="wu-absolute wu-rounded-full wu--mb-2 wu--mr-2 wu-flex wu-items-center wu-

    {{ event.object_type }}

    - +

    @@ -71,7 +71,7 @@ class="wu-absolute wu-rounded-full wu--mb-2 wu--mr-2 wu-flex wu-items-center wu- {{ $moment(event.date_created, "YYYYMMDD").fromNow() }} - +

    @@ -95,17 +95,17 @@ class="wu-absolute wu-rounded-full wu--mb-2 wu--mr-2 wu-flex wu-items-center wu- class='wu-feed-pagination wu-m-0 wu-flex wu-justify-between'>
  • - +
  • - ← + ←
  • - +
  • diff --git a/views/dashboard-widgets/billing-info.php b/views/dashboard-widgets/billing-info.php index e57ba7cae..5f9d9a00f 100644 --- a/views/dashboard-widgets/billing-info.php +++ b/views/dashboard-widgets/billing-info.php @@ -31,12 +31,12 @@
    - + @@ -52,7 +52,7 @@ class="wu-text-sm wu-no-underline wubox button"
    - here to add one.', 'multisite-ultimate')), esc_html__('Update Billing Address', 'multisite-ultimate'), esc_url($update_billing_address_link)); ?> + here to add one.', 'ultimate-multisite')), esc_html__('Update Billing Address', 'ultimate-multisite'), esc_url($update_billing_address_link)); ?>
    @@ -102,7 +102,7 @@ class="wu-text-sm wu-no-underline wubox button"

    - +

    @@ -111,12 +111,12 @@ class="wu-text-sm wu-no-underline wubox button"
    - + diff --git a/views/dashboard-widgets/current-membership-product-details.php b/views/dashboard-widgets/current-membership-product-details.php index d525e1d02..f0aa9dcad 100644 --- a/views/dashboard-widgets/current-membership-product-details.php +++ b/views/dashboard-widgets/current-membership-product-details.php @@ -40,7 +40,7 @@ class="wu-h-12 wu-w-12 wu-rounded" - + @@ -50,7 +50,7 @@ class="wu-h-12 wu-w-12 wu-rounded" - + diff --git a/views/dashboard-widgets/current-membership.php b/views/dashboard-widgets/current-membership.php index 293c4a327..1c8e385ee 100644 --- a/views/dashboard-widgets/current-membership.php +++ b/views/dashboard-widgets/current-membership.php @@ -29,12 +29,12 @@
    - + @@ -95,7 +95,7 @@ class="wu-h-8 wu-w-8 wu-rounded"
    - ' . esc_html($pending_change_date) . '', '' . esc_html($pending_change) . ''); ?> + ' . esc_html($pending_change_date) . '', '' . esc_html($pending_change) . ''); ?>
    @@ -118,7 +118,7 @@ class="wu-h-8 wu-w-8 wu-rounded"
    - +
    @@ -136,7 +136,7 @@ class="wu-h-8 wu-w-8 wu-rounded"
    - +
    @@ -150,7 +150,7 @@ class="wu-h-8 wu-w-8 wu-rounded"
    - +
    @@ -166,7 +166,7 @@ class="wu-h-8 wu-w-8 wu-rounded"
    - +
    @@ -228,7 +228,7 @@ class="wu-h-8 wu-w-8 wu-rounded"

    - +

    @@ -270,7 +270,7 @@ class="wu-h-8 wu-w-8 wu-rounded"
    - + is_recurring() && (! $pending_products || wu_get_isset($pending_products, $addon['product']->get_id()))) : ?> - title="get_name())); ?>" + title="get_name())); ?>" href=" - + @@ -331,7 +331,7 @@ class="wubox wu-ml-4 wu-no-underline delete wu-text-red-500 hover:wu-text-red-60
    - +
    @@ -346,7 +346,7 @@ class="wubox wu-ml-4 wu-no-underline delete wu-text-red-500 hover:wu-text-red-60
    - + diff --git a/views/dashboard-widgets/current-site.php b/views/dashboard-widgets/current-site.php index b517d3973..e02751111 100644 --- a/views/dashboard-widgets/current-site.php +++ b/views/dashboard-widgets/current-site.php @@ -19,7 +19,7 @@
    @@ -44,7 +44,7 @@ class="wu-border wu-rounded wu-border-solid wu-flex wu-px-4 - +
    @@ -81,7 +81,7 @@ class="wu-border wu-rounded wu-border-solid wu-flex wu-px-4 " src="get_featured_image()); ?>" - alt="get_title())); ?>" + alt="get_title())); ?>" >
    diff --git a/views/dashboard-widgets/domain-mapping.php b/views/dashboard-widgets/domain-mapping.php index 7d3f5747a..46a2947c1 100644 --- a/views/dashboard-widgets/domain-mapping.php +++ b/views/dashboard-widgets/domain-mapping.php @@ -26,9 +26,9 @@
    - + - + @@ -59,7 +59,7 @@ $label = $item->get_stage_label(); if ( ! $item->is_active()) { - $label = sprintf('%s (%s)', $label, __('Inactive', 'multisite-ultimate')); + $label = sprintf('%s (%s)', $label, __('Inactive', 'ultimate-multisite')); } $class = $item->get_stage_class(); @@ -74,7 +74,7 @@ 'icon' => 'dashicons-wu-edit1 wu-align-middle wu-mr-1', 'label' => '', 'url' => $domain['primary_link'], - 'value' => __('Make Primary', 'multisite-ultimate'), + 'value' => __('Make Primary', 'ultimate-multisite'), ]; } @@ -82,7 +82,7 @@ 'wrapper_classes' => 'wu-text-red-500 wubox', 'icon' => 'dashicons-wu-trash-2 wu-align-middle wu-mr-1', 'label' => '', - 'value' => __('Delete', 'multisite-ultimate'), + 'value' => __('Delete', 'ultimate-multisite'), 'url' => $domain['delete_link'], ]; @@ -98,13 +98,13 @@ 'wrapper_classes' => $item->is_primary_domain() ? 'wu-text-blue-600' : '', 'icon' => $item->is_primary_domain() ? 'dashicons-wu-filter_1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-plus-square wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_primary_domain() ? __('Primary', 'multisite-ultimate') . wu_tooltip(__('All other mapped domains will redirect to the primary domain.', 'multisite-ultimate'), 'dashicons-editor-help wu-align-middle wu-ml-1') : __('Alias', 'multisite-ultimate'), + 'value' => $item->is_primary_domain() ? __('Primary', 'ultimate-multisite') . wu_tooltip(__('All other mapped domains will redirect to the primary domain.', 'ultimate-multisite'), 'dashicons-editor-help wu-align-middle wu-ml-1') : __('Alias', 'ultimate-multisite'), ], 'secure' => [ 'wrapper_classes' => $item->is_secure() ? 'wu-text-green-500' : '', 'icon' => $item->is_secure() ? 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1' : 'dashicons-wu-lock1 wu-align-text-bottom wu-mr-1', 'label' => '', - 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'multisite-ultimate') : __('Not Secure (HTTP)', 'multisite-ultimate'), + 'value' => $item->is_secure() ? __('Secure (HTTPS)', 'ultimate-multisite') : __('Not Secure (HTTP)', 'ultimate-multisite'), ], ], $second_row_actions @@ -121,7 +121,7 @@
    - +
    diff --git a/views/dashboard-widgets/first-steps.php b/views/dashboard-widgets/first-steps.php index 35a32e41e..273f22285 100644 --- a/views/dashboard-widgets/first-steps.php +++ b/views/dashboard-widgets/first-steps.php @@ -14,11 +14,11 @@
    - + - +
    @@ -26,7 +26,7 @@
    - +
    @@ -94,7 +94,7 @@ class="sm:wu-flex wu-py-2 wu-px-4 wu-content-center wu-items-center wu-m-0 wu-bo class="button wu-text-center hide-postbox-tog" id="wp-ultimo-setup-hide" > - +
    diff --git a/views/dashboard-widgets/invoices.php b/views/dashboard-widgets/invoices.php index 2d0655f17..a4d7c83b9 100644 --- a/views/dashboard-widgets/invoices.php +++ b/views/dashboard-widgets/invoices.php @@ -49,15 +49,15 @@ ', $payment->get_invoice_url(), - esc_html__('Download Invoice', 'multisite-ultimate') + esc_html__('Download Invoice', 'ultimate-multisite') ); $payment_column = $payment->get_status() === 'pending' ? [ 'pay_now' => [ 'url' => add_query_arg(['payment' => $payment->get_hash()], wu_get_registration_url()), 'icon' => 'dashicons-wu-credit-card wu-align-middle wu-mr-1', - 'label' => esc_html__('Go to payment', 'multisite-ultimate'), - 'value' => esc_html__('Pay Now', 'multisite-ultimate'), + 'label' => esc_html__('Go to payment', 'ultimate-multisite'), + 'value' => esc_html__('Pay Now', 'ultimate-multisite'), ], ] : []; diff --git a/views/dashboard-widgets/limits-and-quotas.php b/views/dashboard-widgets/limits-and-quotas.php index ecd2aaab1..00b8e9f69 100644 --- a/views/dashboard-widgets/limits-and-quotas.php +++ b/views/dashboard-widgets/limits-and-quotas.php @@ -76,7 +76,7 @@ / - {$post_type_slug}->number) ? esc_html__('Unlimited', 'multisite-ultimate') : esc_html($post_type_limits->{$post_type_slug}->number); ?> + {$post_type_slug}->number) ? esc_html__('Unlimited', 'ultimate-multisite') : esc_html($post_type_limits->{$post_type_slug}->number); ?>
    @@ -115,9 +115,9 @@
    - + - +
    @@ -131,7 +131,7 @@ / - get_limit() == 0 ? esc_html__('Unlimited', 'multisite-ultimate') : esc_html(number_format((int) $visit_limitations->get_limit())); ?> + get_limit() == 0 ? esc_html__('Unlimited', 'ultimate-multisite') : esc_html(number_format((int) $visit_limitations->get_limit())); ?>
    diff --git a/views/dashboard-widgets/login-form.php b/views/dashboard-widgets/login-form.php index 0be554134..6ea54de2c 100644 --- a/views/dashboard-widgets/login-form.php +++ b/views/dashboard-widgets/login-form.php @@ -18,7 +18,7 @@ Log in using your account.', 'multisite-ultimate')), esc_html(wp_get_current_user()->display_name), esc_url($login_url)); + printf(wp_kses_post(__('Not %1$s? Log in using your account.', 'ultimate-multisite')), esc_html(wp_get_current_user()->display_name), esc_url($login_url)); ?> @@ -46,12 +46,12 @@
    - + diff --git a/views/dashboard-widgets/my-sites.php b/views/dashboard-widgets/my-sites.php index adb80d344..b5628dcac 100644 --- a/views/dashboard-widgets/my-sites.php +++ b/views/dashboard-widgets/my-sites.php @@ -53,7 +53,7 @@ class="wu-shadow-sm wu-inline-flex wu-items-center wu-px-2 wu-py-1 wu-rounded wu - + @@ -70,7 +70,7 @@ class="wu-shadow-sm wu-inline-flex wu-items-center wu-px-2 wu-py-1 wu-rounded wu - + @@ -89,7 +89,7 @@ class="wu-shadow-sm wu-inline-flex wu-items-center wu-px-2 wu-py-1 wu-rounded wu class="wu-h-48 wu-w-full wu-object-cover wu-block" src="get_featured_image()); ?>" - alt="get_title())); ?>" + alt="get_title())); ?>" style="background-color: rgba(255, 255, 255, 0.5)" > @@ -108,7 +108,7 @@ class="wu-h-48 wu-w-full wu-object-cover wu-block" get_id()) : ?> - > + > get_title()); ?> @@ -141,7 +141,7 @@ class="wu-p-0 wu-m-0 wu-px-4 wu-text-center wu-py-2 wu-my-0 wu-bg-gray-100 wu-bo
  • - +
  • @@ -150,7 +150,7 @@ class="wu-w-full wu-no-underline
    - + @@ -172,7 +172,7 @@ class="wu-no-underline wu-text-gray-600 wu-flex wu-flex-col wu-rounded-lg wu-bor - + diff --git a/views/dashboard-widgets/site-actions.php b/views/dashboard-widgets/site-actions.php index d30351608..346d1957a 100644 --- a/views/dashboard-widgets/site-actions.php +++ b/views/dashboard-widgets/site-actions.php @@ -17,7 +17,7 @@

    - +

    @@ -62,7 +62,7 @@ class="

    - +

    diff --git a/views/dashboard-widgets/summary.php b/views/dashboard-widgets/summary.php index e50355001..5b6df5570 100644 --- a/views/dashboard-widgets/summary.php +++ b/views/dashboard-widgets/summary.php @@ -21,12 +21,12 @@
    - +
    -
  • > +
  • >
    @@ -37,7 +37,7 @@
    - +
  • @@ -53,7 +53,7 @@
    - +
    diff --git a/views/dashboard-widgets/thank-you.php b/views/dashboard-widgets/thank-you.php index 8fb8b2d91..47fb4226f 100644 --- a/views/dashboard-widgets/thank-you.php +++ b/views/dashboard-widgets/thank-you.php @@ -46,7 +46,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -88,7 +88,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -160,7 +160,7 @@ - + @@ -178,7 +178,7 @@ - + @@ -196,7 +196,7 @@ - + @@ -228,7 +228,7 @@

    - +

    @@ -278,7 +278,7 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded" - + @@ -303,23 +303,23 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded" - +
    - +
    - + - + @@ -358,7 +358,7 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded"

    - +

    @@ -375,8 +375,8 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded"
    - - + + @@ -405,7 +405,7 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded" - + @@ -413,7 +413,7 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded" - + @@ -422,13 +422,13 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded" get_discount_total()) : ?> - + - + @@ -452,7 +452,7 @@ class="sm:wu-w-12 sm:wu-h-12 wu-mb-4 sm:wu-mb-0 wu-rounded"

    - +

    diff --git a/views/domain/dns-table.php b/views/domain/dns-table.php index 5d424cda3..bfbf76fc0 100644 --- a/views/domain/dns-table.php +++ b/views/domain/dns-table.php @@ -12,10 +12,10 @@ - - - - + + + + @@ -25,7 +25,7 @@ @@ -71,7 +71,7 @@ - + diff --git a/views/domain/log.php b/views/domain/log.php index 779016b00..9c28fd31c 100644 --- a/views/domain/log.php +++ b/views/domain/log.php @@ -9,7 +9,7 @@
    -	
    +	
     	
    @@ -17,7 +17,7 @@
    diff --git a/views/email/widget-placeholders.php b/views/email/widget-placeholders.php index 56e0688df..e1e722508 100644 --- a/views/email/widget-placeholders.php +++ b/views/email/widget-placeholders.php @@ -14,7 +14,7 @@
    - +
    @@ -26,9 +26,9 @@ - + - + @@ -46,7 +46,7 @@ @@ -160,13 +160,13 @@ @@ -174,7 +174,7 @@ diff --git a/views/legacy/signup/pricing-table/frequency-selector.php b/views/legacy/signup/pricing-table/frequency-selector.php index c27f2f090..1bd631841 100644 --- a/views/legacy/signup/pricing-table/frequency-selector.php +++ b/views/legacy/signup/pricing-table/frequency-selector.php @@ -28,9 +28,9 @@ __('Monthly', 'multisite-ultimate'), - 3 => __('Quarterly', 'multisite-ultimate'), - 12 => __('Yearly', 'multisite-ultimate'), + 1 => __('Monthly', 'ultimate-multisite'), + 3 => __('Quarterly', 'ultimate-multisite'), + 12 => __('Yearly', 'ultimate-multisite'), ]; $first = true; diff --git a/views/legacy/signup/pricing-table/no-plans.php b/views/legacy/signup/pricing-table/no-plans.php index 84d3d167b..7bc1b4773 100644 --- a/views/legacy/signup/pricing-table/no-plans.php +++ b/views/legacy/signup/pricing-table/no-plans.php @@ -22,5 +22,5 @@ ?>
    -


    +


    diff --git a/views/legacy/signup/pricing-table/plan.php b/views/legacy/signup/pricing-table/plan.php index c61ad543f..aa8b4e01a 100644 --- a/views/legacy/signup/pricing-table/plan.php +++ b/views/legacy/signup/pricing-table/plan.php @@ -26,7 +26,7 @@ free ? __('Free!', 'multisite-ultimate') : str_replace(wu_get_currency_symbol(), '', wu_format_currency((((float) $plan->{'price_' . $type}) / $type))); + $price = $plan->free ? __('Free!', 'ultimate-multisite') : str_replace(wu_get_currency_symbol(), '', wu_format_currency((((float) $plan->{'price_' . $type}) / $type))); printf(" data-price-%s='%s'", esc_attr($type), esc_attr($price)); } @@ -35,7 +35,7 @@ class="get_id()}"); ?> lift wu-plan plan is_featured_plan()) : ?> -
    +
    @@ -45,13 +45,13 @@ class="get_id()}"); ?> lift wu-plan plan is_free()) : ?>
    - +
    is_contact_us()) : ?>
    - +
    @@ -63,7 +63,7 @@ class="get_id()}"); ?> lift wu-plan plan ?> price_1))); ?> - + @@ -81,13 +81,13 @@ class="get_id()}"); ?> lift wu-plan plan * Display quarterly and Annually plans, to be hidden */ $prices_total = [ - 3 => __('every 3 months', 'multisite-ultimate'), - 12 => __('yearly', 'multisite-ultimate'), + 3 => __('every 3 months', 'ultimate-multisite'), + 12 => __('yearly', 'ultimate-multisite'), ]; foreach ($prices_total as $freq => $string) { // translators: %1$s: the price, %2$s: the period. - $text = sprintf(__('%1$s, billed %2$s', 'multisite-ultimate'), wu_format_currency($plan->{"price_$freq"}), $string); + $text = sprintf(__('%1$s, billed %2$s', 'ultimate-multisite'), wu_format_currency($plan->{"price_$freq"}), $string); if ($plan->free || $plan->is_contact_us()) { echo "
  • -
  • "; @@ -108,7 +108,7 @@ class="get_id()}"); ?> lift wu-plan plan get_id() == $current_plan->id ? __('This is your current plan', 'multisite-ultimate') : __('Select Plan', 'multisite-ultimate'); + $button_label = null != $current_plan && $plan->get_id() == $current_plan->id ? __('This is your current plan', 'ultimate-multisite') : __('Select Plan', 'ultimate-multisite'); $button_label = apply_filters('wu_plan_select_button_label', $button_label, $plan, $current_plan); ?> diff --git a/views/legacy/signup/signup-main.php b/views/legacy/signup/signup-main.php index 2b97c7d49..1ab04a2af 100644 --- a/views/legacy/signup/signup-main.php +++ b/views/legacy/signup/signup-main.php @@ -61,7 +61,7 @@ <?php // translators: %s title of the current site ?> - <?php echo esc_html(apply_filters('wu_signup_page_title', sprintf(__('%s - Signup', 'multisite-ultimate'), get_bloginfo('Name'), get_bloginfo('Name')))); ?> + <?php echo esc_html(apply_filters('wu_signup_page_title', sprintf(__('%s - Signup', 'ultimate-multisite'), get_bloginfo('Name'), get_bloginfo('Name')))); ?> @@ -99,7 +99,7 @@

    - +

    diff --git a/views/legacy/signup/signup-nav-links.php b/views/legacy/signup/signup-nav-links.php index cba692e80..2b23e788c 100644 --- a/views/legacy/signup/signup-nav-links.php +++ b/views/legacy/signup/signup-nav-links.php @@ -31,8 +31,8 @@ $nav_links = apply_filters( 'wu_signup_form_nav_links', [ - home_url() => __('Return to Home', 'multisite-ultimate'), - wp_login_url() => sprintf('%s', esc_html__('Log In', 'multisite-ultimate')), + home_url() => __('Return to Home', 'ultimate-multisite'), + wp_login_url() => sprintf('%s', esc_html__('Log In', 'ultimate-multisite')), ] ); diff --git a/views/legacy/signup/signup-steps-navigation.php b/views/legacy/signup/signup-steps-navigation.php index 3220512b2..09afbb9e0 100644 --- a/views/legacy/signup/signup-steps-navigation.php +++ b/views/legacy/signup/signup-steps-navigation.php @@ -72,7 +72,7 @@ diff --git a/views/legacy/signup/steps/step-domain-url-preview.php b/views/legacy/signup/steps/step-domain-url-preview.php index 23405a70e..60f32c42d 100644 --- a/views/legacy/signup/steps/step-domain-url-preview.php +++ b/views/legacy/signup/steps/step-domain-url-preview.php @@ -23,14 +23,14 @@
    -
    +
    results['blogname'] ?? __('yoursite', 'multisite-ultimate'); + $dynamic_part = $signup->results['blogname'] ?? __('yoursite', 'ultimate-multisite'); $site_url = preg_replace('#^https?://#', '', WU_Signup()->get_site_url_for_previewer()); $site_url = str_replace('www.', '', $site_url); diff --git a/views/limitations/plugin-selector.php b/views/limitations/plugin-selector.php index c1a6443c2..46ebcd3d8 100644 --- a/views/limitations/plugin-selector.php +++ b/views/limitations/plugin-selector.php @@ -26,7 +26,7 @@ - + @@ -45,12 +45,12 @@ - + - +
    @@ -61,27 +61,27 @@

    - +

    - +

    @@ -93,7 +93,7 @@ model && $object->get_limitations(false)->plugins->exists($plugin_path)) : ?>

    - +

    diff --git a/views/limitations/site-template-selector.php b/views/limitations/site-template-selector.php index 2ed122724..703da4beb 100644 --- a/views/limitations/site-template-selector.php +++ b/views/limitations/site-template-selector.php @@ -43,7 +43,7 @@ - get_categories() ? esc_html__('No categories', 'multisite-ultimate') : esc_html(implode(', ', $site_template->get_categories())); ?> + get_categories() ? esc_html__('No categories', 'ultimate-multisite') : esc_html(implode(', ', $site_template->get_categories())); ?> @@ -53,7 +53,7 @@

    - +

    @@ -62,9 +62,9 @@ name="modules[site_templates][limit][get_id()); ?>][behavior]" class="wu-w-full" > - - - + + + diff --git a/views/limitations/theme-selector.php b/views/limitations/theme-selector.php index 0daf446dd..c93a83e1f 100644 --- a/views/limitations/theme-selector.php +++ b/views/limitations/theme-selector.php @@ -45,12 +45,12 @@ - + - + @@ -62,24 +62,24 @@

    - +

    - +

    @@ -89,7 +89,7 @@ model && $object->get_limitations(false)->themes->exists($theme_path)) : ?>

    - +

    diff --git a/views/memberships/product-list.php b/views/memberships/product-list.php index a1595ec4a..7f184938a 100644 --- a/views/memberships/product-list.php +++ b/views/memberships/product-list.php @@ -14,11 +14,11 @@ - + diff --git a/views/payments/line-item-actions.php b/views/payments/line-item-actions.php index 7c6065828..bf54b9d83 100644 --- a/views/payments/line-item-actions.php +++ b/views/payments/line-item-actions.php @@ -42,7 +42,7 @@ - + @@ -58,7 +58,7 @@ - + diff --git a/views/payments/tax-details.php b/views/payments/tax-details.php index b8f305cbe..00fd1f94d 100644 --- a/views/payments/tax-details.php +++ b/views/payments/tax-details.php @@ -22,7 +22,7 @@ - + @@ -31,7 +31,7 @@ diff --git a/views/settings/fields/field-image.php b/views/settings/fields/field-image.php index b853bf891..6f1af266b 100644 --- a/views/settings/fields/field-image.php +++ b/views/settings/fields/field-image.php @@ -44,7 +44,7 @@ - + diff --git a/views/settings/fields/field-multi_checkbox.php b/views/settings/fields/field-multi_checkbox.php index 260de1e8c..8e1db2167 100644 --- a/views/settings/fields/field-multi_checkbox.php +++ b/views/settings/fields/field-multi_checkbox.php @@ -58,7 +58,7 @@
    diff --git a/views/shortcodes/shortcodes.php b/views/shortcodes/shortcodes.php index 4243d3bbb..2385e14d4 100644 --- a/views/shortcodes/shortcodes.php +++ b/views/shortcodes/shortcodes.php @@ -9,7 +9,7 @@
    -

    +

    @@ -25,10 +25,10 @@ - +

    @@ -44,16 +44,16 @@ class="wu-float-right wubox wu-no-underline wu-text-gray-600"

    - +
    - +
    - +
    - +
    get_subtotal(), $payment->get_currency())); ?>
    get_currency())); ?>
    get_discount_code())); ?>get_discount_code())); ?> get_discount_total(), $payment->get_currency())); ?>
    get_total(), $payment->get_currency())); ?>
    - +
    {{ results.network_ip }}
    - class="wu-no-underline wp-ui-text-highlight wu-copy" href="#" data-clipboard-action="copy" :data-clipboard-target="'#payload_event_placeholder_' + placeholder.placeholder"> + class="wu-no-underline wp-ui-text-highlight wu-copy" href="#" data-clipboard-action="copy" :data-clipboard-target="'#payload_event_placeholder_' + placeholder.placeholder"> diff --git a/views/emails/admin/domain-created.php b/views/emails/admin/domain-created.php index 76964d1f2..91deccc47 100644 --- a/views/emails/admin/domain-created.php +++ b/views/emails/admin/domain-created.php @@ -6,132 +6,132 @@ */ defined( 'ABSPATH' ) || exit; ?> -

    +

    -

    +

    -

    +

    - + - + - + - + - + - + - +
    {{domain_domain}}
    {{domain_id}}
    {{domain_stage}}
    {{domain_active}}
    {{domain_primary}}
    {{domain_secure}}
    - +
    -

    +

    - + - + - + - + - +
    {{site_title}}
    {{site_id}}
    - +
    - +
    - +
    -

    +

    - + - + - + - + - + - + diff --git a/views/emails/admin/payment-received.php b/views/emails/admin/payment-received.php index ab1c57c5d..7163e6908 100644 --- a/views/emails/admin/payment-received.php +++ b/views/emails/admin/payment-received.php @@ -6,153 +6,153 @@ */ defined( 'ABSPATH' ) || exit; ?> -

    +

    -

    +

    -

    +

    -

    +

    {{membership_description}}
    {{membership_initial_amount}}
    {{membership_id}}
    {{membership_reference_code}}
    {{membership_date_expiration}}
    - +
    - + - + - + - + - + - + - + - + - + - + - +
    {{payment_product_names}}
    {{payment_subtotal}}
    {{payment_tax_total}}
    {{payment_total}}
    {{payment_gateway}}
    {{payment_id}}
    {{payment_reference_code}}
    {{payment_date_created}}
    - +
    Initial Payment
    - +
    -

    +

    - + - + - + - + - + - +
    {{membership_description}}
    {{membership_initial_amount}}
    {{membership_id}}
    {{membership_reference_code}}
    {{membership_date_expiration}}
    - +
    -

    +

    - + - + - + - + - + diff --git a/views/emails/admin/site-published.php b/views/emails/admin/site-published.php index 43f86b39e..d56578717 100644 --- a/views/emails/admin/site-published.php +++ b/views/emails/admin/site-published.php @@ -6,119 +6,119 @@ */ defined( 'ABSPATH' ) || exit; ?> -

    +

    -

    %1$s (%2$s), was created successfully on your network!', 'multisite-ultimate'), '{{site_title}}', '{{site_url}}'), 'pre_user_description'); ?>

    +

    %1$s (%2$s), was created successfully on your network!', 'ultimate-multisite'), '{{site_title}}', '{{site_url}}'), 'pre_user_description'); ?>

    -

    +

    {{customer_avatar}}
    {{customer_name}}
    {{customer_user_email}}
    {{customer_id}}
    {{customer_billing_address}}
    - +
    - + - + - + - + - +
    {{site_title}}
    {{site_id}}
    - +
    - +
    - +
    -

    +

    - + - + - + - + - + - +
    {{membership_description}}
    {{membership_initial_amount}}
    {{membership_id}}
    {{membership_reference_code}}
    {{membership_date_expiration}}
    - +
    -

    +

    - + - + - + - + - + diff --git a/views/emails/customer/confirm-email-address.php b/views/emails/customer/confirm-email-address.php index 94e67a261..25f539f85 100644 --- a/views/emails/customer/confirm-email-address.php +++ b/views/emails/customer/confirm-email-address.php @@ -7,15 +7,15 @@ defined( 'ABSPATH' ) || exit; ?> -

    +

    -

    +

    -

    +

    - +
    - {{verification_link}}'), ''); ?> + {{verification_link}}'), ''); ?>

    diff --git a/views/emails/customer/payment-received.php b/views/emails/customer/payment-received.php index 2c0d3ba98..7e60f6c41 100644 --- a/views/emails/customer/payment-received.php +++ b/views/emails/customer/payment-received.php @@ -7,54 +7,54 @@ defined( 'ABSPATH' ) || exit; ?> -

    +

    -

    +

    -

    +

    -

    +

    {{customer_avatar}}
    {{customer_name}}
    {{customer_user_email}}
    {{customer_id}}
    {{customer_billing_address}}
    - +
    - + - + - + - + - + - + - + diff --git a/views/emails/customer/renewal-payment-created.php b/views/emails/customer/renewal-payment-created.php index 42caf0e1c..232a1a566 100644 --- a/views/emails/customer/renewal-payment-created.php +++ b/views/emails/customer/renewal-payment-created.php @@ -7,42 +7,42 @@ defined( 'ABSPATH' ) || exit; ?> -

    +

    -

    +

    -

    +

    -

    +

    {{payment_product_names}}
    {{payment_subtotal}}
    {{payment_tax_total}}
    {{payment_total}}
    {{payment_date_created}}
    - +
    Initial Payment
    - + - + - + - + - + diff --git a/views/emails/customer/site-published.php b/views/emails/customer/site-published.php index c7cd22b69..ced81fd77 100644 --- a/views/emails/customer/site-published.php +++ b/views/emails/customer/site-published.php @@ -7,30 +7,30 @@ defined( 'ABSPATH' ) || exit; ?> -

    +

    -

    %1$s (%2$s) was created successfully and is ready!', 'multisite-ultimate'), '{{site_title}}', '{{site_url}}'), 'pre_user_description'); ?>

    +

    %1$s (%2$s) was created successfully and is ready!', 'ultimate-multisite'), '{{site_title}}', '{{site_url}}'), 'pre_user_description'); ?>

    -

    +

    {{payment_product_names}}
    {{payment_subtotal}}
    {{payment_tax_total}}
    {{payment_total}}
    {{payment_date_created}}
    - + - + - + diff --git a/views/events/widget-initiator.php b/views/events/widget-initiator.php index 82dde0778..34f83f0a4 100644 --- a/views/events/widget-initiator.php +++ b/views/events/widget-initiator.php @@ -12,7 +12,7 @@
  • -

    +

    get_initiator() == 'manual') : ?> @@ -73,7 +73,7 @@ get_initiator())); ?> - + @@ -87,7 +87,7 @@
  • -

    get_object_type()))); ?>

    +

    get_object_type()))); ?>

    -

    +

    get_message(), wu_kses_allowed_html()); ?> diff --git a/views/events/widget-payload.php b/views/events/widget-payload.php index 62b5d1789..b6c00aebd 100644 --- a/views/events/widget-payload.php +++ b/views/events/widget-payload.php @@ -32,7 +32,7 @@ diff --git a/views/invoice/template.php b/views/invoice/template.php index 0923dc017..871d47ef4 100644 --- a/views/invoice/template.php +++ b/views/invoice/template.php @@ -39,13 +39,13 @@
  • {{site_title}}
    - +
    - +
    -
    +
    get_invoice_number()); ?>
    - get_date_created())))); ?>
    + get_date_created())))); ?>
    -
    +
    @@ -81,7 +81,7 @@
    - +
    - + - + - + - + - +
    - * + * - get_total(), $payment->get_currency()))); ?> + get_total(), $payment->get_currency()))); ?>
    - +
    get_tax_total())); ?>
    - +
    $value) { ?> diff --git a/views/sites/edit-placeholders.php b/views/sites/edit-placeholders.php index ff2ee2cb9..589210d6b 100644 --- a/views/sites/edit-placeholders.php +++ b/views/sites/edit-placeholders.php @@ -10,7 +10,7 @@

    - +

    @@ -28,7 +28,7 @@ - {{data.placeholders.length}} + {{data.placeholders.length}} @@ -46,7 +46,7 @@ diff --git a/views/system-info/system-info.php b/views/system-info/system-info.php index d7135bebf..4729a160e 100644 --- a/views/system-info/system-info.php +++ b/views/system-info/system-info.php @@ -11,7 +11,7 @@
    -

    +

    - + - + - + - +
    - + @@ -88,7 +88,7 @@
    - +
    @@ -102,7 +102,7 @@ @@ -174,7 +174,7 @@ class="wu-bg-transparent wu-p-4 wu-border-none wu-w-full hover:wu-bg-gray-200 ho @@ -206,13 +206,13 @@ class="wu-bg-transparent wu-p-4 wu-border-none wu-w-full hover:wu-bg-gray-200 ho @@ -238,11 +238,11 @@ class="wu-bg-transparent wu-p-4 wu-border-none wu-w-full hover:wu-bg-gray-200 ho - + - + - + diff --git a/views/system-info/system-info-table.php b/views/system-info/system-info-table.php index 5355ccb62..385f1c86c 100644 --- a/views/system-info/system-info-table.php +++ b/views/system-info/system-info-table.php @@ -13,7 +13,7 @@
    - +