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
# from https://www.thetwopercent.co.uk/changing-upload-limit-for-wp-aio-migration/ | |
php_value upload_max_filesize 512M | |
php_value post_max_size 512M | |
php_value max_execution_time 300 | |
php_value max_input_time 300 |
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
// Disable Theme and Plugin Editor | |
define('DISALLOW_FILE_EDIT', true); | |
// Stop new themes being installed automatically i.e. twentytwentyfour | |
define('CORE_UPGRADE_SKIP_NEW_BUNDLED', true); | |
// Disable core, plugins and theme updates (only update via version control) | |
define('DISALLOW_FILE_MODS', 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
https://github.com/Kyon147/laravel-shopify | |
Last Release - 1st April 2024 | |
Designed to create a public facing app | |
https://github.com/Shopify/shopify-api-php | |
v5.3.0 - Released Jan 11 2024 | |
Not a Laravel Package, just basic PHP starter | |
https://github.com/phpclassic/php-shopify | |
Last Release - Sept 25, 2023 |
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
{# Create a variable to collect all posts #} | |
{% set all_posts = [] %} | |
{# Loop through all posts selected in the blog field #} | |
{% for item in module.blogs.selected %} | |
{# Get posts for each blog #} | |
{% set posts = blog_recent_posts(item, 200) %} | |
{# Append each post to the all_posts array #} |
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
# this looks for an option called core_updater.lock and deletes it. | |
wp option delete core_updater.lock | |
# then update... | |
wp core update |
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
# Install Importer | |
wp plugin install wordpress-importer --activate | |
# download the sample data | |
wget https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/plugins/woocommerce/sample-data/sample_products.xml | |
# import the data | |
wp import sample_products.xml --authors=create |
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
This is a modification for Tax Toggle for WooCommerce (see https://www.taxtoggle.com?ref=gist) | |
It creates a iOS-style "toggle" button which can be inserted in your theme showing status of the tax toggle - either inclusive or exclusive or any other wording you wish to use. | |
How to use: | |
1. Go to WP Admin > WooCommerce > Settings > Tax and turn off the floating tax toggle. | |
2. Add the custom CSS to your theme. | |
3. Add the custom Tax Toggle to your theme (i.e. in the header.php file). You can change the wording (Excludes Tax / Includes Tax) to anything you want to describe the on/off tax function. | |
4. You can customise the toggle formatting with the simple CSS variables specified. |
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
#!/usr/bin/env bash | |
set -e | |
# Activate WP Importer plugin. | |
wp plugin install wordpress-importer --activate | |
# Don't know why, but failed importing directly. | |
wget https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml | |
# Import | |
wp import themeunittestdata.wordpress.xml --authors=create |
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
{ | |
"$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/17c1465fa82a325b5e99a8a010e63b72c5c612e9/schemas/json/.wp-env.json", | |
"core": null, | |
"plugins": [ | |
"https://github.com/WPTT/theme-sniffer/releases/download/1.1.2/theme-sniffer.zip", | |
"https://downloads.wordpress.org/plugin/query-monitor.zip", | |
"https://downloads.wordpress.org/plugin/log-deprecated-notices.zip", | |
"https://downloads.wordpress.org/plugin/theme-check.zip" | |
], | |
"themes": [ |
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
#!/usr/bin/env bash | |
# Place this file in your Docker apps vendor/bin. | |
# Use VS Code plugin - PHP Sniffer & Beautifier by Samuel Hilson | |
# Set executablePath for PHPCS to be ./vendor/bin/myphpcs | |
# If you also want PHPCBF, duplicate this file, change any references of phpcs to phpcbf and add the CBF executable path. | |
set -eo pipefail | |
main_exec() { |
NewerOlder