Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 512 Bytes

readme.md

File metadata and controls

19 lines (12 loc) · 512 Bytes

WordPress database prefixer

Simple utility class to rename a site's database prefix. This is a modified copy of https://github.com/iandunn/wp-cli-rename-db-prefix so that it is not restricted to WP CLI usage only.

Please note this is not compatible with a multisite setup.

Install

composer require pressmodo/database-prefixer

Usage

use Pressmodo\DB\DatabasePrefixer;

$run = ( new DatabasePrefixer( $newPrefix ) )->init();