init(); ob_start(array($wph, 'ob_start_callback')); } //Avoid issues if the mu loader has not updated yet if(!defined('WPH_URL')) define('WPH_URL', plugins_url() . '/wp-hide-security-enhancer' ); //load language files add_action( 'plugins_loaded', 'WPH_load_textdomain'); function WPH_load_textdomain() { load_plugin_textdomain('wp-hide-security-enhancer', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages'); } register_activation_hook( __FILE__, 'WPH_activated'); register_deactivation_hook( __FILE__, 'WPH_deactivated'); function WPH_activated($network_wide) { flush_rewrite_rules(); global $wph; //check if permalinks where saved $wph->custom_permalinks_applied = $wph->functions->rewrite_rules_applied(); //reprocess components if the permalinks where applied if($wph->custom_permalinks_applied === TRUE) { $wph->_modules_components_run(); } } function WPH_deactivated() { global $wph; $wph->uninstall = TRUE; flush_rewrite_rules(); //replace the mu-loader WPH_functions::unlink_mu_loader(); delete_option( 'wph-previous-login-url' ); } ?>