Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoacosta/c315da15b6f480665ef838cff25096bb to your computer and use it in GitHub Desktop.
Save fernandoacosta/c315da15b6f480665ef838cff25096bb to your computer and use it in GitHub Desktop.
Dias adicionais - Condicional para 1 dia útil | Versão 1.0.
add_filter( 'wc_adpp_product_message', 'custom_wc_adpp_product_message', 10, 2 );
function custom_wc_adpp_product_message( $message, $days ) {
if ( 1 == $days ) {
$message = str_replace( 'dias', 'dia', $message );
}
return $message;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment