BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
wp-content
/
plugins
/
jetpack-boost
/
app
/
rest-api
/
contracts
📤 Upload
📝 New File
📁 New Folder
Close
Editing: interface-permission.php
<?php namespace Automattic\Jetpack_Boost\REST_API\Contracts; /** * API Endpoints have permissions that are checked by WordPress on `permission_callback`. * * These permissions repeat themselves, for example: * * current_user_can * * wp_verify_nonce * * And in the case of nonces - they also need to interact with the rest of the application. * Permission contract helps make the permission callbacks more predictable. * This is especially necessary to deal with nonces * (or more on that, read `permissions/class-nonce.php` */ interface Permission { /** * A method to verify whether this request * can be run in the current environment. * * @param \WP_REST_Request $request * * @return bool */ public function verify( $request ); }
Save
Cancel