Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save niloyBrightVessel/ad6fa3ce172a7cfefc846de7afca5103 to your computer and use it in GitHub Desktop.
Save niloyBrightVessel/ad6fa3ce172a7cfefc846de7afca5103 to your computer and use it in GitHub Desktop.
Add html wrapper Preorder notice
add_filter('preorder_avaiable_date_text', 'bpCustomMessage',10);
add_filter('preorder_avaiable_date_text_loop', 'bpCustomMessage',10);
add_filter('preorder_avaiable_date_text_cart', 'bpCustomMessage',10);
function bpCustomMessage($text){
$data = $text;
return '<div class="preorder-date-wrapper">'.$data.'</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment