Viewing File: /home/rtsgrob/ww5/wp-content/themes/hoverex/plugins/trx_updater/trx_updater.php

<?php
/* ThemeREX Updater support functions
------------------------------------------------------------------------------- */


// Theme init priorities:
// 9 - register other filters (for installer, etc.)
if ( ! function_exists( 'hoverex_trx_updater_theme_setup9' ) ) {
    add_action( 'after_setup_theme', 'hoverex_trx_updater_theme_setup9', 9 );
    function hoverex_trx_updater_theme_setup9() {
        if ( is_admin() ) {
            add_filter( 'hoverex_filter_tgmpa_required_plugins', 'hoverex_trx_updater_tgmpa_required_plugins', 8 );
        }
    }
}


// Filter to add in the required plugins list
if ( !function_exists( 'hoverex_trx_updater_tgmpa_required_plugins' ) ) {

    function hoverex_trx_updater_tgmpa_required_plugins($list=array()) {
        if (hoverex_storage_isset('required_plugins', 'trx_updater')) {
            $path = hoverex_get_file_dir('plugins/trx_updater/trx_updater.zip');
            $list[] = array(
                'name' 		=> hoverex_storage_get_array('required_plugins', 'trx_updater'),
                'slug'     => 'trx_updater',
                'version'  => '2.1.7',
                'source'	=> !empty($path) ? $path : 'upload://trx_updater.zip',
                'required' => false,
            );
        }
        return $list;
    }
}
Back to Directory File Manager