Skip to content

Instantly share code, notes, and snippets.

@Soean
Soean / list_pages.php
Created July 29, 2021 08:35
List all pages of Multisite
<?php
add_action(
'cli_init',
function () {
\WP_CLI::add_command( 'list_pages', function () {
$sites = get_sites();
@Soean
Soean / block.js
Created March 7, 2019 13:48
Nordic block
/**
* BLOCK: nordic-block
*
* Registering a basic block with Gutenberg.
* Simple block, renders and saves the same content without any interactivity.
*/
// Import CSS.
import './style.scss';
import './editor.scss';