How to query for custom field within Gutenberg block from outside of that post? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers’ support routes. Closed 3 … Read more

Gutenberg remove Most Used group

I was searching for a solution to remove the “Most Used” group of blocks from Gutenberg editor and couldn’t find any, is there any way? 3 Answers 3 Add CSS to wp-admin: functions.php: function admin_scripts() { wp_enqueue_style(‘admin-edits’, get_stylesheet_directory_uri() . ‘/assets/css/admin.css’); } add_action(‘admin_enqueue_scripts’, ‘admin_scripts’); admin.css: #block-editor-inserter__search-1:placeholder-shown + .editor-inserter__results .components-panel__body:first-of-type { display: none; }

How to use wp.hooks.addAction() in React JS/Gutenberg?

I am able to successfully use wp.hooks.applyFilters() and wp.hooks.addFilter(), but I’m not able to render a React Component using wp.hooks.addAction(). However, the console.log() runs just fine within the callback for an action. This is my code: import { createHooks } from ‘@wordpress/hooks’; let globalHooks = createHooks(); const Header = () => { return ( <h1>Header … Read more