Recently when working on an internal tool using Laravel, we encountered an issue where calling artisan commands in another application was using the wrong environment variables. After debugging, we determined that this was default behavior of the Symfony process class. The Symfony process class for PHP is able to call system processes from within your…
Category: Web Development
Filtering Custom Post Types with Advanced Custom Fields and JavaScript
A common requirement in many WordPress sites that have large amounts of content is the ability to filter that content. Whether it be blog posts, products, or custom post types—filtering allows users to further specify what they want and receive the best information possible for their unique experience. While there are many great plugins out…
Optimize CSS with the :is() Pseudo-Class Selector
When styling aspects of your website, it’s not unusual to need to target numerous similar items at once. Your code can get lengthy, repetitive and complex. Fortunately, the :is() pseudo-class selector introduced in the Selectors Level 4 specification can help simplify it. Using the :is() Selector Example 1 A common scenario where you can use…
Upgrade Your WordPress Development Skills with Action and Filter Hooks
An essential part of WordPress development is making modifications or adding functionality to what’s already in place from WordPress Core, a theme, or a plugin. If you’re familiar with the WordPress template hierarchy, a theme’s functions.php file, or even just the search function of your code editor, it’s tempting to find what you want to…