If you are using the WordPress MU Domain Mapping plugin to map domains on your WordPress Multisite, the preview feature in the WordPress Customizer will not function. To resolve this issue, save enable-customizer-preview-mapped-domain.php, as must-use plugin, in wp-content/mu-plugins
.
This is not a complete plugin, but a how-to. Want more, take a look at my WP Loop plugin. Search is in class-wp-loupe-search.php
Sample below:
- expects that you've created your own
search()
function, which returns an array with post id. (eg.: Eg.:[ [ 'id' => 1 ], [ 'id' => 2 ] ]
) - includes pagination
- tested (using WP Loop plugin) with Twenty Twenty-Four and Twenty Twenty-Five
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Creates a multipart/form-data body for an image and form fields. | |
* | |
* @param string $file_path The path to the file. | |
* @param string $filename The base filename, if different from the file path. | |
* @param array $fields The form fields. | |
* @return array The boundary ID and the body. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
buggregator: | |
image: ghcr.io/buggregator/server:latest | |
depends_on: | |
buggregator-database: | |
condition: service_healthy | |
ports: | |
- 127.0.0.1:8000:8000 # Sentry, Ray | |
- 127.0.0.1:1025:1025 # SMTP | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Based on https://github.com/enkia/tokyo-night-vscode-theme | |
#24283B,#FFC806,#565F89,#C0CAF5,#565F89,#C0CAF5,#9ECE6A,#F7768E,#24283B,#A9B1D6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WordPress dependencies | |
*/ | |
import { createPortal, useEffect, useState } from '@wordpress/element'; | |
import { registerPlugin } from '@wordpress/plugins'; | |
import { Button } from '@wordpress/components'; | |
function MyToolbarButton() { | |
// Lazy and one time initializations, also gives us a stable reference. | |
const [ container ] = useState( () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Place this file in the wp-content/mu-plugins directory and run ngrok with | |
* `ngrok http http://<local_url> --host-header=<local_url>` | |
*/ | |
$ngrok_url = '<id>.ngrok.io'; | |
define( 'WP_HOME', 'http://' . $ngrok_url ); | |
define( 'WP_SITEURL', 'http://' . $ngrok_url ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
# MIT license, do whatever you want with it | |
# | |
# This is my invoice.php page which I use to make invoices that customers want, | |
# with their address on it and which are easily printable. I love Stripe but | |
# their invoices and receipts were too wild for my customers on Remote OK | |
# | |
require_once(__DIR__.'/../vendor/autoload.php'); |
NewerOlder