WP_REST_Edit_Site_Export_Controller::register_routes() – Registers the site export route.

You appear to be a bot. Output may be restricted

Description

Registers the site export route.

Usage

WP_REST_Edit_Site_Export_Controller::register_routes();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php
Lines:

1 to 13 of 13
  public function register_routes() {
    register_rest_route(
      $this->namespace,
      '/' . $this->rest_base,
      array(
        array(
          'methods'             => WP_REST_Server::READABLE,
          'callback'            => array( $this, 'export' ),
          'permission_callback' => array( $this, 'permissions_check' ),
        ),
      )
    );
  }
 

 View on GitHub View on Trac