function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Show trailing zeros on prices in WooCommerce
// Show trailing zeros on prices, default is to hide it. add_filter( 'woocommerce_price_trim_zeros', 'wc_hide_trailing_zeros', 10, 1 ); function wc_hide_trailing_zeros( $trim ) { // set to false to show trailing zeros return false; }