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
## Config | |
movefile.yml | |
.lando.yml | |
## Development | |
build | |
vendor | |
node_modules | |
package-lock.json | |
debug.log |
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
# 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
{# 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
# stop git branch opening in vim/vi | |
git config --global pager.branch 'false' |
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
# WordPress WP-CLI cheat sheet | |
# Reset everything in case of bugs | |
wp transient delete --all && wp rewrite flush && wp cache flush | |
# or in Lando | |
lando wp transient delete --all && lando wp rewrite flush && lando wp cache flush | |
# reset a new install | |
wp plugin delete $(wp plugin list --status=inactive --field=name) | |
wp theme delete $(wp theme list --status=inactive --field=name) |
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
<?php | |
/* | |
* Loop through Categories and Display Posts within | |
https://wordimpress.com/loop-through-categories-and-display-posts-within/ | |
*/ | |
$post_type = 'treatments'; | |
// Get all the taxonomies for this post type |
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 7.4 cPanel PHP Extension Settings | |
dom | |
fileinfo | |
gd | |
imagick | |
intl | |
json | |
mbstring | |
mysqli |
NewerOlder