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
# Step 1 - Upload your export .wpress file to the ai1wm-backups folder. Copy the filename. | |
# Step 2 - Navigate to the Backups page of AI1WM. | |
# Step 3 - Open your browser console. Update the following and then paste it in. | |
var filename = 'FILENAME.wpress'; | |
var importer = new Ai1wm.Import(); | |
var storage = Ai1wm.Util.random(12); | |
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({name: 'storage', value: storage}).concat({name: 'archive', value: filename}); |
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
# the first path should be pointing to your theme or plugin | |
# the second path is the directory where your theme or plugin needs to go inside Lando (starts with /app/) | |
services: | |
appserver: | |
overrides: | |
volumes: | |
- ~/Sites/my-theme:/app/wp-content/themes/my-theme |
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
cd $FORGE_SITE_PATH | |
pwd | |
php artisan down || true | |
echo "git fetch" | |
git fetch origin | |
echo "git checkout" |
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
# Using Laravel (11 or any version) on cPanel/WHM when public_html default directory cannot be changed | |
# open terminal, go to the root of your folder where /public_html is visible, delete the existing public_html | |
rm -rf public_html | |
# create a directory call app where your app will go | |
mkdir app | |
# create symlink from public_html to app/public | |
ln -s /app/public public_html |
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
# Upload your .wpress file to ai1wm-backups and make a note of the name | |
# Go to the WP All-in-One Migration plugin > Backups | |
# Open the console in the browser | |
var filename = 'YOUR-FILE.wpress'; | |
var importer = new Ai1wm.Import(); | |
var storage = Ai1wm.Util.random(12); | |
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({name: 'storage', value: storage}).concat({name: 'archive', value: filename}); | |
importer.setParams(options); | |
importer.start(); |
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 |
NewerOlder