This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Update the excerpt length | |
| function new_excerpt_length($length) { | |
| return 100; // 100 Words | |
| } | |
| add_filter('excerpt_length', 'new_excerpt_length'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Override default theme option for the number | |
| // of products in a row on archive pages. | |
| function products_per_row() { | |
| return 3; // 3 products per row | |
| } | |
| add_filter('loop_shop_columns', 'products_per_row', 999); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| *** Order Status Options *** | |
| >> woocommerce_order_status_pending | |
| >> woocommerce_order_status_failed | |
| >> woocommerce_order_status_on-hold | |
| >> woocommerce_order_status_processing | |
| >> woocommerce_order_status_completed | |
| >> woocommerce_order_status_refunded | |
| >> woocommerce_order_status_cancelled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $to = 'email@example.com'; | |
| $subject = 'This is the email subject'; | |
| $message = 'Here is my email message.'; | |
| $headers = 'From: My Name <myname@example.com>' . "\r\n"; | |
| $headers .= "Reply-To: myname@example.com \r\n"; | |
| $attachments = ''; | |
| wp_mail( $to, $subject, $message, $headers, $attachments ); |
NewerOlder