Skip to content
main logo
  • Blog
  • LinkedIn
  • GitHub
  • Recipes
Home » JavaScript

Category Archives: JavaScript

Change Autocompleter Triggers in the WordPress Block Editor

We can use filters to change the autocompleter triggers in the WordPress block editor. By ‘triggers’, I mean the typed character combination we use to make an autocompleter appear. For example, by default we can use @ to populate a list of site users. We can also use [[ to select a post link from …

Continue reading “Change Autocompleter Triggers in the WordPress Block Editor”

Disable Autocompleters in the WordPress Block Editor

We can use filters to disable autocompleters in the WordPress block editor. By default, the block editor registers three autocompleters: users, links, and blocks. To see what autocompleters are registered in our block editor, we can write something like this in the browser console: Now when we take any action that fires one of the …

Continue reading “Disable Autocompleters in the WordPress Block Editor”

Read and Write Post Meta in WordPress Block Editor

By making WordPress post meta fields available via the REST API we can access these values from our JavaScript code. This also makes it easier to debug post meta in the block editor, as we can query the post meta directly from the browser console. If you’re not sure how to make your post meta …

Continue reading “Read and Write Post Meta in WordPress Block Editor”

© 2025 Neilson Web Design