Photo by Greg Rakozy on Unsplash
//Open external links in a new tab
jQuery('a').not('[href*="mailto:"]').each(function () {
    var isInternalLink = new RegExp('/' + window.location.host + '/');
    if (!isInternalLink.test(this.href)) {
        jQuery(this).attr('target', '_blank');
    }
});

 

 

Photo by Moritz Mentges on Unsplash

UPDATE wp_options SET option_value = replace(option_value, ‘old string’, ‘new string’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;

UPDATE wp_posts SET guid = replace(guid, ‘old string’,’new string’);

UPDATE wp_posts SET post_content = replace(post_content, ‘old string’, ‘new string’);

UPDATE wp_postmeta SET meta_value = replace(meta_value,’old string’,’new string’);

(more…)