by greg | Jun 23, 2017
So I ran into a need to validate an email address for a frontend posting of a custom post type using Cozmos Labs WordPress Creation Toolkit. Here is the code that I used to be able to accomplish that. There is some commented out code that allows for you to see what...
by greg | Sep 22, 2020
Occasionally you find the need to have scheduled tasks run in WordPress. Ideally this should be done using WordPress Cron which allows you to tie in with visits to the website as to things being run periodically. The main commands that you will be needing are the...
by greg | Apr 27, 2017
There are plenty of times you need to create extra database tables for storing data within WordPress. Sometimes a scope of an addon has changed and you need to modify the table. Using dbDelta within WordPress can allow you to modify the table without having to use...
by greg | Apr 26, 2018
Here is the code sample of what is required for developing a plugin. This needs to go into the main php file within the plugin folder. <?php /* Plugin Name: WordPress.org Plugin Plugin URI: https://developer.wordpress.org/plugins/the-basics/ Description: Basic...
by greg | Jun 2, 2020
WordPress Code Generated – GenerateWP I came across this very useful site that can be used to get you started with your WordPress plugin or other customizations, generatewp.com. They have 28 generators for free as well as 5 premium ones that you have to have a...