Skip to content

Instantly share code, notes, and snippets.

// Just add those code in your functions.php file
// Function to change email address
function wpb_sender_email( $original_email_address ) {
return '[email protected]';
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return 'Tim Smith';
@mmh4560
mmh4560 / css
Created March 16, 2019 20:22
Edit The Input Chcekbox Css
input[type="checkbox"] {
transform: scale(2);
-ms-transform: scale(2);
-webkit-transform: scale(2);
margin-top: 8px;
}
// Woocommerce Show All products on Shop page
/**
* Change number of products that are displayed per page (shop page)
*/
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
function new_loop_shop_per_page( $cols ) {
// $cols contains the current number of products per page based on the value stored on Options -> Reading
// Return the number of products you wanna show per page.