Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom alert messages in template_notices


  • Sumo1
    Participant

    @sumo1

    I have some custom forms I’ve added to user profile settings for advanced users. All works fine adding to user meta etc. However, on a successful post of the form, I would like to show a message saying something like “Thanks, your details have been updated”. I can do this easily in php using if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) but this echoes it out in the wrong part of the page.

    So I noticed there is a hook in the template files do_action( ‘template_notices’ ) which displays the built in alerts and notifications. Is there a way to trigger this and display my own message?

    I’ve looked on google but can’t find any filter or parameter options for ‘template_notices’ or even ‘bp_core_render_message’.

    Am I missing something obvious?

    Thanks in advance.

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