Skip to content

Instantly share code, notes, and snippets.

@johnleblanc
johnleblanc / fix-nextgen-lightbox-path.php
Last active August 29, 2015 14:01 — forked from deltafactory/fix-nextgen-lightbox-path.php
Update NextGEN Gallery 2.0.53 Lightbox Paths (CSS, JS and Images) Find lightbox_library post_type within WP Posts table
<?php
/*
INSTRUCTIONS:
Use at your own risk. Backup your database before continuing.
1. Copy code to a file in the root of your website.
2. Change YOUR_SITE_ROOT to a value that makes sense.
3. Execute by visiting the page. Verify before/after results.
4. Change MAKE_CHANGES_TO_SITE to true and execute it again.