ClassesBigCommerceContainerShortcodes

Shortcodes

Registers shortcodes for various storefront features.

This class handles:

  • Shortcodes for products, cart, checkout, login, registration, account, addresses, orders, etc.
  • Dependency injection for shortcode classes.
  • WordPress shortcode registration.
  • Full name: \BigCommerce\Container\Shortcodes
  • Parent class: Provider

Constants

ConstantVisibilityTypeValue
PRODUCTSpublicstring’shortcode.products’
CARTpublicstring’shortcode.cart’
CHECKOUTpublicstring’shortcode.checkout’
LOGINpublicstring’shortcode.login’
REGISTERpublicstring’shortcode.register’
ACCOUNTpublicstring’shortcode.account’
ADDRESSpublicstring’shortcode.address’
ORDERSpublicstring’shortcode.orders’
GIFT_FORMpublicstring’shortcode.gift_certificate.form’
GIFT_BALANCEpublicstring’shortcode.gift_certificate.balance’
PRODUCT_REVIEWSpublicstring’shortcode.products_reviews’
PRODUCT_COMPONENTSpublicstring’shortcode.products_components’
WISHLISTpublicstring’shortcode.wishlist’

Methods

register

Registers all shortcodes into the DI container and attaches WordPress hooks.

public register(\Pimple\Container $container): mixed

Services registered:

  • Shortcode classes like Products, Cart, Checkout, etc.

Hook registered:

  • after_setup_theme: Registers WordPress shortcodes.

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerThe DI container for registering services.


Automatically generated on 2025-01-21