Forum Replies Created
-
Hi Prashant! Thanks. With your help I was able to solve my problem. Thanks a lot!
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));
}Yes. I tried, but not works.
Hi all,
I find my answer here:
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.
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!