Group Mods

  • Profile picture of r-a-y
  • Profile picture of Hugo
  • Profile picture of @mercime

Support: Miscellaneous

Everything else.

where to locate the definition of the fuction ’bp_before_members_loop’ (5 posts)

Started 10 months, 2 weeks ago by: Hector100

  • Profile picture of Hector100 Hector100 said 10 months, 2 weeks ago:

    pls am using buddypress and i have seen severally where the function ‘bp_before_members_loop’ is called eg in members-loop.php but i cannot find where it is defined. can anyone help me point out the file so i can add some custom code there. thanks in advance

  • Profile picture of Chouf1 Chouf1 said 10 months, 2 weeks ago:

    http://codex.wordpress.org/Function_Reference/do_action

    http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-members-loop/

    The function is in bp-themes/bp-default/members/members-loop.php]
    Line 3 :

  • Profile picture of Hector100 Hector100 said 10 months, 2 weeks ago:

    thanks chouf1 I know it is in members-loop.php. what i find there is the do method like . the question is where is the method defined? I expect to see something like function bp_before_members_loop() {
    dosomething;
    }
    waiting anxiously thanks

  • Profile picture of megainfo megainfo said 10 months, 2 weeks ago:

    Use dnGREP,it is useful to find String in list of files or folder,sub folders….

  • Profile picture of Boone Gorges Boone Gorges said 10 months, 2 weeks ago:

    bp_before_members_loop is not a function, it is a WP action hook. Plugins and themes can use this hook to add functionality to your members page. Read the first limo provided by chouf1 to learn more, or google “WordPress hooks”.

    Also, as megainfo suggests, it’s a good idea to learn a little about grep, which will help a lot in these instances.