includes/cs-bootstrap-get-theme-version.php
/**
 * Get the theme version number from style.css
 *
 * Code from: required+ Foundation (http://themes.required.ch/)
 *
 * @package cs Bootstrap
 * @author Claudio Schwarz
 * @since  cs-bootstrap 0.1
 */
Get the theme version number from style.css
Code from: required+ Foundation

@package cs Bootstrap
@author Claudio Schwarz
@since  cs-bootstrap 0.1
Get the theme version number from style . css Code from : required + Foundation @package cs Bootstrap @author Claudio Schwarz @since cs - bootstrap 0 . 1
function cs_bootstrap_get_theme_version( $parent = true ) {
  $stylesheet = 'cs-bootstrap';
  if ( ! $parent ) {
    $stylesheet = get_stylesheet();
  }
  $current_theme = wp_get_theme( $stylesheet );
  return $current_theme->Version;
}
function cs_bootstrap_get_theme_version ( $ parent = true ) { $ stylesheet = 'cs-bootstrap' ; if ( ! $ parent ) { $ stylesheet = get_stylesheet ( ) ; } $ current_theme = wp_get_theme ( $ stylesheet ) ; return $ current_theme -> Version ; }
Get the theme version number from style.css
 Code from: required+ Foundation (http://themes.required.ch/)
Get the theme version number from style . css Code from : required + Foundation ( http : // themes . required . ch / )
// Name of the parent theme forder // Get the current theme with the new WP_Theme_API