Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_core_add_message not showing anything

  • @jorfermo

    Participant

    I’m playing a bit with buddypress components and I’m having this issue:

    The code below is executed cause I get redirected to the options slug but no message appears. Am I doing something wrong?

    if ( $bp->current_component == $bp->scorecard->slug && 'options' == $bp->current_action && 'import' == $bp->action_variables[0] ) {

    bp_core_add_message( __( 'Imported!', 'bp-scorecard' ) );

    bp_core_redirect( $bp->displayed_user->domain . $bp->scorecard->slug . '/options' );

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • @apeatling

    Keymaster

    Make sure you the following somewhere in the template file you are redirecting to:

    <?php do_action( 'template_notices' ) ?>

    @jorfermo

    Participant

    That made the trick :-)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_core_add_message not showing anything’ is closed to new replies.
Skip to toolbar