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
| image: node:latest | |
| cache: | |
| paths: | |
| - node_modules/ | |
| before_script: | |
| - npm install | |
| stages: |
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
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| <?php | |
| function my_acf_admin_footer() { | |
| ?> | |
| <script> | |
| ( function( $) { | |
| acf.add_filter( 'wysiwyg_tinymce_settings', function( mceInit, id ) { | |
| if ( id === 'special-wysiwyg-field' ) { | |
| mceInit.body_class += ' magical-field-class'; | |
| } | |
| return mceInit; |
| <?php | |
| /*-----------------------------------------------------------------------------------*/ | |
| /* Conditional Logic to Detect Various Event Related Views/Pages | |
| /*-----------------------------------------------------------------------------------*/ | |
| if( tribe_is_month() && !is_tax() ) { // Month View Page | |
| echo 'were on the month view page'; | |
| } elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |
| <?php | |
| $content_types = node_get_types(); | |
| $header = array( | |
| 'Source content type', | |
| 'Source content type machine name', | |
| 'Source field name', | |
| 'Source field machine name', | |
| ); | |
| $sql_field_type_collector = " |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| <?php | |
| function sass_darken($hex, $percent) { | |
| preg_match('/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i', $hex, $primary_colors); | |
| str_replace('%', '', $percent); | |
| $color = "#"; | |
| for($i = 1; $i <= 3; $i++) { | |
| $primary_colors[$i] = hexdec($primary_colors[$i]); | |
| $primary_colors[$i] = round($primary_colors[$i] * (100-($percent*2))/100); | |
| $color .= str_pad(dechex($primary_colors[$i]), 2, '0', STR_PAD_LEFT); | |
| } |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso