All Articles

How to Set Up WordPress on Docker

In this blog post, we will provide a detailed guide on how to set up WordPress using Docker, a powerful…

How to modify the Gutenberg blocks from post content with PHP

Modify the post content generated by Gutenberg by parsing the blocks with PHP and serializing the modified array back to…

register_post_meta is not Saving the Value in WordPress Block Editor (Gutenberg)

What to do when the WordPress block editor meta value, created with register_post_meta, is not saving in DB.

Change the EOL between CRLF, LF, and CR.

The end of the line is a symbol, which breaks the text lines into new rows. Many computer users don’t…

Programmatically resize Gutenberg block editor preview

The WordPress block editor allows us, the editors, to resize the view by accessing the “Preview” options from the top-right…

Get possible block transforms in Gutenberg block editor

Each Gutenberg block can be transformed into another block type. For example, we can transform a paragraph into a heading…

Check if the current post is using block editor (Gutenberg) or classic editor

WordPress 5+ will use the block editor by default and there is no way to switch to the classic editor…

How to register block editor categories

The WordPress block editor allows registering categories for custom blocks. So, if you have many custom blocks you may want…

Determine if the site or post editor screen is currently used with PHP

Sometimes we may need to determine if the current block editor is used to edit the full site or a…

Typescript global window data

I often have to get some data from the global window object. And doing so in typescript will end up…