This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Hide shipping rates when free shipping is available. | |
| * Updated to support WooCommerce 2.6 Shipping Zones. | |
| * | |
| * @param array $rates Array of rates found for the package. | |
| * @return array | |
| * | |
| * removes only LOCAL PICKUP if FREE SHIPPING is available |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /***************************** | |
| * | |
| * A very crude way to customize new user registration mail for Frominator | |
| * use as MU plugin | |
| * | |
| * customize message in $new_message variable | |
| * customize subject in $mail_args[ 'subject' ] = 'New subject"; line | |
| * | |
| * tested with Forminator 1.15.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /************************************** | |
| * | |
| * Forminator - prefill text field with post title | |
| * | |
| * | |
| * by Adam/WPMU | |
| * | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /************************************ | |
| * | |
| * Forminator - compare two e-mail fields to confirm; if different, issue error | |
| * | |
| * by adamcz/WPMU DEV | |
| * Tested with Forminator 1.15.12 | |
| * | |
| * Use as MU plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /************************* | |
| * | |
| * Forminator - prevent cut/copy/paste in fields | |
| * | |
| * adjust fields CSS IDs in code if needed | |
| * | |
| * by adamcz/WPMU DEV | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * MU PLUGIN | |
| * for WPMU DEV Hosted sites with Avada (and Fusion Cache in general) | |
| * | |
| * fixes issue: posts that are added to site do not show up on homepage until all caches are cleared | |
| * | |
| * add this as MU plugin and make sure that Page Cache is active in HB and set to | |
| * clear full cache when post/page is updated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /************************************ | |
| * | |
| * Forminator - disallow some e-mails, issue error | |
| * | |
| * by adamcz/WPMU DEV | |
| * Tested with Forminator 1.15.14 | |
| * | |
| * Use as MU plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * MU PLUGIN | |
| * | |
| * hides forminator form until set date | |
| * | |
| * use as MU plugin | |
| * tested with Forminator 1.17.0 | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Forminator - send to eternal url like HTML form | |
| This basically "emulates" any standard 3rd-party HTML form with Forminator | |
| Example use - whenever you need to put standard HTML form on WP site but want to use/integrate Formiantor instead, | |
| created for Capsule CRM initially (their "webform integration") but can be used practically with enything else | |
| Tested with Forminator 1.17.1 - 1.24.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Use as MU plugin | |
| Put this string in "Additional CSS Classes" field | |
| in "Styling" tab of settings | |
| of the "radio" field that should cause "auto next page": |