- XAMPP for Windows: https://www.apachefriends.org/download.html
- Download Xdebug for:
| function mysite_pending($order_id) { | |
| error_log("$order_id set to PENDING", 0); | |
| } | |
| function mysite_failed($order_id) { | |
| error_log("$order_id set to FAILED", 0); | |
| } | |
| function mysite_hold($order_id) { | |
| error_log("$order_id set to ON HOLD", 0); | |
| } | |
| function mysite_processing($order_id) { |
| add_filter( 'woocommerce_checkout_fields', 'webendev_woocommerce_checkout_fields' ); | |
| /** | |
| * Change Order Notes Placeholder Text - WooCommerce | |
| * | |
| */ | |
| function webendev_woocommerce_checkout_fields( $fields ) { | |
| $fields['order']['order_comments']['placeholder'] = 'Your custom placeholder'; | |
| return $fields; | |
| } |
| <?php | |
| /** | |
| * Tab Title filters do not work with WooCommerce 1.6.5.1 or lower | |
| * Please download this zip file http://cl.ly/2Y3S3D3M3C23 , extract the 3 files and copy them to : | |
| * wp-content/themes/YOUR_THEME/woocommerce/single-product/tabs/ | |
| **/ | |
| add_filter ( 'woocommerce_product_description_tab_title', 'custom_product_description_tab_title' ) ; | |
| function custom_product_description_tab_title() { |
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers | |
| Africa/Asmara | |
| Africa/Asmera | |
| Africa/Bamako | |
| Africa/Bangui | |
| Africa/Banjul | |
| Africa/Bissau |
| <?php | |
| /* | |
| * Set the following constants in wp-config.php | |
| * These should be added somewhere BEFORE the | |
| * constant ABSPATH is defined. | |
| */ | |
| define( 'SMTP_USER', '[email protected]' ); // Username to use for SMTP authentication | |
| define( 'SMTP_PASS', 'smtp password' ); // Password to use for SMTP authentication |
Getting started:
Related tutorials:
| // Reorder Checkout Fields | |
| add_filter('woocommerce_checkout_fields','reorder_woo_fields'); | |
| function reorder_woo_fields($fields) { | |
| $fields2['billing']['billing_email'] = $fields['billing']['billing_email']; | |
| $fields2['billing']['billing_first_name'] = $fields['billing']['billing_first_name']; | |
| $fields2['billing']['billing_last_name'] = $fields['billing']['billing_last_name']; | |
| $fields2['billing']['billing_country'] = $fields['billing']['billing_country']; | |
| $fields2['billing']['billing_address_1'] = $fields['billing']['billing_address_1']; | |
| $fields2['billing']['billing_address_2'] = $fields['billing']['billing_address_2']; |
| <!doctype> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <title>Google Maps - pin cities</title> | |
| <style type="text/css"> | |
| html, body { height: 100%; margin: 0; padding: 0; } | |
| #map_canvas { height: 100%; } | |
| </style> |
| <span> | |
| <select name="month"> | |
| <option value="January">January</option> | |
| <option value="February">February</option> | |
| <option value="March">March</option> | |
| <option value="April">April</option> | |
| <option value="May">May</option> | |
| <option value="June">June</option> | |
| <option value="July">July</option> | |
| <option value="August">August</option> |