public function add_endpoint( $endpoint = '', $endpoint_type = \EP_ROOT, $callback = array() ) {
		if ( ! isset( $this->rewrite_endpoint[ $endpoint ] ) ) {
			$this->rewrite_endpoint[ $endpoint ] = array(
				'type'     => $endpoint_type,
				'callback' => $callback,
			);
		}
		return $this;
	}
public function add_endpoint( $endpoint = '', $endpoint_type = \EP_ROOT, $callback = array() ) {
		if ( ! isset( $this->rewrite_endpoint[ $endpoint ] ) ) {
			$this->rewrite_endpoint[ $endpoint ] = array(
				'type'     => $endpoint_type,
				'callback' => $callback,
			);
		}
		return $this;
	}
public function add_endpoint ( $ endpoint = '' , $ endpoint_type = \ EP_ROOT , $ callback = array ( ) ) { if ( ! isset ( $ this -> rewrite_endpoint [ $ endpoint ] ) ) { $ this -> rewrite_endpoint [ $ endpoint ] = array ( 'type' => $ endpoint_type , 'callback' => $ callback , ) ; } return $ this ; }
Adds Custom Endpoints To Endpoints Array.

@param string       $endpoint
@param int          $endpoint_type
@param array|string $callback

@example add_endpoint('hello/',EP_PAGES,'my_page_calback')
@example add_endpoint('world/',EP_PAGES,array(&$this,'page_callback'))

@return $this
Adds Custom Endpoints To Endpoints Array .