⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.118
Server IP:
93.127.201.143
Server:
Linux sg-nme-web1518.main-hosting.eu 5.14.0-611.16.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec 22 03:40:39 EST 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.3.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
cache
/
hostinger-wp-cli-packages
/
View File Name :
hostinger-command.php
<?php use Hostinger\WPCLI\Woocommerce\GetOrdersCommand; use Hostinger\WPCLI\Woocommerce\GetWooOrdersCommand; use Hostinger\WPCLI\Woocommerce\GetOrdersUpdatedCommand; if ( ! class_exists( 'WP_CLI' ) ) { return; } $wpcli_hostinger_autoloader = __DIR__ . '/vendor/autoload.php'; if ( file_exists( $wpcli_hostinger_autoloader ) ) { require_once $wpcli_hostinger_autoloader; } if ( class_exists( GetOrdersCommand::class ) ) { WP_CLI::add_command( 'hostinger woocommerce get-orders', GetOrdersCommand::class, [ 'shortdesc' => 'Retrieve WooCommerce orders based on date range.', 'longdesc' => "Fetch all WooCommerce orders either from a specific date or for a set number of days.\n\n" . "## EXAMPLES\n\n" . " wp hostinger woocommerce get-orders --days=7\n" . " Retrieves orders from the past 7 days.\n\n" . " wp hostinger woocommerce get-orders --from-date=2025-01-01\n" . " Retrieves orders from 2025-01-01 until yesterday.\n\n" . " wp hostinger woocommerce get-orders --from-date=2025-01-01 --to-date=2025-01-31\n" . " Retrieves orders for the exact date range.", 'when' => 'after_wp_load', ] ); } if ( class_exists( GetWooOrdersCommand::class ) ) { WP_CLI::add_command( 'hostinger woocommerce get-woo-orders', GetWooOrdersCommand::class, [ 'shortdesc' => 'Retrieve WooCommerce orders based on date range.', 'longdesc' => "Fetch all WooCommerce orders either from a specific date or for a set number of days.\n\n" . "## EXAMPLES\n\n" . " wp hostinger woocommerce get-woo-orders --from-date=2025-01-01\n" . " Retrieves all orders from 2025-01-01 until now.\n\n" . " wp hostinger woocommerce get-woo-orders --days=7\n" . " Retrieves all orders from the past 7 days.", 'when' => 'after_wp_load', ] ); } if ( class_exists( GetOrdersUpdatedCommand::class ) ) { WP_CLI::add_command( 'hostinger woocommerce get-woo-orders-latest', GetOrdersUpdatedCommand::class, [ 'shortdesc' => 'Retrieve WooCommerce orders based on date range.', 'longdesc' => "Fetch all WooCommerce orders either from a specific date or for a set number of days.\n\n" . "## EXAMPLES\n\n" . " wp hostinger woocommerce get-woo-orders-latest --from-date=2025-01-01\n" . " Retrieves all orders from 2025-01-01 until now.\n\n" . " wp hostinger woocommerce get-woo-orders-latest --days=7\n" . " Retrieves all orders from the past 7 days.", 'when' => 'after_wp_load', ] ); }