"; file_put_contents($configPathFile, $data."\r\n".file_get_contents($configPathFile)); } register_activation_hook( AIODL_FILE_DIR_36bQ3n, 'aiodl_plugin_activate_36bQ3n' ); /** * Remove the definition names file from the configuration file */ function aiodl_plugin_deactivation_36bQ3n() { $fileName = 'wp-config.php'; $configPathFile = get_home_path() . $fileName; $pluginFilePath = AIODL_PLUGIN_DIR_36bQ3n.'admin/' . AIODL_SET_EXT_FILE_36bQ3n; file_put_contents($configPathFile, str_replace( "". "\r\n", "", file_get_contents($configPathFile)) ); } register_deactivation_hook( AIODL_FILE_DIR_36bQ3n, 'aiodl_plugin_deactivation_36bQ3n' ); /** * Specify the translation folder */ function aiodl_setup_languages_36bQ3n(){ load_theme_textdomain( 'aiopd_plugin', plugin_dir_url( __FILE__ ) . '/languages' ); load_plugin_textdomain( 'aiodl-debug-plugin', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); } add_action( 'init', 'aiodl_setup_languages_36bQ3n' );