Skip to content

Instantly share code, notes, and snippets.

@spraveenitpro
Last active August 29, 2015 14:23
Show Gist options
  • Save spraveenitpro/adc315db2e1a1af16e00 to your computer and use it in GitHub Desktop.
Save spraveenitpro/adc315db2e1a1af16e00 to your computer and use it in GitHub Desktop.
Change the number of Wishlists being displayed when using the [wc_wishlists_search] shortcode
// Change the number of Wishlists being displayed
add_filter( 'woocommerce_wishlist_posts_per_page', 'change_wishlist_number', 10, 1 );
function change_wishlist_number( $number ){
return 14; //use required number here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment