Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to change/disable "change" link in group header/directory #178

Open
boonebgorges opened this issue May 23, 2019 · 1 comment

Comments

@boonebgorges
Copy link
Owner

See https://wordpress.org/support/topic/option-to-switch-off-dialogue-on-group-profile/.

At a minimum, we can ensure that the 'change' element has proper selectors that allow it to be removed/modified using CSS or JS.

We could also add some sort of filter(s).

@r-a-y
Copy link
Collaborator

r-a-y commented Jul 29, 2020

Button can be removed with the following snippet:

add_action( 'get_header', function() {
	if ( ! bp_is_groups_component() ) {
		return;
	}

	remove_action ( 'bp_group_header_meta', 'ass_group_subscribe_button' );
	remove_action ( 'bp_directory_groups_actions', 'ass_group_subscribe_button' );
} );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants