This file contains 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
#!/usr/bin/env bash | |
# Exit if WP-CLI is not available. | |
if ! command -v wp &> /dev/null | |
then | |
echo "This script requires WP-CLI" | |
exit | |
fi | |
# Install WordPress plugins. |
This file contains 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
import React from 'react'; | |
import { FaustHooks, FaustPlugin } from '@faustwp/core'; | |
import { FaustToolbarNodes, ToolbarNodeSkeleton } from '@faustwp/core/toolbar'; | |
export class CustomToolbar implements FaustPlugin { | |
apply(hooks: FaustHooks) { | |
hooks.addFilter('toolbarNodes', 'faust', (toolbarNodes: FaustToolbarNodes) => { | |
const customToolbarNodes: FaustToolbarNodes = [ | |
{ |
This file contains 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
<iframe id="wp-playground" style="width: 100%; height: 100%" frameBorder="0"></iframe> | |
<script type="module"> | |
import { | |
startPlaygroundWeb | |
} from 'https://unpkg.com/@wp-playground/client/index.js'; | |
const client = await startPlaygroundWeb({ | |
iframe: document.getElementById('wp-playground'), | |
remoteUrl: `https://playground.wordpress.net/remote.html`, | |
blueprint: { | |
landingPage: '/wp-admin/options-general.php?page=faustwp-settings', |
OlderNewer