In the WP_Theme class, the get
method gives you a sanitized theme header. You cannot use it to extract a property. Actually you don’t need to, as you can access it directly like this:
// get the parent object
$parent = wp_get_theme()->parent();
// get parent version
if (!empty($parent)) $parent_version = $parent->Version;
Related Posts:
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Why is the Child Theme Stylesheet Not Loading?
- Get Parent Theme Author Name
- How to use parent theme’s enqueue methods
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Versioning @import of parent theme’s style.css
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Theme Customization API and child themes
- Give priority to child theme stylesheet
- Do all files in child theme override the parent?
- Do I need to update the child theme too after updating the parent?
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Use admin options from parent theme in child theme
- How to dequeue / deregister parent theme style
- How to “remove” file from parent theme
- Enqueue styles properly in a child theme and stylesheets location
- Style.css in child theme is loaded before Bootstrap
- How are updates to the style.css file in child theme recognized?
- How do I set up a child-theme without using @import
- Dequeue only stylesheets but not inline style added using wp_add_inline_style
- Enqueue stylesheets if parent theme has more than one .css file
- replace parent theme images in child theme
- ERROR MESSAGE: Missing index.php—Child Theme
- Priority loading file css in child theme
- Is my child theme working properly
- Child theme style repeated
- Localization: Textdomain of Child teme
- How to NOT call Font Awesome or font icons in WordPress
- @font-face broken in child theme
- Prevent a base themes css file from loading
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- WordPress Child theme’s css not loading
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- Confused about how to use wp_enqueue_style
- Order of stylesheets in child theme
- How to create a parent theme for accesspress parallax theme?
- why this media query is not working / not loading when I put it in child theme?
- Child style loads before all parent styles
- What are the best practices for maintaining and deploying several parent themes?
- Which is the child theme and which is the parent theme?
- Creating a child theme: How do I find the template name of the parent directory?
- How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?
- Creating child theme out of Coeur
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- get_template_directory_uri() links to child theme not parent
- WordPress + Child Theme = Am I missing something?
- Referencing parent theme image from child theme
- Override file in parent theme
- Can only override parent theme styling with ‘!important’ in child style.css
- Can I place “parent theme” inside a child theme folder?
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Remove Stylesheet by URL that has not been enqueued
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- Making a child theme in order to update the parent theme
- How do I create a child theme from PowerMag theme
- how to fix loading scripts in child theme?
- Can I still switch to a child theme?
- Why won’t my Custom CSS Load
- Why are my parent styles loading after my child styles?
- How to activate the child theme in WordPress?
- How to add modified php in child theme?
- How to create my own style.css file in an wordpress child-theme
- Child theme – Overriding ‘require_once’ in functions.php
- How to modify single.php in a child theme?
- Child Theme vs Duplicate Theme Renamed
- Git vs Child Theme
- WordPress master + child themes + Git workflow
- Is it possible to override this function/class in a child theme?
- Redefining function in child themes
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- How to disable updates in WordPress theme
- De-registering parent style sheet css recommended?
- WP .js script file not loading
- How to install bootstrap in child theme
- Generate PO File
- Linking to Child Theme PHP Files
- Use child theme on certain pages and not others?
- Child Theme disable customizer defaults
- Add custom function to child function.php
- Enqueue custom css file on specific page
- javascript not being enqueued correctly
- styles from child theme not loaded for file other than style.css
- Multiple Child Themes
- How to install Bootstrap in a WordPress child theme
- Trouble translating a Child Theme
- overwrite code snippet from parent to child theme
- Child Theme Customizer not working
- Customize file on inc folder on child theme
- Add custom css file after plugin css with WordPress Child Theme functions.php
- Child theme is not rendering parent and own javascripts (but css loaded properly, js not)
- change html and css in template files in child theme
- My wordpress site is crash due to excute child theme
- Enqueuing multiple stylesheets with a child theme
- Deregister wordpress script in child theme by js location
- Modify arguments for parent theme’s `wp_register_style` via child theme
- child theme performance / avoid import and minify JS files
- Remove HTML from search.php of my parent theme
- Prevent child theme from inheriting a parent theme’s required file
- Edit copyright in Hesita Child Theme
- Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?