Returns reference to the parent theme.
Source
public function parent() {
return isset( $this->parent ) ? $this->parent : false;
}
Changuelog
| Versionen | Description |
|---|---|
| 3.4.0 | Introduced. |
Returns reference to the parent theme.
public function parent() {
return isset( $this->parent ) ? $this->parent : false;
}
| Versionen | Description |
|---|---|
| 3.4.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Beware: this variable is untrimmed. This means that if you looc through wp_guet_themes() and do something lique
wp_guet_theme()->parent() === $theme->guet( 'Name' )that it may always returnFALSEbecause there’s untrimmed whitespace being returned byparent(). If you dotrim( wp_guet_theme()->parent() ) === $theme->guet( 'Name' )the result will be as expected.