Pixelly
Client Panel
  • Home
  • Products
  • Services
  • Portfolio
  • Company
    • About
    • Contact
    • Terms of Service
    • Product Documents
Pixelly
  • Home
  • Products
  • Services
  • Portfolio
  • Company
    • About
    • Contact
    • Terms of Service
    • Product Documents

WordPress WHMCS Kit (WWK)

  • Getting Started
  • Usage Guide
  • Advanced Usage
  • Release Note

Ticket Campaigns for WHMCS

  • Getting Started
  • Usage Guide
  • Release Note

Ticket as Provisioner for WHMCS

  • Getting Started
  • Usage Guide
  • Release Note

MailerSend Mail Provider for WHMCS

  • Getting Started
  • Release Note

Quota Manager for WHMCS

  • Getting Started
  • Usage Guide
  • Release Note

Cashback Promotions for WHMCS

  • Getting Started
  • Usage Guide
  • Release Note
  • Home
  • Docs
  • WordPress WHMCS Kit (WWK)

Advanced Usage

Table of Contents
  • Advanced Shortcode Usage
    • WWK Service Price
    • WWK Domain Price
    • WWK Configurable Option Price
  • Customize pricing format

In this section, you will learn about advanced topics. These include WWK Hooks and how to use WWK to build a fantastic user interface with Elementor widgets like what you see in WWK Demo.

Advanced Shortcode Usage #

WordPress shortcodes are a simple yet powerful feature that runs a function and returns its value on the frontend. A Shortcode with  attributes can be like this: 

[sample-shortcode id="123" size="medium"]

WWK also has shortcodes that help you show your WHMCS everywhere, supporting shortcodes in WordPress. WWK has a shortcode builder that can quickly generate the desired shortcode. The WWK shortcodes and their attributes are explained on the rest of this page.

WWK Service Price #

This shortcode can show your WHMCS service prices.

Attribute DescriptionPossible Values
pidThe id of the product in WHMCS–
period
The period for which you want the price to be displayed.
msetupfee, qsetupfee, ssetupfee, asetupfee, bsetupfee, tsetupfee, monthly, quarterly, semiannually, annually, biennially, triennially
currencyThe id of desired currency in WHMCS–
disable_price_formatDisable price formattertrue, false

Example:

[wwk-service-price pid="1" period="msetupfee" currency="1" disable_price_format="false"]

WWK Domain Price #

This shortcode can show your WHMCS domain prices.

Attribute DescriptionPossible Values
extThe domain extension, for example, “.com”–
actionThe action for which you want the price to be displayed.register, renew, transfer
periodThe period for which you want the price to be displayed.1-10
group_idThe client group id for which you want the price to be displayed. Use 0 for the default group.–
currencyThe id of desired currency in WHMCS–
disable_price_formatDisable price formattertrue, false

Example:

[wwk-domain-price ext=".com" action="register" period="" group_id="0" currency="1" disable_price_format="true"]

WWK Configurable Option Price #

This shortcode can show your WHMCS service prices.

Attribute DescriptionPossible Values
cidThe id of the configurable option item in WHMCS, Unfortunately, this number is not visible in WHMCS. You can use shortcode builder to find the id.–
period
The period for which you want the price to be displayed.
msetupfee, qsetupfee, ssetupfee, asetupfee, bsetupfee, tsetupfee, monthly, quarterly, semiannually, annually, biennially, triennially
currencyThe id of desired currency in WHMCS–
disable_price_formatDisable price formattertrue, false

Example:

[wwk-config-price cid="1" period="quarterly" currency="1" disable_price_format="false"]

Customize pricing format #

WWK has some hooks on pricing that can be used to customize the price format. These hooks can be used by the WordPress Apply Filters method.

Hook Name
DescriptionArgs (in order)
ewb_priceThis hook applies to price before showing it when you disable price format

 
  1. Price (Decimal): the pure price
  2. Currency (Array): the details of the selected currency
ewb_formatted_amount
This hook applies to price after the price amount is formatted. This hook is used before adding prefix and suffix to the amount.
  1. Formatted amount (String): formatted price value without prefix and suffix.
  2. Price (Decimal): the pure price
  3. Currency (Array): the details of the selected currency
ewb_formatted_price
This hook applies to price after the price is formatted. This hook is used after adding prefix and suffix to the amount.
  1. Formatted price (String): formatted price with prefix and suffix.
  2. Formatted amount (String): formatted price value without prefix and suffix.
  3. Price (Decimal): the pure price
  4. Currency (Array): the details of the selected currency
Table of Contents
  • Advanced Shortcode Usage
    • WWK Service Price
    • WWK Domain Price
    • WWK Configurable Option Price
  • Customize pricing format
Logo
  • Home
  • Services
  • Portfolio
  • Documentation
  • About
  • Contact
© Copyright 2023 Pixlley
We use cookies from third party services for marketing activities to offer you a better experience.Accept and close