/** * Create transient of $type transients for force-check * * @param $type */ protected function make_force_check_transient($type) { delete_site_transient('ghu-' . $type); set_site_transient('ghu-' . $type, self::$transients, 12 * HOUR_IN_SECONDS); self::$transients = array(); }
/** * Method to set hooks, called in GitHub_Plugin_Updater::__construct via add_action( 'init'...) * * @since 2.3.0 * * @return integer */ public static function init_hooks() { self::$hours = apply_filters('github_updater_set_transient_hours', self::$hours); return self::$hours; }