This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| <!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site --> | |
| <script> | |
| !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
| n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; | |
| n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; | |
| t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, | |
| document,'script','//connect.facebook.net/en_US/fbevents.js'); | |
| fbq('init', '{{facebook pixel}}'); | |
| fbq('track', 'PageView'); | |
| </script> |
| // For Yoast SEO Plugin Version: 14.1+ add to your Wordpress Theme's functions.php... | |
| // Remove All Yoast HTML Comments | |
| // https://gist.github.com/paulcollett/4c81c4f6eb85334ba076 | |
| // Credit @devendrabhandari (https://gist.github.com/paulcollett/4c81c4f6eb85334ba076#gistcomment-3303423) | |
| add_filter( 'wpseo_debug_markers', '__return_false' ); | |
| // For Yoast SEO Plugin Version: < 14.1 add to your Wordpress Theme's functions.php... |
| <?php | |
| /** | |
| * Apply a different tax rate based on the user role. | |
| */ | |
| function wc_diff_rate_for_user( $tax_class, $product ) { | |
| if ( is_user_logged_in() && current_user_can( 'administrator' ) ) { | |
| $tax_class = 'Zero Rate'; | |
| } | |
| return $tax_class; |
| <snippet> | |
| <!-- put this file in /packages/User/<Folder Name>/console_log.sublime-snippet then restart your Sublime Text 2 --> | |
| <content><![CDATA[console.log($1);$0]]></content> | |
| <tabTrigger>conl</tabTrigger> | |
| <scope>text.html,source.js</scope> | |
| <description>console.log()</description> | |
| </snippet> | |
| <snippet> | |
| <!-- put this in another file /packages/User/<Folder Name>/console_dir.sublime-snippet then restart your Sublime Text 2 --> |
| # Attempt to load files from production if they're not in our local version (replace {SITE URL} with your production server) | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule (.*) http://{SITE URL}/wp-content/uploads/$1 | |
| </IfModule> |