# gamipress/7.9.8/integrations/thrive-ovation/thrive-ovation.php

GamiPress – Gamification plugin to reward points, badges &amp; ranks in WordPress, now with AI, version 7.9.8. 135 lines.

- Page: https://pluginprobe.com/plugins/gamipress/7.9.8/code/integrations/thrive-ovation/thrive-ovation.php
- Raw: https://pluginprobe.com/plugins/gamipress/7.9.8/raw/integrations/thrive-ovation/thrive-ovation.php
- Modified: 2026-07-13T13:39:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gamipress/7.9.8/code/integrations/thrive-ovation/thrive-ovation.php#L10-L20`.

```php
<?php
/**
 * Plugin Name:           GamiPress - Thrive Ovation integration
 * Plugin URI:            https://wordpress.org/plugins/gamipress-thrive-ovation-integration/
 * Description:           Connect GamiPress with Thrive Ovation.
 * Version:               1.0.0
 * Author:                GamiPress
 * Author URI:            https://gamipress.com/
 * Text Domain:           gamipress-thrive-ovation-integration
 * Domain Path:           /languages/
 * Requires at least:     4.4
 * Tested up to:          6.2
 * License:               GNU AGPL v3.0 (http://www.gnu.org/licenses/agpl.txt)
 *
 * @package               GamiPress\Thrive_Ovation
 * @author                GamiPress
 * @copyright             Copyright (c) GamiPress
 */

final class GamiPress_Integration_Thrive_Ovation {

    /**
     * @var         GamiPress_Integration_Thrive_Ovation $instance The one true GamiPress_Integration_Thrive_Ovation
     * @since       1.0.0
     */
    private static $instance;

    /**
     * Get active instance
     *
     * @access      public
     * @since       1.0.0
     * @return      GamiPress_Integration_Thrive_Ovation self::$instance The one true GamiPress_Integration_Thrive_Ovation
     */
    public static function instance() {

        if( !self::$instance ) {
            self::$instance = new GamiPress_Integration_Thrive_Ovation();
            self::$instance->constants();
            self::$instance->includes();
            self::$instance->hooks();
        }

        return self::$instance;
    }

    /**
     * Setup plugin constants
     *
     * @access      private
     * @since       1.0.0
     * @return      void
     */
    private function constants() {
        // Plugin version
        define( 'GAMIPRESS_THRIVE_OVATION_VER', '1.0.0' );

        // Plugin path
        define( 'GAMIPRESS_THRIVE_OVATION_DIR', plugin_dir_path( __FILE__ ) );

        // Plugin URL
        define( 'GAMIPRESS_THRIVE_OVATION_URL', plugin_dir_url( __FILE__ ) );
    }

    /**
     * Include plugin files
     *
     * @access      private
     * @since       1.0.0
     * @return      void
     */
    private function includes() {

        if( $this->meets_requirements() ) {

            require_once GAMIPRESS_THRIVE_OVATION_DIR . 'includes/admin.php';
            require_once GAMIPRESS_THRIVE_OVATION_DIR . 'includes/listeners.php';
            require_once GAMIPRESS_THRIVE_OVATION_DIR . 'includes/triggers.php';

        }
    }

    /**
     * Setup plugin hooks
     *
     * @access      private
     * @since       1.0.0
     * @return      void
     */
    private function hooks() {

    }

    /**
     * Check if there are all plugin requirements
     *
     * @since  1.0.0
     *
     * @return bool True if installation meets all requirements
     */
    private function meets_requirements() {

        if ( ! class_exists( 'GamiPress' ) )
            return false;

        // Requirements on multisite install
        if( is_multisite() && gamipress_is_network_wide_active() && is_main_site() ) {

            // On main site, need to check if integrated plugin is installed on any sub site to load all configuration files
            if( gamipress_is_plugin_active_on_network( 'thrive-ovation/thrive-ovation.php' ) ) {
                return true;
            }

        }

        if ( ! defined( 'TVO_PLUGIN_FILE_PATH' ) )
            return false;

        return true;

    }

}

/**
 * The main function responsible for returning the one true GamiPress_Integration_Thrive_Ovation instance to functions everywhere
 *
 * @since       1.0.0
 * @return      \GamiPress_Integration_Thrive_Ovation The one true GamiPress_Integration_Thrive_Ovation
 */
function GamiPress_Integration_Thrive_Ovation() {
    return GamiPress_Integration_Thrive_Ovation::instance();
}
add_action( 'gamipress_pre_init', 'GamiPress_Integration_Thrive_Ovation' );

```
