Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable remote block and block pattern suggestions #27

Open
joemaller opened this issue Aug 25, 2022 · 0 comments
Open

Disable remote block and block pattern suggestions #27

joemaller opened this issue Aug 25, 2022 · 0 comments
Assignees

Comments

@joemaller
Copy link
Member

"Available to install" Block suggestions need to be unregistered from JavaScript with something like this, after the editor is instantiated:

wp.plugins.unregisterPlugin('block-directory')

Block patterns can be disabled with a PHP filter:

add_filter('should_load_remote_block_patterns', '__return_false');
@joemaller joemaller self-assigned this Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant