Skip to content

Instantly share code, notes, and snippets.

@atmoner
Last active August 29, 2015 14:20
Show Gist options
  • Save atmoner/1b6fc0528190db24cac3 to your computer and use it in GitHub Desktop.
Save atmoner/1b6fc0528190db24cac3 to your computer and use it in GitHub Desktop.
Remove lang
<?php
/*
Plugin Name: Remove lang
Plugin URI: http://bittytorrent.com/
Description: Remove lang
Version: 1.0
Author: Atmoner
Author URI: http://bittytorrent.com/
*/
//set plugin id as file name of plugin
$plugin_id = basename(__FILE__);
//some plugin data
$data['name'] = "Remove lang";
$data['author'] = "Atmoner";
$data['url'] = "http://bittytorrent.com/";
//register plugin data
register_plugin($plugin_id, $data);
function removeLang() {
global $hook;
$hook->remove_addMenuLang('fr');
$hook->remove_addMenuLang('ru');
}
add_hook('action','removeLang');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment