Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Showcase
  • Hosting
    • Themes
    • Plugins
    • Patterns
    • Blocks
    • Openverse ↗︎
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
    • About WordPress
    • Enterprise
    • Gutenberg ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php

WP_REST_Edit_Site_Export_Controller

Class: Controller which provides REST endpoint for exporting current templates and template parts.

Source: wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php:17

Used by 0 functions | Uses 1 function

WP_REST_Edit_Site_Export_Controller::__construct()

Method: Constructor.

Source: wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php:24

Used by 1 function | Uses 0 functions

WP_REST_Edit_Site_Export_Controller::register_routes()

Method: Registers the site export route.

Source: wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php:34

Used by 0 functions | Uses 1 function

WP_REST_Edit_Site_Export_Controller::permissions_check()

Method: Checks whether a given request has permission to export.

Source: wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php:55

Used by 0 functions | Uses 4 functions

WP_REST_Edit_Site_Export_Controller::export()

Method: Output a ZIP file with an export of the current templates and template parts from the site editor, and close the connection.

Source: wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php:75

Used by 0 functions | Uses 3 functions
  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Donate ↗
  • Swag Store ↗
  • WordCamp ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our X (formerly Twitter) account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry