Unable to add blocks in wordpress posts

Your editor is in code/text mode. It’s possibly this is because you turned it off in your profile edit screen. Its also possible it’s because you selected code editor in the options menu in the top right corner. It’s also possible you have JS errors in your browser console that are preventing the block editor … Read more

Detecting whenever a user types – in the Gutenberg editor, and checking if there is a preceding or succeeding – then converting both to an em dash

I managed to find an answer to this. Instead of adding an event listener to the editor, I hooked some additional functionality onto Gutenberg’s Autocompleter instead: I wrote a post here detailing how I did this, if anyone is looking to do the same thing: https://blog.terresquall.com/2023/06/how-i-made-double-dashes-automatically-convert-to-em-dashes-in-wordpress-gutenberg-editor/

Register block pattern category with higher priority

This isn’t possible via register_block_pattern_category or filter priorities. Gutenberg and the REST API at the time of writing don’t attempt to sort the categories, and instead display them in the order given to them by the Pattern repository class in PHP. That pattern repository class stores them in an array as objects on keys, so … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)