Even the many AI tools out there could say how to set the global $current_screen variable in order to test things like: Because WP_Screen is final and there’s no hooks,… Leer más »
Categoría: Tutorials
How to anonymize the WordPress users on your local or staging site
You never want to accidentally send emails to users from your local or staging version of your site, especially if you run an e-commerce site with a bunch of customer data. Use this query to anonymize the email addresses in your database.
How to remove the Easy Digital Downloads renewal discount without affecting existing customers
What if you now want to remove the renewal discount entirely for new plugin customers on your Easy Digital Downloads store, but keep it for existing customers?
How to get all custom fields from Advanced Custom Fields
Want to get a listing of all the fields saved in Advanced Custom Fields? Here’s how, and it’s an interesting way of fetching data from another WordPress plugin.
How to hide and disable the lightbulb in PHPStorm
After a lot of google-fu I managed to find the solution hidden deep within a comment thread on a PHPStorm feature suggestion
How to sell a plugin with a quick checkout service and Easy Digital Downloads
By default you can set up Stripe, PayPal and other payment gateways to complete a sale using Easy Digital Downloads. But all of them happen on a separate checkout page. Wouldn’t it be nice if you could use something like Paddle or SendOwl to collect payment in a simple popup modal, and have Easy Digital Downloads handle the software licensing?
How to Integrate Easy Digital Downloads and HelpScout
Easily see the sales data when you get a new message or support request, with links to quickly jump to that sale or license key in Easy Digital Downloads. Huge time saver!
How to alter or disable the EDD renewal discount if the license key expired
It’s common practice (at least at the moment) in the WordPress world to offer a discount when someone renews their license key for your plugin. But I don’t want to give the same full discount forever, if they let their license expire then decide to renew weeks or months down the road. By creating a time limit on the discount it forces the decision to be made and renew.
Preparing a Plugin for Translation
You have a plugin, but you want users to be able to use it in their native language. Learn how to get it ready for translation, things to watch out for, and tips for maintaining it as you change the plugin over time.
How to generate a bunch of single-use discount codes in Easy Digital Downloads
I needed to create a bunch of one-time use discount codes for a store, and created a script to do just that.