Supporting the Future of wp-cli

Matt Mullenweg, the founder of WordPress, just posted on WordPress.org that he will be supporting the future of wp-cli, a command-line interface. Matt Mullenweg states:

wp-cli is a command-line interface that is deployed and relied upon by almost every major user of WordPress out there.

The website of wp-cli.org, the code / GitHub, Twitter, and such are all coming in under the WordPress.org umbrella and there will be a CLI Make site with a P2 and all of the resources that used to be under wp-cli.org. There is already #cli on Slack and that will continue. (Will live at https://make.wordpress.org/cli.)

This will all happen the first part of January, and I’m looking to a full and exciting year for wp-cli.

Display Product Description in Categories

Add the following code snippet to your theme’s functions.php file if you want to display production descriptions in categories for WooCommerce.

// WooCommerce: Display product descriptions in categories
add_action( 'woocommerce_after_shop_loop_item_title', 'output_product_excerpt', 35 );
function output_product_excerpt() {
global $post;
echo $post->post_excerpt;
}

List of Awesome WordPress Resources

The following is a list of useful and helpful WordPress resources that are designed to help you create, build, grow and maintain your WordPress website. The vast majority of these WordPress resources are free but some maybe paid for.

General Info

Generic information and links to help you learn more about WordPress and get access to WordPress.

Websites

Downloads (.zip or .tar.gz)

Version control (stable)

These builds roll the latest commits.

  • SVN: svn checkout https://core.svn.wordpress.org/trunk/
  • Git: git clone git://core.git.wordpress.org/
  • GitHub: git clone https://github.com/WordPress/WordPress.git

Version control (develop)

These repositories contain source code, tools, and tests.

  • SVN: svn checkout https://develop.svn.wordpress.org/trunk/
  • Git: git clone git://develop.git.wordpress.org/
  • GitHub: git clone https://github.com/aaronjorbin/develop.wordpress.git

Remove Payment Method from Emails in WooCommerce

Add the following code snippet to your theme’s functions.php to remove the payment method from e-mails in WooCommerce.

function custom_woocommerce_get_order_item_totals( $totals ) {        
  unset( $totals['payment_method'] );         
  return $totals;       
}
add_filter( 'woocommerce_get_order_item_totals', 'custom_woocommerce_get_order_item_totals' );  

Hide Price Suffix When Product is Not Taxable in WooCommerce

Add the following to your theme’s functions.php file to hide the price suffix when the product is not taxable in WooCommerce.

function custom_woocommerce_get_price_suffix( $price_display_suffix, $product ) {         
  if ( ! $product->is_taxable() ) {         
    return '';        
  }       
  return $price_display_suffix;     
}
add_filter( 'woocommerce_get_price_suffix', 'custom_woocommerce_get_price_suffix', 10, 2 );