Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( $current_theme->exists() && $current_theme->parent() ) { // if child theme is active
- $parent_theme = $current_theme->parent();
- if ( ! empty( $parent_theme ) ) $parent_version = $parent_theme->Version;
- echo $parent_version;
- } elseif ( ! empty( $current_theme ) ) { // if Bricks is active
- $current_version = $current_theme->Version;
- echo $current_version;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement