Skip to content

Instantly share code, notes, and snippets.

@chrismccoy
Last active September 26, 2025 12:19
Show Gist options
  • Save chrismccoy/de8231206acacfc635c2ff9a5415459c to your computer and use it in GitHub Desktop.
Save chrismccoy/de8231206acacfc635c2ff9a5415459c to your computer and use it in GitHub Desktop.

Revisions

  1. chrismccoy revised this gist Sep 18, 2025. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    Eliminate All Blocks from Editor
    wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);

    How to Use WordPress Block Builder to Create Custom Page Layouts Easily
    https://www.webfactoryltd.com/blog/how-to-use-wordpress-block-builder-to-create-custom-page-layouts-easily/

    How to Extend or Create Variations for WordPress Blocks
    https://getbutterfly.com/how-to-extend-or-create-variations-for-wordpress-blocks/

  2. chrismccoy revised this gist Sep 15, 2025. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    Eliminate All Blocks from Editor
    wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);

    How to Extend or Create Variations for WordPress Blocks
    https://getbutterfly.com/how-to-extend-or-create-variations-for-wordpress-blocks/

    How to disable and lock Gutenberg blocks
    https://kinsta.com/blog/disable-gutenberg-blocks/

  3. chrismccoy revised this gist Mar 13, 2025. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    Eliminate All Blocks from Editor
    wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);

    How to disable and lock Gutenberg blocks
    https://kinsta.com/blog/disable-gutenberg-blocks/

    Convert group of file blocks to ACF block
    https://bdwm.be/gutenberg-case-study-convert-group-of-file-blocks-to-acf-block/

  4. chrismccoy revised this gist Mar 13, 2025. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    Eliminate All Blocks from Editor
    wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);

    Convert group of file blocks to ACF block
    https://bdwm.be/gutenberg-case-study-convert-group-of-file-blocks-to-acf-block/

    Enabling Gutenberg-Based Custom Post Types and Taxonomies
    https://krasenslavov.com/enabling-gutenberg-based-custom-post-types-and-taxonomies/

  5. chrismccoy revised this gist Feb 26, 2025. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,12 @@
    Eliminate All Blocks from Editor
    wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);

    Enabling Gutenberg-Based Custom Post Types and Taxonomies
    https://krasenslavov.com/enabling-gutenberg-based-custom-post-types-and-taxonomies/

    Applying Custom Headings with H1-H6 Sizes in Block Editor Using registerBlockType and RichText
    https://krasenslavov.com/applying-custom-headings-with-h1-h6-sizes-in-block-editor-using-registerblocktype-and-richtext/

    Filtering Blocks When allowed_block_types_all is a boolean
    https://tomjn.com/2024/02/29/filtering-blocks-when-allowed_block_types_all-is-a-boolean/

  6. chrismccoy revised this gist Nov 9, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    Eliminate All Blocks from Editor
    wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);

    Filtering Blocks When allowed_block_types_all is a boolean
    https://tomjn.com/2024/02/29/filtering-blocks-when-allowed_block_types_all-is-a-boolean/

    Gutenberg / Block editor: Dynamically populate SelectControl, RadioControl or CheckboxControl options
    https://bdwm.be/gutenberg-block-editor-dynamically-populate-selectcontrol-radiocontrol-or-checkboxcontrol-options/

  7. chrismccoy revised this gist Oct 18, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Eliminate All Blocks from Editor
    wp.data.dispatch( 'core/block-editor' ).resetBlocks([]);

    Gutenberg / Block editor: Dynamically populate SelectControl, RadioControl or CheckboxControl options
    https://bdwm.be/gutenberg-block-editor-dynamically-populate-selectcontrol-radiocontrol-or-checkboxcontrol-options/

  8. chrismccoy revised this gist Oct 18, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Gutenberg / Block editor: Dynamically populate SelectControl, RadioControl or CheckboxControl options
    https://bdwm.be/gutenberg-block-editor-dynamically-populate-selectcontrol-radiocontrol-or-checkboxcontrol-options/

    Gutenberg: custom validation / how to prevent post from being saved
    https://bdwm.be/gutenberg-how-to-prevent-post-from-being-saved/

  9. chrismccoy revised this gist Oct 18, 2024. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    Gutenberg: custom validation / how to prevent post from being saved
    https://bdwm.be/gutenberg-how-to-prevent-post-from-being-saved/

    Gutenberg: how to insert a reusable block in the editor with JavaScript
    https://bdwm.be/gutenberg-how-to-insert-a-reusable-block-in-the-editor-with-javascript/

    Prevent specific block from being removable
    https://bdwm.be/gutenberg-prevent-specific-block-from-being-removable/

  10. chrismccoy revised this gist Oct 18, 2024. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,15 @@
    Prevent specific block from being removable
    https://bdwm.be/gutenberg-prevent-specific-block-from-being-removable/

    Example Custom Field in Gutenberg/Block Editor
    https://shellcreeper.com/custom-field-meta-box-in-gutenberg-editor/

    An easier way to tell apart Gutenberg blocks on the Editor
    https://www.gsarigiannidis.gr/an-easier-way-to-tell-apart-gutenberg-blocks-on-the-editor/

    Adding a DIV wrapper to Gutenberg’s Classic block
    https://www.gsarigiannidis.gr/adding-a-div-wrapper-to-gutenberg-s-classic-block/

    How to parse Gutenberg content for headless WordPress
    https://kinsta.com/blog/headless-wordpress-gutenberg/

  11. chrismccoy revised this gist Apr 4, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    How to parse Gutenberg content for headless WordPress
    https://kinsta.com/blog/headless-wordpress-gutenberg/

    Adding wrapper to Gutenberg’s Table block
    https://helloadmin.com/adding-wrapper-to-gutenbergs-table-block/

  12. chrismccoy revised this gist Feb 26, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Adding wrapper to Gutenberg’s Table block
    https://helloadmin.com/adding-wrapper-to-gutenbergs-table-block/

    Display specific Gutenberg blocks of a post outside of the post content in the theme
    https://florianbrinkmann.com/en/display-specific-gutenberg-blocks-of-a-post-outside-of-the-post-content-in-the-theme-5620/

  13. chrismccoy revised this gist Jan 30, 2024. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    Display specific Gutenberg blocks of a post outside of the post content in the theme
    https://florianbrinkmann.com/en/display-specific-gutenberg-blocks-of-a-post-outside-of-the-post-content-in-the-theme-5620/

    Modifying the Markup of a Core Block
    https://gutenberg.10up.com/guides/modifying-the-markup-of-a-core-block/

    How to build a block editor sidebar using vanilla JavaScript
    https://getbutterfly.com/how-to-build-a-block-editor-sidebar-using-vanilla-javascript/

  14. chrismccoy revised this gist Dec 11, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    How to build a block editor sidebar using vanilla JavaScript
    https://getbutterfly.com/how-to-build-a-block-editor-sidebar-using-vanilla-javascript/

    How to Read WordPress Block Content Programmatically
    https://www.ibenic.com/read-wordpress-block-content-programmatically/

  15. chrismccoy revised this gist Nov 20, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    How to Read WordPress Block Content Programmatically
    https://www.ibenic.com/read-wordpress-block-content-programmatically/

    Creating a Server-Side Rendered ACF Field Block for WordPress
    https://wpblockz.com/tutorial/learn-gutenberg-block-building-create-a-block-that-renders-an-acf-field/

  16. chrismccoy revised this gist Oct 3, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Creating a Server-Side Rendered ACF Field Block for WordPress
    https://wpblockz.com/tutorial/learn-gutenberg-block-building-create-a-block-that-renders-an-acf-field/

    Coding Gutenberg Toggle Control Block Settings
    https://wpblockz.com/tutorial/wp-gutenberg-editor-controls-form-toggle/

  17. chrismccoy revised this gist Oct 3, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Coding Gutenberg Toggle Control Block Settings
    https://wpblockz.com/tutorial/wp-gutenberg-editor-controls-form-toggle/

    Remove the default block patterns from WordPress
    https://wpblockz.com/tutorial/remove-default-block-patterns-from-wordpress/

  18. chrismccoy revised this gist Oct 3, 2023. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    Remove the default block patterns from WordPress
    https://wpblockz.com/tutorial/remove-default-block-patterns-from-wordpress/

    How to code the Inspector Controls
    https://wpblockz.com/tutorial/how-to-code-the-inspector-controls/

    Load Gutenberg Styles Only If Page Has Blocks
    https://www.great-tit.com/load-gutenberg-styles-only-if-page-has-blocks/

  19. chrismccoy revised this gist Sep 13, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Load Gutenberg Styles Only If Page Has Blocks
    https://www.great-tit.com/load-gutenberg-styles-only-if-page-has-blocks/

    JavaScript available methods in Gutenberg
    https://salferrarello.com/gutenberg-js/

  20. chrismccoy revised this gist Sep 13, 2023. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    JavaScript available methods in Gutenberg
    https://salferrarello.com/gutenberg-js/

    How to Enable, Create, Read and Update Post Meta in the WordPress Block Editor
    https://jeffreycarandang.com/how-to-enable-read-and-update-post-meta-in-the-wordpress-block-editor-gutenberg/

    Create Custom Categories for Blocks
    https://rudrastyh.com/gutenberg/create-custom-block-categories.html

  21. chrismccoy revised this gist Aug 3, 2023. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    Create Custom Categories for Blocks
    https://rudrastyh.com/gutenberg/create-custom-block-categories.html

    How to Create a Custom Blocks Category for WordPress
    https://gutenberghub.com/how-to-create-custom-block-category/

    Creating Reusable React Hooks For The WordPress Block Editor
    https://pluginmachine.com/creating-reusable-react-hooks-for-the-wordpress-block-editor-or-whatever/

  22. chrismccoy revised this gist Jul 12, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Creating Reusable React Hooks For The WordPress Block Editor
    https://pluginmachine.com/creating-reusable-react-hooks-for-the-wordpress-block-editor-or-whatever/

    How to Create Custom Gutenberg Block for WordPress – The Beginners Guide
    https://gutenberghub.com/how-to-create-gutenberg-block/

  23. chrismccoy revised this gist Jul 12, 2023. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,12 @@
    How to Create Custom Gutenberg Block for WordPress – The Beginners Guide
    https://gutenberghub.com/how-to-create-gutenberg-block/

    How to Programmatically add a block in the WordPress Block Editor
    https://www.ibenic.com/how-to-programmatically-add-a-block-in-the-wordpress-block-editor/

    How To Use WordPress Data Package To Get The Current Post Being Edited In The Post Editor
    https://pluginmachine.com/how-to-use-wordpress-data-package-to-get-the-current-post-being-edited-in-the-post-editor/

    Integrate ChatGPT API with a Custom WordPress React Block
    https://cheewebdevelopment.com/integrate-chatgpt-api-with-a-custom-wordpress-react-block/

  24. chrismccoy revised this gist May 18, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Integrate ChatGPT API with a Custom WordPress React Block
    https://cheewebdevelopment.com/integrate-chatgpt-api-with-a-custom-wordpress-react-block/

    Create a Block in Typescript
    https://mkaz.blog/wordpress/create-a-block-in-typescript/

  25. chrismccoy revised this gist Jan 28, 2023. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    Create a Block in Typescript
    https://mkaz.blog/wordpress/create-a-block-in-typescript/

    Using Block Patterns as content templates
    https://mkaz.blog/wordpress/using-block-patterns-as-content-templates/

    Saving Settings for a Custom WordPress Block in the Block Editor
    https://css-tricks.com/saving-settings-for-a-custom-wordpress-block-in-the-block-editor/

  26. chrismccoy revised this gist Dec 22, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Saving Settings for a Custom WordPress Block in the Block Editor
    https://css-tricks.com/saving-settings-for-a-custom-wordpress-block-in-the-block-editor/

    Deactivate individual block styles
    https://kau-boys.com/2535/wordpress/deactivate-individual-block-styles

  27. chrismccoy revised this gist Oct 5, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Deactivate individual block styles
    https://kau-boys.com/2535/wordpress/deactivate-individual-block-styles

    Register block styles in WordPress Gutenberg blocks
    https://wpblockz.com/tutorial/register-block-styles-in-wordpress/

  28. chrismccoy revised this gist Sep 27, 2022. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,18 @@
    Register block styles in WordPress Gutenberg blocks
    https://wpblockz.com/tutorial/register-block-styles-in-wordpress/

    Add Custom Settings to Existing WordPress Gutenberg Blocks
    https://awhitepixel.com/blog/add-custom-settings-to-existing-wordpress-gutenberg-blocks/

    How to add style variations to WordPress Block Themes
    https://richtabor.com/wordpress-style-variations/

    How to add Fluid Typography to WordPress Block Themes
    https://richtabor.com/fluid-typography-block-themes/

    Registering Multiple Gutenberg Blocks Each Through its Own block.json File
    https://luigicavalieri.com/blog/registering-multiple-gutenberg-blocks-using-block_json-files/

    10 great Gutenberg plugins to enhance your editor’s powers
    https://wpmarmite.com/en/gutenberg-plugins/

  29. chrismccoy revised this gist Aug 14, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    10 great Gutenberg plugins to enhance your editor’s powers
    https://wpmarmite.com/en/gutenberg-plugins/

    Adding Custom Notices for the Gutenberg Editor
    https://webdevstudios.com/2022/07/19/custom-notices-gutenberg/

  30. chrismccoy revised this gist Jul 28, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gutenberg.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Adding Custom Notices for the Gutenberg Editor
    https://webdevstudios.com/2022/07/19/custom-notices-gutenberg/

    How to create a scrollable image gallery block
    https://gutenberghub.com/create-scrollable-image-gallery-block/