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
{ | |
"landingPage": "/wp-admin/site-editor.php", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "beta" | |
}, | |
"features": { | |
"networking": true | |
}, | |
"steps": [ |
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
{ | |
"landingPage": "/wp-admin/site-editor.php", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "nightly" | |
}, | |
"features": { | |
"networking": true | |
}, | |
"steps": [ |
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
{ | |
"landingPage": "/wp-admin/site-editor.php?postType=wp_template&postId=twentytwentyfour%2F%2Fsingle", | |
"preferredVersions": { | |
"php": "8.0", | |
"wp": "nightly" | |
}, | |
"features": { | |
"networking": true | |
}, | |
"steps": [ |
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
<?php | |
/** | |
* Plugin Name: Block Hooks Demo | |
* Description: Block Hooks API experiments. | |
* Version: 0.1.0 | |
* Requires at least: 6.5 | |
*/ | |
defined( 'ABSPATH' ) || exit; |
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
/** | |
* Add the following to a theme's functions.php file. | |
*/ | |
function example_enqueue_block_variations() { | |
wp_enqueue_script( | |
'frost-enqueue-block-variations', | |
get_template_directory_uri() . '/assets/js/variations.js', | |
array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ) | |
); |
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
/** | |
* Column Classes | |
* | |
* Width: 100% | |
* Gutter: 2.5641025641% | |
* Link: http://www.nickdiego.com/plugins/column-class-builder/ | |
----------------------------------------------------------------------------- */ | |
.five-sixths, | |
.four-fifths, |
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
<?php | |
/** | |
* Plugin Name: My Pattern Library | |
* Description: A simple library of block patterns. | |
* Version: 0.1.0 | |
* Requires at least: 5.8 | |
* Requires PHP: 7.0 | |
* Author: Your Name | |
* License: GPL v2 or later | |
* Text Domain: my-pattern-library |
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
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
// Only enable when the screen size is large enough for a sidebar | |
if ( $(window).width() > '1024' ) { | |
// Fix the block if our scroll position is below the top of the page - 1px to make transition more fluid. | |
var top = $('.sticky').offset().top - 1; | |
$(window).scroll(function(e) { |
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
<?php | |
/** | |
* Title: Testimonials | |
* Slug: twentytwentytwo/testimonials | |
* Categories: columns | |
* Block Types: core/post-content | |
* Post Types: page | |
*/ | |
?> |
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
/* | |
Purpose: Export the configuration settings for GitHub Labels. | |
(c) James Perrin, MIT License, https://www.countrydawgg.com, | @jamesperrin | |
Modified to pull additional label info from the Gutenberg repo by @ndiego | |
Exporting Instructions: | |
1. Open a web browser. | |
2. Navigate to the desired GitHub repository. | |
3. Navigate to Issues tab. |
NewerOlder