Created
June 4, 2020 03:14
-
-
Save rajeshsingh520/00f33fbec9cdb89c893b7bb046ef6390 to your computer and use it in GitHub Desktop.
disable free shipping bar for specifi page using the page id
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 | |
| add_filter('pi_fsnw_control_filter', 'disableFreeShippingBarForPages'); | |
| function disableFreeShippingBarForPages($json){ | |
| $disable_for_page = array(124,125); // put in the page id for which you want to disable it | |
| if(is_page($disable_for_page)){ | |
| return false; | |
| } | |
| return $json; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment