*/ class Cf7_Polylang_Activator { /** * Activation validation. * * Checks if Polylang and Contact Form 7 are installed before activation * * @since 1.0.0 */ public static function activate() { //no need to make any special actionvation for multisite. //check if the dependent plugins are active if(!is_plugin_active( 'contact-form-7/wp-contact-form-7.php' )){ exit('This plugin requires the Contact Form 7 plugin to be installed first'); } if(!defined ("POLYLANG_VERSION") ){ exit('This plugin requires the Polylang plugin to be installed first'); } $languages= pll_languages_list(); if( function_exists('pll_languages_list') && empty( $languages ) ){ $msg = 'You need to set up your languages in Polylang first.'; exit($msg); } } }