Host: 127.0.0.1
Username: root
Password:
Database:
Post: (get from lando info external port)
| add_action( 'woocommerce_order_status_completed', 'callback_function_name' ); | |
| global $wp_filter; // test is register action name with callback function | |
| var_dump($wp_filter); | |
| exit; |
Host: 127.0.0.1
Username: root
Password:
Database:
Post: (get from lando info external port)
| function memoize(fn) { | |
| return function () { | |
| var args = Array.prototype.slice.call(arguments) | |
| fn.cache = fn.cache || {}; | |
| return fn.cache[args] ? fn.cache[args] : (fn.cache[args] = fn.apply(this,args)) | |
| } | |
| } |
| //-------------------------------------------------------------- | |
| // EXACTLY | |
| // | |
| // Use this mixin to apply styles when there are exactly a | |
| // given number of elements. | |
| // | |
| // EXAMPLE: | |
| // @include exactly(2, '.menu-item') { | |
| // color: blue; | |
| // } |
sudo lsof -n -i :80 | grep LISTEN
| <?php | |
| /* | |
| * dl-file.php | |
| * | |
| * Protect uploaded files with login. | |
| * | |
| * @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
| * | |
| * @author hakre <http://hakre.wordpress.com/> | |
| * @license GPL-3.0+ |
| "files.associations": { | |
| "*.php": "php", | |
| "*.blade.php" : "blade" | |
| } |
| @for $i from 1 through 8 { | |
| $width: percentage(1 / $i) | |
| .col-#{$i} { | |
| width: $width; | |
| } | |
| } |
| ( function( wp ) { | |
| var el = wp.element.createElement; | |
| var __ = wp.i18n.__; | |
| wp.blocks.registerBlockType( 'learn-gutenberg/ex2-vue', { | |
| title: __( 'Learn Gutenberg Example 2: VueJS', 'learn-gutenberg' ), | |
| category: 'widgets', | |
| supportHTML: false, | |
| attributes: { | |
| who: { |