This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Description: MU-Plugin of CLI command to purge WooCommerce data. | |
* Plugin URI: https://gist.github.com/crstauf/0917df51455efa1a61058c050565fe72 | |
* Author: Caleb Stauffer | |
* Author URI: https://develop.calebstauffer.com | |
*/ | |
if ( !defined( 'WP_CLI' ) || !WP_CLI ) | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'label' => '', // Text in Label | |
'class' => '', | |
'style' => '', | |
'wrapper_class' => '', | |
'value' => '', // if empty, retrieved from post meta where id is the meta_key | |
'id' => '', // required | |
'name' => '', //name will set from id if empty |