[Resolved] How to use filters to change the comment form?

Home Forums Support [Resolved] How to use filters to change the comment form?

Home Forums Support How to use filters to change the comment form?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70645
    Pete

    OK, I’ve sussed out how to use the action hooks (they are friggin awesome!), now i want to change the comment form (mainly just to add/change some text).

    Would you mind giving us an example of this? Thanks

    #70798
    Tom
    Lead Developer
    Lead Developer

    Filters work like this:

    add_filter( 'THE_FILTER_NAME','YOUR_CUSTOM_FILTER_FUNCTION' );
    function YOUR_CUSTOM_FILTER_FUNCTION() {
          return 'Your custom text to replace the normal text';
    }

    Let me know if that makes sense 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.