-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gutenberg: add loading blocks (#10008)
Meant for easy testing of blocks during the unstable phase of developing Jetpack's Gutenberg extensions. - Loading blocks is disabled by default. To enable: ```php add_filter( 'jetpack_gutenberg', '__return_true', 10 ); ``` - When enabled, loads blocks from WordPress.com CDN. To load files locally instead: ```php add_filter( 'jetpack_gutenberg_cdn', '__return_false', 10 ); ``` - To adjust CDN cache-busting: ```php add_filter( 'jetpack_gutenberg_cdn_cache_buster', function( $version ) { return time(); }, 10, 1 ); ``` Note that you will need to build block files yourself when loaded locally: - `_inc/blocks/jetpack-editor.css` - `_inc/blocks/jetpack-editor.js`
- Loading branch information
Showing
2 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
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
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