src/Http/Endpoint.php
public function get_options() {
		$options = array(
			'methods'  => $this->method,
			'callback' => $this->callback,
		);

		if ( $this->guard ) {
			$options['permission_callback'] = array( $this->guard, 'authorized' );
		}

		if ( $this->filter ) {
			$options['args'] = $this->filter->rules();
		}

		return $options;
	}
public function get_options() {
		$options = array(
			'methods'  => $this->method,
			'callback' => $this->callback,
		);

		if ( $this->guard ) {
			$options['permission_callback'] = array( $this->guard, 'authorized' );
		}

		if ( $this->filter ) {
			$options['args'] = $this->filter->rules();
		}

		return $options;
	}
public function get_options ( ) { $ options = array ( 'methods' => $ this -> method , 'callback' => $ this -> callback , ) ; if ( $ this -> guard ) { $ options [ 'permission_callback' ] = array ( $ this -> guard , 'authorized' ) ; } if ( $ this -> filter ) { $ options [ 'args' ] = $ this -> filter -> rules ( ) ; } return $ options ; }
Generates the endpoint's WP-API options array.

@return array
Generates the endpoint s WP - API options array .