Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • rafaelfigueiredo
    Participant

    @rafaelfigueiredo

    Hi Prashant! Thanks. With your help I was able to solve my problem. Thanks a lot!


    rafaelfigueiredo
    Participant

    @rafaelfigueiredo

    Inside buddypress/bp-templates/bp-nouveau/includes/template-tags.php I founded this function bp_nouveau_get_single_item_nav_classes().

    Inside this function I can see that has an option that I want to change ‘user_nav_display’. Then the end line of this function is a filter, but I can’t able to do some debug. I’m using wp_die, var_dump and nothing happens when I tried to use a callback function attached to this filter.

    /**
    * Filters the final results for BuddyPress Nouveau container classes.
    *
    * This filter will return a single string of concatenated classes to be used.
    *
    * @since 3.0.0
    *
    * @param string $value Concatenated classes.
    * @param array $classes Array of classes that were concatenated.
    */
    return apply_filters( ‘bp_nouveau_get_container_classes’, join( ‘ ‘, $class ), $classes );

    My code doing some debug:

    add_action(‘bp_nouveau_get_container_classes’, [$this, ‘buddypress_instance’]);

    public function buddypress_instance($value, $classes){
    wp_die(var_dump($value));
    }


    rafaelfigueiredo
    Participant

    @rafaelfigueiredo

    Yes. I tried, but not works.


    rafaelfigueiredo
    Participant

    @rafaelfigueiredo

    Hi all,

    I find my answer here:

    Adding BuddyPress Custom Pages to Profiles

    Through this tutorial I was capable to create the menu and render my template.

    ——————————————————————

    Prashant, if you can send me more tips about your way to do this I aprreciate.


    rafaelfigueiredo
    Participant

    @rafaelfigueiredo

    Hi prashantvatsh, thanks!

    Reading your shared code I think I need to create a new component. Right? Can you send me more instructions about this? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar