$wishlist_endpoint => $wishlist_label ) + array_slice( $items, $logout_pos, null, true ); } return $items; } /** * Wishlist endpoint page title. * * @param string $title Default title. */ public function wishlist_endpoint_title( $title ): string { return __( 'Wishlist', 'woocommerce' ); } /** * Render the wishlist endpoint by dispatching to the * `woocommerce/wishlist` block. The block handles the empty state, * logged-out guard, asset enqueues, and item rendering. */ public function render_wishlist_endpoint(): void { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- the block string is a static literal; `do_blocks()` invokes the registered block's render callback, which is responsible for its own escaping. echo do_blocks( '' ); } }
Fatal error: Uncaught Automattic\WooCommerce\Internal\DependencyManagement\ContainerException: Attempt to get an instance of class 'Automattic\WooCommerce\Internal\ShopperLists\ShopperListsController', which doesn't exist. in /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php:105 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php(78): Automattic\WooCommerce\Internal\DependencyManagement\RuntimeContainer->get_core('Automattic\\WooC...', Array) #1 /htdocs/wp-content/plugins/woocommerce/src/Container.php(68): Automattic\WooCommerce\Internal\DependencyManagement\RuntimeContainer->get('Automattic\\WooC...') #2 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(410): Automattic\WooCommerce\Container->get('Automattic\\WooC...') #3 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(268): WooCommerce->init_hooks() #4 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(169): WooCommerce->__construct() #5 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(47): WooCommerce::instance() #6 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(62): WC() #7 /htdocs/wp-settings.php(560): include_once('/htdocs/wp-cont...') #8 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php on line 105