Skip to:
Content
Pages
Categories
Search
Top
Bottom

add button to quicktags toolbar


  • Hamed.T
    Participant

    @hamedt

    i have a php code that help me to add any button in wordpress quicktags toolbar:

    add_action( 'admin_footer-post-new.php', 'pre_add_quick_tag' );
    add_action( 'admin_footer-post.php',     'pre_add_quick_tag' );
    function pre_add_quick_tag() { ?>
        <script type="text/javascript">
            edButtons[edButtons.length] = new edButton( 'pre', 'pre', '<pre>', '</pre>', '' );
        </script>
    }

    now i want this pre button also added in bbpress (not just for admin, i want all users can use this button), any idea?

    ps: i also asked this question here

  • You must be logged in to reply to this topic.
Skip to toolbar