deleted_theme, $stylesheet, $deleted

deleted_theme, $stylesheet, $deleted

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('deleted_theme, $stylesheet, $deleted') is found 1 times:

  • /wp-admin/includes/theme.php line 98
    	 *
    	 * @param string $stylesheet Stylesheet of the theme to delete.
    	 * @param bool   $deleted    Whether the theme deletion was successful.
    	 */
    	do_action( 'deleted_theme', $stylesheet, $deleted );
    
    	if ( ! $deleted ) {
    		return new WP_Error(
    			'could_not_remove_theme',
    			/* translators: %s: Theme name. */
    			sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet )