[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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.


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


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

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

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: void|WP_Error



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref