Support » Plugins » How to replace text in all menus?

  • Hello!

    I want to replace"
    with" onClick="popup ="", "Registration", "height=450,width=640,scrollbars=yes,resizable=yes"); return false" target="_blank"

    I wanted to write a plugin which does that, but I can’t find a way to make add_filter function work on all menus.
    Also tried to do this with JS, but it broke DOM:

    <script type="text/javascript" >
    function myscript() {
    input = '"';
    output='" onClick="popup ="", "Registration", "height=450,width=640,scrollbars=yes,resizable=yes"); return false" target="_blank"';
    document.body.innerHTML = document.body.innerHTML.replace(input,output);
    </script >

  • The topic ‘How to replace text in all menus?’ is closed to new replies.