WordPress Multisite migration: staging.mysite.com -> mysite.com Uses WP-CLI only. Run this on the STAGING server, in the WP root or set WP_PATH.
chmod +x wp-migrate.sh
| name: Require Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, review_requested] | |
| pull_request_review: | |
| types: [submitted, dismissed] | |
| jobs: | |
| check-approval: | |
| runs-on: ubuntu-latest |
A lightweight, zero-dependency shell script that spins up a local PHP development server using the built-in php -S command.
| <?php | |
| /** | |
| * WPBakery Visual Composer Fresh Copy Downloader | |
| * Uses the plugin's own update mechanism to download a clean copy | |
| * Place this in your WordPress root directory and run via browser | |
| */ | |
| // Require WordPress | |
| require_once('wp-config.php'); | |
| require_once('wp-load.php'); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Pizza Dough Calculator</title> | |
| <script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> | |
| <!-- Print-only styles --> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>API Request Builder</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.13.5/cdn.min.js" defer></script> | |
| <script src="https://unpkg.com/@tailwindcss/browser@4"></script> | |
| </head> | |
| <body class="bg-gray-100 min-h-screen p-4"> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>JSON Path Explorer</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.13.5/cdn.min.js" defer></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script> | |
| <script src="https://unpkg.com/@tailwindcss/browser@4"></script> | |
| </head> |
| // Save this as a bookmark in your browser for the next time you want to fill in the page form! | |
| javascript:(function() { | |
| const fillValues = { | |
| // Paste the object in here from the previous command | |
| } | |
| function fillField(element, value) { | |
| if (!element) return; | |
| // Handle different input types |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\File; | |
| use Illuminate\Support\Str; | |
| use ReflectionClass; | |
| use ReflectionMethod; | |
| use Symfony\Component\Finder\Finder; |
| function customConsoleTable(data) { | |
| // Handle GroupBy results by flattening them appropriately | |
| function flattenGroupBy(groupedData) { | |
| if (!groupedData || typeof groupedData !== 'object') return groupedData; | |
| // Check if this looks like a GroupBy result | |
| const isGroupByResult = Object.values(groupedData).every(Array.isArray); | |
| if (!isGroupByResult) return groupedData; | |
| // Flatten the grouped structure |