woocommerce product attributes
// Get Product ID $product->get_id(); // Get Product General Info $product->get_type(); $product->get_name(); $product->get_slug(); $product->get_date_created(); $product->ge...
// Get Product ID $product->get_id(); // Get Product General Info $product->get_type(); $product->get_name(); $product->get_slug(); $product->get_date_created(); $product->ge...
Sass Cheatsheet Watching sass –watch sass:css Comments // I will not show when compiled /* I will be shown when compiled */ Imports @import 'foo'; Variables $foo: #000 !default; $bar: baz q...
Basic True / False Declaration $is_admin = ($user['permissions'] == 'admin') ? true : false; Conditional Welcome Message echo 'Welcome '.($user['is_logged_in'] ? $user['first_name'] : 'Guest').'!...
Reload the current document :e Search and replace a selected chunk of text :'<,'>s/default/newtext/g go to closing html tag % (shift 5) select everything from the cursor up to line 35. v3...
Passive voice Passive voice This product can be bought in our webshop. Better alternative Customers can buy this product in our webshop. Passive voice The bags are checked by a security employee...
A simple Ghostscript command to merge two PDFs in a single file is shown below: gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf combine all the files gs -dNOPAUSE -sDE...
CTRL + A Move to the beginning of the line CTRL + E Move to the end of the line CTRL + [left arrow] Move one word backward (on some systems this is ALT + B) CTRL + [right arrow] Move one word forwa...
ignore file types by creating .agignore *.sql *.css *.po *.scss *.pot *.json wflogs/* *.min.js *.min.css *.css.min.map *.css.map tags *.xml .DS_Store *.full.min.js *.txt *.js.php just search one...
https://www.developerfiles.com/how-to-send-emails-from-localhost-mac-os-x-el-capitan/ sudo vi /etc/postfix/main.cf Yahoo SMTP relayhost=smtp.mail.yahoo.com:465 sasl password sudo vi /etc/postf...
enqueue styles in the footer, used for critical css function my_deregister_styles() { wp_deregister_style(‘parent’); wp_deregister_style( ‘divi-style’ ); wp_deregister_style( ‘tt-widget-css’ ); } ...