Developers / Theme Authors

  1. Home
  2. Docs
  3. Developers / Theme Authors
  4. How it works

How it works

WHMpress looks for any possible template in the path /wp-content/themes/your-theme/whmpress/short-code-name/. If found an HTML in template is used to render the shortcode as per user selection. If user does not selected a template “default.html” is used. Starting with VC 4.6, WHMpress requires that default template for each shortcode must be named as “default.html. If you do not want to make your own template for a shortcode, simply delete its folder.

While rendering the shortcode, WHMpress will use html in selected template but will replace the placeholders (a place holder is enclosed in curly brackets like this {$place-holder}) with values from WHMCS.

A Sample template file for whmpress_pricing_table will look like this.









Was this article helpful to you? Yes 2 No 1