When working on some sites, you might want to hide or show content in your articles based on user meta.
Read MoreCategory: PHP
Adding useful interactive prompts in your WP_CLI commands
I like WP_CLI and how it can improve your development and management of sites. I sometimes even use it to create a new WordPress site locally. But what if you work on your own custom WP_CLI commands and want them more interactive?
Read MoreHow to Improve Responsive Image Attributes in WordPress
Programmatically Upload and Unpack ZIP files in WordPress
ZIP Files are not allowed in WordPress by default but you might want to have a way to upload them and unpack them. For example, how WordPress uploads and unpacks plugin ZIP files.
Read MoreSelling Simple Products as WooCommerce Subscriptions – Front
To sell simple products as WooCommerce Subscriptions, you need to display a different button to trigger it. We will use the WooCommerce AJAX approach here for adding subscriptions in the cart.
Read More