[wp-hackers] any way to clean after theme when it gets deleted?

Andrew Nacin wp at andrewnacin.com
Fri Jul 30 14:38:48 UTC 2010

On Fri, Jul 30, 2010 at 10:32 AM, Davit Barbakadze <jayarjo at gmail.com>wrote:

> theme_mod functions? what do they do?

Rudimentary options storage for themes. Each theme's mods are stored in a
single DB option row in the form of mod_{$theme}.

Locations in core:
./wp-includes/theme.php:1270:function get_theme_mod($name, $default = false)
./wp-includes/theme.php:1289:function set_theme_mod($name, $value) {
./wp-includes/theme.php:1311:function remove_theme_mod( $name ) {
./wp-includes/theme.php:1333:function remove_theme_mods() {

Codex pages:

More information about the wp-hackers mailing list