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 | |
/* | |
Template Name: Migration Script | |
*/ | |
error_reporting(E_ALL); | |
//reuire_once('/stripe/init.php'); | |
\Stripe\Stripe::setApiKey("my_key"); |
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
/** | |
* Add a weekly email report that summarizes which domains that | |
* your products are being used on. | |
*/ | |
add_filter( 'cron_schedules', function( $schedules ) { | |
$schedules['weekly'] = array( | |
'interval' => 604800, | |
'display' => __('Once Weekly') | |
); |
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 | |
function get_plugin_install_count( $plugin ) { | |
$api = plugins_api( 'plugin_information', array( | |
'slug' => 'mainwp-child', | |
'fields' => array( 'active_installs' => true ) | |
) ); | |
if( ! is_wp_error( $api ) ) { | |
return $api->active_installs; | |
} |
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 | |
class acf_update { | |
/* | |
* __construct | |
* | |
* A good place to add actions / filters | |
* | |
* @type functionac |