/** * Activation hook callback. * * This functions runs when the plugin is activated. It checks to make sure the user is running * a minimum Genesis version, so there are no conflicts or fatal errors. * * @since 0.9.0 */ function ss_activation_check() { if (!defined('PARENT_THEME_VERSION') || !version_compare(PARENT_THEME_VERSION, '2.0.0', '>=')) { ss_deactivate('2.0.0', '3.6'); } }
/** * Activation hook callback. * * This functions runs when the plugin is activated. It checks to make sure the user is running * a minimum Genesis version, so there are no conflicts or fatal errors. * * @since 0.9.0 */ function ss_activation_check() { if ('genesis' != basename(TEMPLATEPATH)) { ss_deactivate('1.8.0', '3.3'); } }