bitempl

Plugin Actions and Filters

Est. reading time: < 1 minute

WordPress Actions

  • btmp-wc-save-share-cart/share-popup/start – fires before starting any content inside share cart popup.
  • btmp-wc-save-share-cart/share-popup/after-title – fires after Share cart title inside share cart popup.
  • btmp-wc-save-share-cart/share-popup/after-social – fires after allowed social networks list inside share cart popup.
  • btmp-wc-save-share-cart/share-popup/end – fires after all content inside share cart popup.
  • btmp-wc-save-share-cart/save-popup/start – fires before starting any content inside save cart popup.
  • btmp-wc-save-share-cart/save-popup/after-title – fires after Save cart title inside save cart popup.
  • btmp-wc-save-share-cart/save-popup/end – fires after all content inside save cart popup.

WordPress Filters

  • btmp-wc-save-share-cart/settings/localized-data. Accepted arguments: $settings. Allows to change JS data added to Settings page. May be used for example to add/remove choices to Buttons position, Saved for later position options, etc.
  • btmp-wc-save-share-cart/settings/get. Accepted arguments: $value, $setting, $settings_manager. Allow to programmatically change plugin setting value.
  • btmp-wc-save-share-cart/saved-cart/date-format. Accepted arguments: $date_format_string. Allows to change format of the date output in the saved carts table.
  • btmp-wc-save-share-cart/saved-carts/carts-list-title-format. Accepted arguments: $title_format. HTML format for title of the saved carts tab on My Account page.
  • btmp-wc-save-share-cart/share-cart/query-var. Accepted arguments: $query_var. Query variable key for shared cart ID. By default btmp_cart_id.
  • btmp-wc-save-share-cart/share-cart/localized-data. Accepted arguments: $data. JS data for share cart popup.
  • btmp-wc-save-share-cart/social-providers/list. Accepted arguments: $social_providers. Allows to change list of allowed social networks to share the cart.
  • btmp-wc-save-share-cart/social-providers/share-list. Accepted arguments: $share_list. Allows to filter actual list of social networks used to be inside Share Cart popup.
  • btmp-wc-save-share-cart/save-products/cart/delete-link-format. Accepted arguments: $format. Allows to change HTML format of remove from saved products link.
  • btmp-wc-save-share-cart/save-products/products-list-title-format. Accepted arguments: $format. Allows to change HTML format of saved products section title.
  • btmp-wc-save-share-cart/save-products/cart/updated-products-response. Accepted arguments: $response. Allows to filter response of AJAX request which returns information about saved for later products.
  • btmp-wc-save-share-cart/save-products/cart/add-link-format. Accepted arguments: $format. Allow to change HTML format of Save for later link.