Tribe__Events__REST__V1__Endpoints__Term_Single_Base::EDIT_args()
Returns the content of the args array that should be used to register the endpoint with the register_rest_route function.
Return
(array)
Source
File: src/Tribe/REST/V1/Endpoints/Term_Single_Base.php
public function EDIT_args() {
// when editing the only required argument is the ID ('id')
$create_args = $this->CREATE_args();
array_walk( $create_args, array( $this, 'unrequire_arg' ) );
return array_merge( $this->READ_args(), $create_args );
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |