[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/rest-api/endpoints/ -> class-wp-rest-edit-site-export-controller.php (summary)

REST API: WP_REST_Edit_Site_Export_Controller class

File Size: 94 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_REST_Edit_Site_Export_Controller:: (4 methods):
  __construct()
  register_routes()
  permissions_check()
  export()


Class: WP_REST_Edit_Site_Export_Controller  - X-Ref

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

__construct()   X-Ref
Constructor.

since: 5.9.0

register_routes()   X-Ref
Registers the site export route.

since: 5.9.0

permissions_check()   X-Ref
Checks whether a given request has permission to export.

return: WP_Error|true True if the request has access, or WP_Error object.
since: 5.9.0

export()   X-Ref
Output a ZIP file with an export of the current templates
and template parts from the site editor, and close the connection.

return: WP_Error|void
since: 5.9.0



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1