This file contains hidden or 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 | |
| /** | |
| * Enable email-based 2FA by default. | |
| * | |
| * We configure MailHog to catch outbound mail on our local/staging | |
| * environments. To avoid unnecessary hassle, we have disabled our default | |
| * email-based 2FA on local/staging environments. | |
| * | |
| * @link https://link.from.pw/3P7cH9u | |
| * @author pjv |
This file contains hidden or 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 | |
| /** | |
| * Enable email-based 2FA by default. | |
| * | |
| * @author pjv | |
| * @link https://link.from.pw/3P7cH9u | |
| * | |
| * @param $providers | |
| * @param $user_id | |
| * @return mixed |
This file contains hidden or 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
| SELECT | |
| post_type, | |
| count(*) | |
| FROM | |
| wp_posts | |
| GROUP BY | |
| post_type | |
| HAVING | |
| count(*) | |
| ORDER BY |
This file contains hidden or 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
| #!/bin/bash | |
| # Save script, run chmod +x on it, then... | |
| # Usage: ./delete_products.sh [user_id] | |
| ARGS="$@" | |
| COUNT=$(wp wc product list --user=$1 --format=count) | |
| BATCHES=$(bc <<< "$COUNT/100+1") | |
| echo "Deleting $COUNT products in $BATCHES batches (via user ID $1)" |
This file contains hidden or 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
| <div class="case-studies"> | |
| <div class="case-studies__item case-studies__item bg-accent-light"> | |
| <a href="#" class="case-studies__link"> | |
| <img src="one.png" class="case-studies__image" alt=""> | |
| <h1 class="text-xxl">One</h1> | |
| </a> | |
| </div> | |
| <div class="case-studies__item"> | |
| <a href="#" class="case-studies__link"> | |
| <img src="two.png" class="case-studies__image" alt=""> |
This file contains hidden or 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
| .case-studies { | |
| &__item { | |
| &--featured { | |
| } | |
| } | |
| &__link { | |
| } | |
| &__image { |
This file contains hidden or 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 $upgrading = time(); |
This file contains hidden or 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
| #!/bin/bash | |
| # Save script, run chmod +x on it, then... | |
| # Usage: ./distribute_user.sh [username] [role] | |
| ARGS="$@" | |
| echo "Adding user $1 as $2 to all sites" | |
| SITES=$(wp site list --field=url --format=csv) | |
| for site in $SITES |
This file contains hidden or 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 | |
| /** | |
| * Get Google reviews by place ID. | |
| * | |
| * @param $google_place_id Google place ID. | |
| * | |
| * @return void | |
| */ | |
| function kanuka_get_google_reviews( $google_place_id ) { |
This file contains hidden or 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
| /* | |
| Theme Name: Kanuka Digital | |
| Theme URI: https://www.kanukadigital.com/ | |
| Author: Kanuka Digital | |
| Author URI: https://www.kanukadigital.com/ | |
| Description: Example child theme. | |
| Version: 1.0.0 | |
| Template: parent-theme | |
| */ |