$50 GRAYBYTE WORDPRESS FILE MANAGER $59

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/itiministry.org/wp-content/plugins/give/src/Traits/

HOME
Current File : /home/bravrvjk/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;
    }
}


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
HasWpTheme.php
1 KB
24 Nov 2021 4.55 AM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF