SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.217.88
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE
Current File : /home/bravetechrwanda/itiministry.org/wp-content/plugins/give/src/Traits//HasWpTheme.php
<?php
namespace Give\Traits;
use WP_Theme;
/**
* Trait HasWpTheme
* @package Give\Traits
*
* @since 2.10.0
*/
trait HasWpTheme
{
/**
* Return whether or not theme is parent theme of current active theme.
*
* @since 2.10.0
*
* @param string $theme
*
* @return bool
*/
protected function isParentTheme($theme)
{
$currentTheme = wp_get_theme();
$themeTemplate = $currentTheme->offsetGet('Template');
return $theme === $themeTemplate;
}
/**
* Return whether or not given theme is child them or not.
* Note: is_child_theme WordPress function does not return correct return immediately after switching theme.
*
* @since 2.10.0
*
* @param WP_Theme $theme
*
* @return bool
*/
protected function isChildTheme($theme)
{
$themeSlug = $theme->offsetGet('Stylesheet');
$themeTemplate = $theme->offsetGet('Template');
return $themeSlug !== $themeTemplate;
}
}
| NAME |
SIZE |
LAST TOUCH |
USER |
CAN-I? |
FUNCTIONS |
| .. | -- | 4 Apr 2026 1.57 AM | bravetechrwanda / bravetechrwanda | 0755 | |
| | | | | |
| HasWpTheme.php | 1 KB | 24 Nov 2021 4.55 AM | bravetechrwanda / bravetechrwanda | 0644 | |