Epsilon_Notify_System::check_plugin_is_installed( $slug ), 'active' => Epsilon_Notify_System::check_plugin_is_active( $slug ), ); if ( empty( $get ) ) { $arr = array_filter( $arr ); return 2 === count( $arr ); } } // Translators: %s is the plugin name. $arr['title'] = sprintf( __( 'Install: %s', 'medzone-lite' ), $plugin_name ); // Translators: %s is the plugin name. $arr['description'] = sprintf( __( 'Please install %s in order to create the demo content.', 'medzone-lite' ), $plugin_name ); if ( $arr['installed'] ) { // Translators: %s is the plugin name $arr['title'] = sprintf( __( 'Activate: %s', 'medzone-lite' ), $plugin_name ); // Translators: %s is the plugin name $arr['description'] = sprintf( __( 'Please activate %s in order to create the demo content.', 'medzone-lite' ), $plugin_name ); } return $arr[ $get ]; } /** * Verify that contact form 7 is installed * * @return mixed */ public static function verify_cf7() { $arr = array( 'installed' => false, 'active' => false, ); if ( file_exists( ABSPATH . 'wp-content/plugins/contact-form-7' ) ) { $arr['installed'] = true; $arr['active'] = defined( 'WPCF7_VERSION' ); } return $arr; } }