<?php
/**
 * This file belongs to the YIT Plugin Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

if( ! function_exists( 'yith_plugin_registration_hook' ) ){
    function yith_plugin_registration_hook(){

        /**
         * @use activate_PLUGINNAME hook
         */
        $hook = str_replace( 'activate_', '', current_filter() );

        $option   = get_option( 'yit_recently_activated', array() );
        $option[] = $hook;
        update_option( 'yit_recently_activated', $option );
    }
}
