Sail supports deploying WordPress out of the box, without the need of Git or any other source code management tools. This is great for solo-projects, or simple applications with very small teams....
https://konstantin.blog/2021/sail-push-to-deploy-github-actions/
I’ve never been a fan of IDEs, complex debugging tools with breakpoints, variable watch lists and all that fancy stuff. var_dump() and print_r() have always been my best friends. Recently I was...
Using Child Themes in WordPress is a great way to modify an existing theme, however the CSS @import directive is slower than it has to be, so you should try and avoid it. Here’s why. If it take...
I’ve seen tens, maybe hundreds of different plugins, all with different approaches at creating social profile links in WordPress themes via widgets, menus, shortcodes, and “insert this piece ...
https://konstantin.blog/2014/social-menus-in-wordpress-themes/
Around five months ago, I released Expound – a free magazine theme for WordPress. A few days ago, Expound has passed 100,000 downloads in the WordPress.org themes directory, which I’m super p...
Shortcodes are pretty cool, and the do_shortcode function is pretty neat as it can parse and execute shortcode callbacks from arbitrary strings, but that function invokes a fairly large regex eve...
There are quite a few blog posts, plugins and hacks suggesting to hide the WordPress version number, or hide the overall fact that you’re using WordPress. Don’t do it — it’s pretty useles...
https://konstantin.blog/2013/dont-hide-the-fact-that-youre-using-wordpress/
The get_template_part function is one of the most useful things available to WordPress theme developers. Although mostly used in themes for public, get_template_part is often used in custom WordP...
https://konstantin.blog/2013/get_template_part-within-shortcodes/
I’ve seen many people define an empty $matches variable before using it in preg_match and preg_match_all functions in PHP. I’ve done it myself, and I was quite surprised to learn that you don...
https://konstantin.blog/2013/on-matches-in-preg_match-functions/
Pro tip: wp_cron() runs during the init action at the default priority, i.e. 10. If you’d like things to be available during your cron tasks, make sure you initialize them earlier: the init act...