Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

block-editor

How to limit the selection of the first level block in Gutenberg editor

Create a new custom block, lets call it CustomSecondary, that contains an InnerBlocks instance. When registering this block set it’s parent property to your main custom block and registerBlockType( ‘custom-secondary’, { parent: [‘your-main-block], edit: () => ( <InnerBlocks />) { .. your other properties } }); This will make it so this block can only … Read more

Categories block-editor Tags block-editor

Suggested image dimensions Gutenberg Hook

Suggested image dimensions Gutenberg Hook

Categories block-editor Tags block-editor, media-library, media-modal, media-settings

wp_schedule_single_event issue with save_post hook in gutenberg

wp_schedule_single_event issue with save_post hook in gutenberg

Categories block-editor Tags block-editor, save-post, wp-cron

Pass PHP vars to gutenberg sidebar

Pass PHP vars to gutenberg sidebar

Categories block-editor Tags block-editor

WP Gutenberg Blocks – How to limit first/root blocks

WP Gutenberg Blocks – How to limit first/root blocks

Categories plugin-development Tags block-editor, plugin-development, theme-development

Gutenberg: dynamic block ToggleControl error in saving

I managed to get it to work, here is the correct code: JS file const { __ } = wp.i18n; const { registerBlockType } = wp.blocks; const { InspectorControls} = wp.blockEditor; const { PanelBody,ToggleControl } = wp.components; const BlockEdit = (props) => { const { attributes, setAttributes } = props; const { haveRead } = … Read more

Categories block-editor Tags block-editor

Getting meta in editor plugin, and event triggering issue

Getting meta in editor plugin, and event triggering issue

Categories custom-post-types Tags block-editor, custom-post-types, plugin-development, post-meta, rest-api

WordPress filter post content with PHP before editing it in Gutenberg

WordPress filter post content with PHP before editing it in Gutenberg

Categories block-editor Tags block-editor

Check if current page is using blocks (Gutenberg) or is legacy

I know it’s been awhile, but yes. You can check if a post uses blocks, check out has_blocks() : https://developer.wordpress.org/reference/functions/has_blocks/ I’m using it when filtering content, to see if I need to parse blocks or not.

Categories block-editor Tags block-editor

How to get current post id in Gutenberg Block save function?

How to get current post id in Gutenberg Block save function?

Categories block-editor Tags block-editor
Older posts
Newer posts
← Previous Page1 … Page150 Page151 Page152 … Page222 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress