%PDF- %PDF-
Direktori : /home/tradesc/www/relax/wp-content/plugins/wp-rocket/inc/Engine/CriticalPath/ |
Current File : /home/tradesc/www/relax/wp-content/plugins/wp-rocket/inc/Engine/CriticalPath/RESTWPInterface.php |
<?php namespace WP_Rocket\Engine\CriticalPath; use WP_REST_Request; use WP_REST_Response; interface RESTWPInterface { /** * Registers the generate route in the WP REST API * * @since 3.6 * * @return void */ public function register_generate_route(); /** * Register Delete CPCSS route in the WP REST API. * * @since 3.6 * * @return void */ public function register_delete_route(); /** * Checks user's permissions. This is a callback registered to REST route's "permission_callback" parameter. * * @since 3.6 * * @return bool true if the user has permission; else false. */ public function check_permissions(); /** * Generates the CPCSS for the requested post ID. * * @since 3.6 * * @param WP_REST_Request $request WP REST request response. * * @return WP_REST_Response */ public function generate( WP_REST_Request $request ); /** * Delete Post ID CPCSS file. * * @since 3.6 * * @param WP_REST_Request $request the WP Rest Request object. * * @return WP_REST_Response */ public function delete( WP_REST_Request $request ); }