Created
November 16, 2015 01:51
-
-
Save yozzi/d366d844431033255b43 to your computer and use it in GitHub Desktop.
Rename admin menu with js
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
// renommer Timeline Express en Timeline dans le menu | |
function startup_reloaded_timeline_js() { | |
if ( is_plugin_active('timeline-express/timeline-express.php')) { ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
jQuery("#menu-posts-te_announcements .wp-menu-name").html("Timeline"); | |
}); | |
</script> | |
<?php } | |
} | |
add_action('admin_footer', 'startup_reloaded_timeline_js'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment