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 ); |
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
| // 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
| //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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- Document Settings --> | |
| <meta charset="utf-8" > | |
| <!-- Responsive Settings --> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=1.0, maximum-scale=2.0"> | |
| <!-- SEO Settings --> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Kitchen Sink</title> | |
| </head> | |
| <body> | |
| <section id="main"> |
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
| // Creating the widget | |
| class wisecrab_login_widget extends WP_Widget { | |
| function __construct() { | |
| parent::__construct( | |
| // Base ID of your widget | |
| 'wisecrab_login_widget', | |
| // Widget name will appear in UI | |
| __('Log In', 'wisecrab_login_widget_domain'), |
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
| /************************************************** | |
| >> Grid << | |
| **************************************************/ | |
| .row { | |
| display: block; | |
| box-sizing: border-box; | |
| } | |
| .row:after { | |
| content: ""; | |
| display: block; |
OlderNewer