| @@ -135,8 +135,41 @@ | ||
| 135 | 135 | return $this->get_controller_index(); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | + * Creates multiple items. | |
| 140 | + * | |
| 141 | + * @param \WP_REST_Request $request Full data about the request. | |
| 142 | + * | |
| 143 | + * @return \WP_Error|\WP_REST_Response Response object on success, or WP_Error object on failure. | |
| 144 | + */ | |
| 145 | + public function create_items( $request ) { | |
| 146 | + return new \WP_Error( 'invalid-method', sprintf( "Method '%s' not implemented. Must be overridden in subclass.", __METHOD__ ), [ 'status' => 405 ] ); | |
| 147 | + } | |
| 148 | + | |
| 149 | + /** | |
| 150 | + * Updates multiple items. | |
| 151 | + * | |
| 152 | + * @param \WP_REST_Request $request Full data about the request. | |
| 153 | + * | |
| 154 | + * @return \WP_Error|\WP_REST_Response Response object on success, or WP_Error object on failure. | |
| 155 | + */ | |
| 156 | + public function update_items( $request ) { | |
| 157 | + return new \WP_Error( 'invalid-method', sprintf( "Method '%s' not implemented. Must be overridden in subclass.", __METHOD__ ), [ 'status' => 405 ] ); | |
| 158 | + } | |
| 159 | + | |
| 160 | + /** | |
| 161 | + * Delete multiple items. | |
| 162 | + * | |
| 163 | + * @param \WP_REST_Request $request Full data about the request. | |
| 164 | + * | |
| 165 | + * @return \WP_Error|\WP_REST_Response Response object on success, or WP_Error object on failure. | |
| 166 | + */ | |
| 167 | + public function delete_items( $request ) { | |
| 168 | + return new \WP_Error( 'invalid-method', sprintf( "Method '%s' not implemented. Must be overridden in subclass.", __METHOD__ ), [ 'status' => 405 ] ); | |
| 169 | + } | |
| 170 | + | |
| 171 | + /** | |
| 139 | 172 | * Register endpoints. |
| 140 | 173 | */ |
| 141 | 174 | abstract public function register_endpoints(); |
| 142 | 175 | |