$wp_filesystem->
delete( WP_LANG_DIR . '/themes/' .
$stylesheet . '-' .
$translation . '.mo'
);
$json_translation_files =
glob( WP_LANG_DIR . '/themes/' .
$stylesheet . '-' .
$translation . '-*.json'
);
if ( $json_translation_files ) { array_map( array
( $wp_filesystem, 'delete'
),
$json_translation_files );
} } } // Remove the theme from allowed themes on the network.
if ( is_multisite() ) { WP_Theme::
network_disable_theme( $stylesheet );
} // Force refresh of theme update information.
delete_site_transient( 'update_themes'
);
return true;
}/**
* Gets the page templates available in this theme.
*
* @since 1.5.0
* @since 4.7.0 Added the `$post_type` parameter.
*
* @param WP_Post|null $post Optional. The post being edited, provided for context.
* @param string $post_type Optional. Post type to get the templates for. Default 'page'.
* @return string[] Array of template file names keyed by the template header name.
*/