WordPress
WordPress
Get the user ID by login in WordPress with a simple function
Recently I needed to get the ID of a user out of a big list. I didn’t want to open…
WordPress
WordPress, Docker, and WP CLI
As someone who has been using Docker for local development over the past five years, I can confidently say that…
WordPress
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…
WordPress
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…
WordPress
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…
WordPress
wp_parse_args recursive of multidimensional arrays
wp_parse_args is a wonderful function for combining two arrays, objects, or strings in WordPress. But it lacks the possibility to…
WordPress
Disable REST API for non-logged users in WordPress
Disable REST API without using a plugin. Add the following code to the functions.php file in your theme or in…
WordPress
Programmatically insert taxonomy terms in WordPress
I’ve got this dilemma today. I had to insert all states of America in DB as a taxonomy term. Instead…
WordPress
Gutenberg full and wide width inside of a fixed container
Gutenberg, the new editor from WordPress 5+ comes with some handy block options which allow defining full and wide width.…
Recent comments