[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
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 |
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__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 |