Server : LiteSpeed System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : apotdzgr ( 7060) PHP Version : 8.0.30 Disable Function : NONE Directory : /home/apotdzgr/public_html/wp-content/plugins/mycryptocheckout/src/cli/ |
Upload File : |
<?php namespace mycryptocheckout\cli; use Exception; use WP_CLI; /** Generic commands for MCC. @since 2019-01-09 14:15:09 **/ class MyCryptoCheckout { /** @brief Dump public keys @since 2020-04-24 21:49:01 **/ public function dump_pub( $args ) { $dump_pub = new Dump_Pub( $this ); $dump_pub->run( $args ); } /** Run internal tests. * @since 2019-01-09 14:16:42 **/ public function tests() { $tests = new Tests( $this ); $tests->run(); } /** Request an account update. @since 2019-01-09 14:17:48 **/ public function update_account() { $result = MyCryptoCheckout()->mycryptocheckout_retrieve_account(); if ( $result ) WP_CLI::line( 'Account info updated. :) ' ); else throw new Exception( 'Account info update failed. :(' ); return true; } }