Select Page

All of these functions are in the BeRocket_force_sell class as static functions.

init ()

Function for initializing scripts.

admin_init ()

Function for initializing scripts and settings page in the admin panel.

options ()

Add option page to admin menu.

br_get_template_part( $name = ” )

Get template part (for templates like the slider).

  • $name – template name

Default templates are placed in plugins folder woocommerce-force-sell/templates.

To rewrite the template in your theme folder create folder with name woocommerce-force_sell and place new template with identical name in this folder.

return_linked_products( $display_force_sell = ” , $display_force_sell_linked = ” , $display_as_link = ” )

Get linked products list.

  • $display_force_sell – display products, that can be removed after add to cart
  • $display_force_sell_linked – display products, that can be removed with current product
  • $display_as_link – list of products will be linked to products, instead text only

return string or void. HTML code