Please note that what we would like to see are:
Hope you have fun while you complete this. Good luck!
Please create a custom WP CLI job the does the following things
For all the product
content that has custom taxonomy product_cat
term early-access
remove the early-access
term if the post meta public_access_date
has past.
Below is the skeleton class template for the custom cli. Add your function in this class.
<?php
/**
* Product_cli class
*
* @package Ndevr
* @since 1.0.0
*/
if ( ! defined( 'WP_CLI' ) || ! WP_CLI ) {
return;
}
class Product_CLI extends \WP_CLI_Command {
/**
* Untag all early access classes when public access date is past.
*
* Your comments go here.
*/
// Your function goes here.
}
WP_CLI::add_command( 'product', 'Product_CLI' );
You can download the template form here
Create a gist on your github gist page (https://gist.github.com/) and submit the link address