1. Home
  2. WholesaleX
  3. Custom Code Snippet for WholesaleX User

Custom Code Snippet for WholesaleX User

Hide the License section & page

If you want to hide the license section and page, use the following code in your theme file editor. Paste the code in functions.php to hide the license section and page.

add_filter('wholesalex_show_license_page','__return_false');

Hide the White Label addon

Also, if you want to hide the WholesaleX White label addon after setting everything, use the following code in your theme file editor. Paste the code in functions.php to hide the license section and page.

add_filter('wholesalex_whitelabel_addon_remove','__return_true');

Disable Dynamic Rules in the Backend

If you want to allow the admin to disable the use of Dynamic Rules in the backend, use the following code in your theme file editor. Paste the code in functions.php to control whether Dynamic Rules should apply in the backend.

apply_filters( 'wholesalex_ignore_dynamic_price', true );

Was this article helpful to you? Yes No

How can we help?