This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Log; | |
class Component extends Model { | |
Log::info(print_r($variable, true)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// register the dots background block. | |
acf_register_block_type( | |
array( | |
'name' => 'section-dots', | |
'title' => 'Section - Dots', | |
'description' => 'A full width section similar to group block to allow for dots background image.', | |
'render_template' => get_template_directory() . '/theme-parts/blocks/section-dots.php', | |
'enqueue_style' => get_template_directory() . '/theme-parts/blocks/section-dots.css', | |
'mode' => 'preview', | |
'icon' => 'format-aside', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# display the logs of a container | |
docker logs | |
# continue showing log updates | |
docker logs -f mycontainer | |
# lists the volumes | |
docker volume ls | |
# stops all running containers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Hides the tick on WooCommerce Tax Toggle */ | |
#wcvat-toggle.on::before { | |
content: ""; | |
background-image: url(); | |
padding-left: 0; | |
background-size: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"AllowedHeaders": [ | |
"*" | |
], | |
"AllowedMethods": [ | |
"GET", | |
"PUT", | |
"POST", | |
"HEAD", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show php version i.e. 7.3.8 | |
php -v | |
# update brew to latest | |
brew update | |
# to show all php versions available i.e. php@7.4 | |
brew search php | |
# install it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// color palette. | |
$palette: ( | |
primary: ( | |
400: #1bb1e4, | |
700: #4d84c8, | |
900: #7ea0c3, | |
), | |
secondary: ( | |
400: #a66aae, | |
700: #5f61a9, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS Snippets for Tax Toggle for WooCommerce. Add these to your CSS file or to your theme via Customizer. */ | |
/* Move down on left */ | |
#wcvat-toggle { | |
top: 90%; | |
} | |
/* Move to right side of screen */ | |
#wcvat-toggle { | |
left: unset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# If images not found on development site, load from production | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp-content/uploads/[^/]+/.+\.(jpe?g|jpg|png|gif)$ https://production.com/$0 [R=302,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // don't copy this opening PHP tag if you are pasting in to functions.php | |
/** | |
* Change text strings for WooCommerce Tax Toggle | |
* | |
* Translate the text used in Tax Toggle plugin. | |
* Copy the code below to your theme functions.php file. | |
* | |
* @param string $translated_text Translated text. | |
* @param string $text Text to translate. |