Skip to content

Instantly share code, notes, and snippets.

@flexseth
Last active April 30, 2020 19:44
Show Gist options
  • Save flexseth/480042f3ee82d1a8d4d893fbcd4fdbde to your computer and use it in GitHub Desktop.
Save flexseth/480042f3ee82d1a8d4d893fbcd4fdbde to your computer and use it in GitHub Desktop.
Change WooCommerce Store Notice (top of page)
<?php
/*
* Change WooCommerce store notice text
*
*/
function fp_replace_dismiss( $notice ){
return str_replace( 'Dismiss', 'X', $notice );
}
add_filter( 'woocommerce_demo_store','fp_replace_dismiss' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment