[Resolved] Remove 'Public Message' button in child theme
-
Hi,
I have a child theme based on the bp-default theme. In this theme I wish to remove the Public Message button shown next to the avatar when viewing another user’s profile.
In bp-default/functions php the button is added by
`add_action( ‘bp_member_header_actions’, ‘bp_send_public_message_button’, 20 );`In child-theme/functions php I tried to remove the button by
`remove_action( ‘bp_member_header_actions’, ‘bp_send_public_message_button’, 20 );`This did not work.
I wonder if the functions php in the child-theme is processed before the functions php in the bp-default theme?
If so, then how do I remove the button through the child-theme (to ensure that the modification is preserved across updates).
Any ideas are most welcome!
Cheers
Mort3n
You must be logged in to reply to this topic.