remove_theme_mods() – Removes theme modifications option for current theme.

You appear to be a bot. Output may be restricted

Description

Removes theme modifications option for the active theme.

Usage

remove_theme_mods();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/theme.php
Lines:

1 to 11 of 11
function remove_theme_mods() {
  delete_option( 'theme_mods_' . get_option( 'stylesheet' ) );

  // Old style.
  $theme_name = get_option( 'current_theme' );
  if ( false === $theme_name ) {
    $theme_name = wp_get_theme()->get( 'Name' );
  }

  delete_option( 'mods_' . $theme_name );
}
 

 View on GitHub View on Trac