Tips & tricks

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…
Date
January 15, 2022
Posted by

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.
Date
January 3, 2022
Posted by

How to get the parent terms of any taxonomy

A post may have many taxonomies and each taxonomy may have also many terms and then each term may have…
Date
December 17, 2021
Posted by

Add settings link under plugin name

When creating a custom plugin, you may want to add a custom link to the setting page. That way, the…
Date
December 14, 2021
Posted by

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…
Date
December 10, 2021
Posted by

Modify CPT arguments after it was registered

When registering a new custom post type it’s easy to pass the arguments to the register_post_type function directly. It can’t…
Date
December 1, 2021
Posted by

CSS Box Shadow Generator in 2022

Generating CSS3 multilayer box-shadow has never been easier. Now with Box Shadow Generator you can create, edit and find inspiration…
Date
January 15, 2022
Posted by

Effective URL validation in PHP with regex

URL validation is a hard thing to do. There are so many variations that it is nearly impossible to predict…
Date
December 1, 2021
Posted by

What is ternary operator and how to use it?

The ternary operator is a short replacement for the if and else statement. It allows writing the condition elegantly in…
Date
December 1, 2021
Posted by

Quick fix for jQuery “Uncaught TypeError: $ is not a function” in WordPress

jQuery is an old library used on millions of websites. Likewise, WordPress used and still uses it extensively in plugins…
Date
December 1, 2021
Posted by