Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hooks and things …

  • @devweb

    Participant

    Hi

    I’ve been pondering this question for some time, so here goes…

    Can someone please explain how ‘hooks’ are working in BP and WPMU, what they are and where they are found/look like. Having read lots of posts/instructions and advice that suggest they make things much easier when creating/coding things I would like to know more.

    Cheers in advance for showing me the light!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @egerrits

    Participant

    First, read this webpage:

    https://codex.wordpress.org/Plugin_API#Actions

    That’ll explain the basics of hooks and filters. If you want to know which hooks are in BuddyPress, scan through the source code and look for do_action() functions as well as apply_filter() functions, those are your hooks, and you can “hook” into them using the functions add_action() and add_filter() respectively. I don’t think there’s too much documentation around for BuddyPress hooks, so it’s best to look into the file/function you want to extend and find your hooks.

    @burtadsit

    Participant

    @egerrits

    Participant

    Well there you go

    @burtadsit

    Participant

    Man of few words today. Surprise!

    @devweb

    Participant

    Cheers guys! Thats a lot of help! I’ve also been playing around with them and now got to grips with the hook thing do_action etc by rearrangning the signup page by removing them from the ‘extra fields’ using their individual hooks and placing them where I want on the core signup file.

    Thanks again!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hooks and things …’ is closed to new replies.
Skip to toolbar