protected function register_rewrite_endpoints() {
		if ( ! empty( $this->rewrite_endpoint ) ) {
			foreach ( $this->rewrite_endpoint as $slug => $arr ) {
				\add_rewrite_endpoint( $slug, $arr['type'] );
			}
		}
	}