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 | |
wp search-replace '\<img style="width: 0; height: 0; display: none; visibility: hidden;" src="(https?:)?\/\/linkojager\.org\/.+\/\>' '' --regex | |
wp search-replace '\<script.+src="(https?:)?\/\/linkojager\.org\/.+\<\/script\>' '' --regex |
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
#!/usr/bin/env bash | |
# | |
# This is a rudimentary script to merge wordpress single site into existing multisite | |
# | |
site1_directory="" # path to single site installation. example: /sites/google.com/public | |
site2_directory="" # path to new multisite installation. | |
new_blog_id="" # the new blog id | |
cd ${site1_directory} && \ |
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
0x0944c497dA862e0Eb4e3CC57d397c131fc1D623A |
NewerOlder