fbpx
WooCommerce Booster Custom PHP

Description

With WooCommerce Booster Custom PHP module you can add any PHP code that will be executed on your site.

Please note that if you enable the module and enter non-valid PHP code here, your site will become unavailable. To fix this you will have to add `wcj_disable_custom_php` attribute to the URL (you must be logged as shop manager or admin (for this reason custom PHP code is not executed on wp-login.php page)). E.g.: /wp-admin/admin.php?page=wc-settings&tab=jetpack&wcj-cat=emails_and_misc&section=custom_php&wcj_disable_custom_php

PHP code must be set without the `<?php` tag. After you save module’s settings, new PHP file will be automatically created (and executed) in your uploads folder (in /wp-content/uploads/woocommerce_uploads/wcj_uploads/custom_php/booster.php).

Picture1 49 915x626 1

Accessible through:
  • WooCommerce > Settings > Booster > Emails & Misc. > Custom PHP for WooCommerce
Tested on WooCommerce 8.5.1 and WordPress 6.4.2