/** * Update currencies. * * Callback for 'wp_currencies_update' action. * * @since 1.4.0 */ public function update_currencies() { //if ( defined( 'DOING_CRON' ) ) { do_action('wp_currencies_before_update', time()); $rates = new Rates(); $rates->update(); //} }