Created
November 26, 2020 08:27
-
-
Save niloyBrightVessel/c546541e76bf9fa43da6c4d17f9dca97 to your computer and use it in GitHub Desktop.
Override Prerorder product notice on cart page
This file contains 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
add_filter('preorder_avaiable_date_text_cart','bp_override_preorder_cart_notice',10,2); | |
function bp_override_preorder_cart_notice($notice,$diff){ | |
$notice = '<br/><small style="color:green"> '.sprintf(__("Note: this item will be available for shipping in %s days</small>",'preorders'),$diff).'</small>'; | |
return $notice; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment