routes; } if ( isset( $this->routes[ $route_path ] ) ) { return $this->routes[ $route_path ]; } } public function register( Route_Interface $instance ) { $this->routes[ $instance::get_name() ] = $instance; } public function _rest_init() { new Settings_Get(); new Settings_Post(); new Settings_Delete(); new Libraries_Get(); new Navmenu_Get(); } public static function instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } }