First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
add to wp-config: | |
Config::define('WP_ALLOW_MULTISITE', true); | |
deploy site | |
go to tools > network setup, select subdomains | |
save , etc. | |
add to wp-config | |
Config::define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); | |
Config::define('MULTISITE', true); | |
Config::define('SUBDOMAIN_INSTALL', true); | |
Config::define('PATH_CURRENT_SITE', '/wp/'); |
<?php | |
function my_rating( $atts ) { | |
$rating = shortcode_atts( array( | |
'stars' => '', | |
'half' => 'false', | |
), $atts ); | |
$star = esc_attr($rating['stars']); | |
$stars = str_repeat('<i class="fas fa-fw fa-star"></i>', $star); | |
$half = esc_attr($rating['half']); |
; Wordfence WAF | |
auto_prepend_file = ‘/srv/www/example.com/current/config/wordfence-waf.php’ | |
; END Wordfence WAF |
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
<?php | |
/** | |
* Save Work ID | |
* | |
* Save work ID on the fly when adding new post. | |
* | |
* @param string $post_id Post ID. | |
* | |
* @return array $_POST Post Data. |
<?php | |
/** | |
* Event Tickets Plus - Add other WooCommerce Product to Cart when WooCommerce Ticket is added to cart | |
* | |
* @link https://wordpress.org/plugins/woocommerce-product-dependencies/ May be a better and easier solution !!! !!! !!! (But I haven't tried it.) | |
* | |
* !!! Before using, edit the variables in this function according to your needs!!! | |
* Could maybe also do the inverse (if ticket product is removed from cart, also remove the chained product). | |
* | |
* From https://gist.github.com/cliffordp/30481ca323012e298418095476d49337 |
/.composer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer
--rules=@PSR2 --verbose fix $FileDir$/$FileName$
. Note that previous verions of PHP-CS-Fixer used --levels
instead of --rules
.$ProjectFileDir$
Click OK and Apply. Now we'll set up a shortcut.
ctrl + cmd + ]
:// XL screen | |
@screen-xl: 1600px; | |
@screen-xl-min: @screen-xl; | |
@screen-xl-hughdesktop: @screen-xl-min; | |
// So media queries don't overlap when required, provide a maximum | |
@screen-lg-max: (@screen-xl-min - 1); | |
//Container sizes | |
// Large screen / wide desktop |
cat ~/.ssh/id_rsa.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys" |