Tribe__Events__REST__V1__Endpoints__Single_Organizer::EDIT_args()

Returns the content of the args array that should be used to register the endpoint with the register_rest_route function.

Contents


Return

(array)


Top ↑

Source

File: src/Tribe/REST/V1/Endpoints/Single_Organizer.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 );
	}