Ejemplo n.º 1
0
/**
 * Initialize plugin on the 'plugins_loaded' hook.
 */
function hestia_plugins_loaded()
{
    $classes = [SSNepenthe\Hestia\Ancestors::class, SSNepenthe\Hestia\Attachments::class, SSNepenthe\Hestia\Children::class, SSNepenthe\Hestia\Siblings::class, SSNepenthe\Hestia\Sitemap::class];
    foreach ($classes as $class) {
        SSNepenthe\Metis\Loader::attach(new $class());
    }
}
Ejemplo n.º 2
0
/**
 * Initializes the plugin on the init hook.
 */
function cache_manager_init()
{
    if (!is_admin() && !is_admin_bar_showing()) {
        return;
    }
    SSNepenthe\Metis\Loader::attach(new SSNepenthe\CacheManager\CacheManager());
}
Ejemplo n.º 3
0
/**
 * Initialize the plugin frontend functionality.
 */
function homonoia_frontend_init()
{
    try {
        SSNepenthe\Metis\Loader::attach(new SSNepenthe\Homonoia\Homonoia());
    } catch (Exception $e) {
        wp_die(esc_html($e->getMessage()));
    }
    SSNepenthe\Metis\Loader::attach(new SSNepenthe\Homonoia\SRI\Frontend());
}
Ejemplo n.º 4
0
/**
 * Initialize the plugin on the plugins_loaded hook.
 */
function hygieia_init()
{
    // Bail early if the install script has not yet been run.
    if (!is_blog_installed()) {
        return;
    }
    $classes = [SSNepenthe\Hygieia\Embeds::class, SSNepenthe\Hygieia\Emoji::class, SSNepenthe\Hygieia\Feeds::class, SSNepenthe\Hygieia\Housekeeper::class, SSNepenthe\Hygieia\JSONApi::class, SSNepenthe\Hygieia\XMLRPCApi::class];
    foreach ($classes as $class) {
        SSNepenthe\Metis\Loader::attach(new $class());
    }
}