You appear to be a bot. Output may be restricted
Description
Get the theme version given the theme name
Usage
$string = _bw_get_theme_version( $theme_name, $theme_object );
Parameters
- $theme_name
- ( string ) required –
- $theme_object
- ( object ) optional –
Returns
string version or 'Not installed'Source
File name: oik/libs/oik_themes.phpLines:
1 to 13 of 13
function _bw_get_theme_version( $theme_name, $theme_object=null ) { // $file = WP_THEME_DIR . '/'. $theme_name; $stylesheet = $theme_name; $theme_root = null; $theme_data = wp_get_theme( $stylesheet, $theme_root ); bw_trace2( $theme_data, "theme_data" ); if ( $theme_data->exists() ) { $version = $theme_data->Version; } else { $version = "Not installed"; } return( $version ); }View on GitHub View on Trac