OXIESEC PANEL
- Current Dir:
/
/
var
/
cache
/
hostinger-wp-cli-packages
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/02/2025 09:20:53 AM
rwxr-xr-x
📁
.git
-
07/21/2025 12:30:17 PM
rwxr-xr-x
📁
.github
-
02/26/2025 07:59:29 AM
rwxr-xr-x
📄
.gitignore
15 bytes
02/24/2025 12:04:54 PM
rw-r--r--
📄
CODEOWNERS
29 bytes
04/30/2025 06:40:11 AM
rw-r--r--
📄
README.md
998 bytes
04/30/2025 06:40:11 AM
rw-r--r--
📄
composer.json
358 bytes
04/15/2025 12:30:13 PM
rw-r--r--
📄
hostinger-command.php
2.79 KB
07/18/2025 07:30:11 AM
rw-r--r--
📁
src
-
02/24/2025 12:04:54 PM
rwxr-xr-x
📁
vendor
-
02/24/2025 12:05:25 PM
rwxr-xr-x
📄
wp-cli.yml
35 bytes
02/24/2025 12:04:54 PM
rw-r--r--
Editing: hostinger-command.php
Close
<?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', ] ); }