| @@ -218,20 +218,8 @@ | ||
| 218 | 218 | * |
| 219 | 219 | * @return bool |
| 220 | 220 | */ |
| 221 | 221 | protected function should_register_widget( $category, $import ) { |
| 222 | - // On the frontend the Elementor Widgets Manager can initialise at an | |
| 223 | - // unpredictable time — e.g. Elementor Pro's Theme Builder boots it on | |
| 224 | - // template_redirect — when WooCommerce query conditionals such as | |
| 225 | - // is_shop()/is_archive() are not yet reliable. Widget registration is | |
| 226 | - // cached for the whole request, so gating it by those conditionals can | |
| 227 | - // permanently skip ShopBuilder widgets, leaving the builder template to | |
| 228 | - // render empty container shells. Register unconditionally on the | |
| 229 | - // frontend; keep the per-category gate only for the editor widget panel. | |
| 230 | - if ( ! is_admin() ) { | |
| 231 | - return true; | |
| 232 | - } | |
| 233 | - | |
| 234 | 222 | switch ( $category ) { |
| 235 | 223 | case 'product': |
| 236 | 224 | return BuilderFns::is_product() || $import; |
| 237 | 225 | case 'shop': |