Skip to content

Instantly share code, notes, and snippets.

View annezazu's full-sized avatar

annezazu

View GitHub Profile
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@annezazu
annezazu / test-site-export.xml
Created May 26, 2026 18:47
Underway + dashboard-design test data
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@annezazu
annezazu / blueprint-2025-11-14T22_39_10.753Z.json
Created November 14, 2025 22:42
blueprint test gist for GB
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "url",
"url": "https://block-museum.com/wp-content/uploads/2025/11/gutenberg-80.zip"
}
},
@annezazu
annezazu / gist:c0eddffe03dcb3fd1bfca1725c2e3ee3
Created September 24, 2024 19:04
playground with classic theme, 10 posts, and 3 pages
{
"landingPage": "/wp-admin/",
"preferredVersions": {
"php": "7.4",
"wp": "6.6.2"
},
"phpExtensionBundles": [
"kitchen-sink"
],
"features": {
@annezazu
annezazu / gist:47f3c9868e8e5e9fd1c3c39565fc9b26
Last active September 24, 2024 19:03
playground with block theme, 10 posts, and 3 pages
{
"landingPage": "/wp-admin/site-editor.php",
"preferredVersions": {
"php": "7.4",
"wp": "6.6.2"
},
"phpExtensionBundles": [
"kitchen-sink"
],
"features": {
@annezazu
annezazu / gist:463dd76749e3763c1a3f5d9f981366d5
Created August 29, 2024 17:08
Blueprint for block bindings
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"steps": [
@annezazu
annezazu / template-specific-pattern
Created February 9, 2023 20:18
Register patterns for specific template types
register_block_pattern(
'wp-my-theme/404-template-pattern',
array(
'title' => __( '404 Only template pattern', 'wp-my-theme' ),
'templateTypes' => array( '404' ),
'content' => '<!-- wp:paragraph {"align":"center","fontSize":"x-large"} --><p class="has-text-align-center has-x-large-font-size">404 pattern</p><!-- /wp:paragraph -->',
)
);
@annezazu
annezazu / content lock pattern
Last active August 15, 2025 09:19
An example of a pattern with content locking implemented.
function register_block_patterns() {
if ( class_exists( 'WP_Block_Patterns_Registry' ) ) {
$content = '<!-- wp:group {"templateLock":"contentOnly","align":"wide","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide"><!-- wp:image {"align":"wide","id":501,"sizeSlug":"full","linkDestination":"none","style":{"color":{"duotone":["#1a4548","#ffffff"]}}} -->
<figure class="wp-block-image alignwide size-full"><img src="https://s.w.org/patterns/files/2021/06/Group-17-scaled.jpg" alt="Image of a woman being carried through the air by swans." class="wp-image-501"/></figure>
<!-- /wp:image -->
<!-- wp:columns {"verticalAlignment":"center","align":"wide"} -->
@annezazu
annezazu / event-recap.php
Created July 11, 2022 18:08
FSE Outreach Call For Testing Event Recap Starter Pattern
<?php
/**
* Title: Event Recap
* Slug: twentytwentytwo/event-recap
* Block Types: core/post-content
* Post Types: post
* Categories: featured, text
*/
?>
@annezazu
annezazu / new-event-announcement.php
Last active July 11, 2022 18:07
FSE Outreach Call For Testing New Event Starter Pattern
<?php
/**
* Title: New Event Announcement
* Slug: twentytwentytwo/new-event-announcement
* Block Types: core/post-content
* Post Types: post
* Categories: featured, text
*/
?>