Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Php scripts to clean up wordpress multisite installations
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.mkd
ununsed_themes.php

README.mkd

unused_themes.php

Description: Gets the unused themes for a wordpress multisite installation. Can be modified to spit out the themes that are used by each site.

Author: Ammar Khaku

Usage instructions: create a file 'credentials.php' and define the following variables:

$DBname = ""; // The name of the wordpress database

$DBuname = ""; // The name of the wordpress database user

$DBpass = ""; // The password for the wordpress database user

$DBhost = ""; // The database host, usually localhost

$WPthemedir = ""; The absolute path of the wp themes, eg: /var/www/wp-content/themes


run chmod u+x unused_themes.php
run ./unused_themes.php
The script will output the names of the themes that are not being used.

Something went wrong with that request. Please try again.