/** * This function runs on plugin activation. It checks to make sure Genesis * or a Genesis child theme is active. If not, it deactivates itself. * * @since 0.1.0 */ function simplehooks_activation() { if ('genesis' != basename(TEMPLATEPATH)) { simplehooks_deactivate('1.8.0', '3.3'); } }
/** * This function runs on plugin activation. It checks to make sure Genesis * or a Genesis child theme is active. If not, it deactivates itself. * * @since 0.1.0 */ function simplehooks_activation() { if (!defined('PARENT_THEME_VERSION') || !version_compare(PARENT_THEME_VERSION, '2.1.0', '>=')) { simplehooks_deactivate('2.1.0', '3.9.2'); } }