File "UPDATE_Endpoint_Interface.php"

Full Path: /home/romayxjt/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/REST/Endpoints/UPDATE_Endpoint_Interface.php
File size: 765 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

interface Tribe__REST__Endpoints__UPDATE_Endpoint_Interface {
	/**
	 * Handles UPDATE requests on the endpoint.
	 *
	 * @param WP_REST_Request $request
	 *
	 * @return WP_Error|WP_REST_Response An array containing the data of the updated post on
	 *                                   success or a WP_Error instance on failure.
	 */
	public function update( WP_REST_Request $request );

	/**
	 * Returns the content of the `args` array that should be used to register the endpoint
	 * with the `register_rest_route` function.
	 *
	 * @return array
	 */
	public function EDIT_args();

	/**
	 * Whether the current user can update content of this type or not.
	 *
	 * @return bool Whether the current user can update or not.
	 */
	public function can_edit();
}