Trying to gate buddypress message compose screen
-
I added this code to my functions.php file to keep unapproved users from sending messages. As far as I can tell the code in the function callback is never run. Any ideas why filter isn’t being applied?
function myfs_bpro_gate_compose( $allowed ) { if (bp_is_messages_compose_screen()) { $allowed = false; } return $allowed; } add_filter( 'bprwg_buddypress_allowed_areas', 'myfs_bpro_gate_compose' );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Trying to gate buddypress message compose screen’ is closed to new replies.