Last active
August 29, 2015 14:20
-
-
Save atmoner/1b6fc0528190db24cac3 to your computer and use it in GitHub Desktop.
Remove lang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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