Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to override bp_core_signup_user function?


  • cahara
    Participant

    @cahara

    I’d like to override bp_core_signup_user without editing the core files? My goal is to add some logic near the start of the function so using add_action(‘bp_core_signup_user’, ‘my_function’) runs too late.

Viewing 1 replies (of 1 total)
  • Not possible to override it. But, remember filters are also actions. You just need to return a value, but you can do anything you want in between.

    Looking at the default use of this function, how about using the bp_signup_usermeta filter (or something else in bp_core_screen_signup)?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar