Widgets::register( $container )

Summary

No summary available.

Source

File: src/BigCommerce/Container/Widgets.php

	public function register( Container $container ) {
		$container[ self::WIDGET_LIST ] = function ( Container $container ) {
			return [
				Product_Category_Widget::class,
			];
		};

		add_action( 'widgets_init', $this->create_callback( 'widgets_init', function () use ( $container ) {
			foreach ( $container[ self::WIDGET_LIST ] as $class ) {
				register_widget( $class );
			}
		} ), 10, 0 );
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.