Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_core_add_message not showing anything


  • jorfermo
    Participant

    @jorfermo

    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)
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