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
JSON.stringify({ | |
"email": "[email protected]", | |
"password": "", | |
"first_name": "Emmit", | |
"last_name": "Pitfield", | |
"billing": { | |
"first_name": "Emmit", | |
"last_name": "Pitfield", | |
"address_1": "871 Nya Ranch", | |
"address_2": "", |
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 | |
/** | |
* Hotfix: ACF Block Validation not being checked. | |
* | |
* @version 1.0.0 | |
* | |
* @author Seriphyn <https://support.advancedcustomfields.com/forums/users/seriphyn/> | |
* @author Michael Bragg <https://michaelbragg.com> <https://vatu.dev> | |
* @copyright 2022 Curiosity Stream Inc. | |
*/ |
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 | |
/** | |
* Appeals: List All Appeals. | |
* | |
* <code> | |
* class(AllAppeals) { | |
* "data" => class(Appeals) { | |
* "christmas_appeal_2022" => class(Appeal) { | |
* "name" => :string "Christmas Appeal 2022", | |
* "slug" => :string "christmas-appeal-2022", |
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 | |
/** | |
* Plugin Name: WooCommerce Form Field Value Example | |
* Author: Michael Bragg <[email protected]> | |
* Version: 1.0.0 | |
*/ | |
function custom_checkout_field( $checkout ) { | |
echo '<section id="example-field">'; |
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
# Delete orders. | |
wp post delete $(wp post list --post_type='shop_order' --post_status=trash --format=ids --force) --force | |
wp post delete $(wp post list --post_type='shop_order' --post_status=wc-failed --format=ids --force) --force | |
wp post delete $(wp post list --post_type='shop_order' --post_status=wc-cancelled --format=ids --force) --force | |
wp post delete $(wp post list --post_type='shop_order' --post_status=wc-refunded --format=ids --force) --force | |
wp post delete $(wp post list --post_type='shop_order' --post_status=wc-processing --format=ids --force) --force | |
wp post delete $(wp post list --post_type='shop_order' --post_status=wc-completed --format=ids --force) --force | |
# Delete users. | |
wp user delete $(wp user list --role=subscriber --field=ID --format=ids) --reassign=1 |
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
#!/bin/bash | |
# `--portcelain` makes the comand return only the ID | |
# `$_` is a special bash command that uses the last comands output. | |
# Run two commands in sequential, as the second command uses the output of the first. | |
echo $(wp post create --post_type="page" --post_title="Home" --post_status="publish" --porcelain) | |
wp option update page_on_front $_ | |
# Run two commands in sequential, as the second cpage_for_posts ommand uses the output of the first. | |
echo $(wp post create --post_type="page" --post_title="Blog" --post_status="publish" --porcelain) |
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 | |
/** | |
* Pull content from Posts Page into home template. | |
* | |
* @param WP_Query $query WP Query. | |
* | |
* @return WP_Query | |
*/ | |
function ti_load_home_content( $query ) { |
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
{ | |
"http-basic": { | |
"composer.deliciousbrains.com": { | |
"username": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | |
"password": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
} | |
} | |
} |
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
{ | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "advanced-custom-fields/advanced-custom-fields-pro", | |
"version": "5.10.2", | |
"type": "wordpress-plugin", | |
"dist": { | |
"type": "zip", |
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 | |
/** | |
* Plugin Name: [TI] Maintenance Mode | |
* Plugin URI: https://www.thoughtsandideas.uk | |
* Description: | |
* Author: Michael Bragg <[email protected]> | |
* Author URI: https://www.thoughtsandideas.uk | |
* Version: 1.0.0 | |
* License: GPLv2 | |
*/ |
NewerOlder