bbp_filter_user_roles_option()

Helper function to add filter to option_wp_user_roles

Description

See also

Source

File: bp-forums/core/capabilities.php

function bbp_filter_user_roles_option() {
	global $wpdb;

	$role_key = $wpdb->prefix . 'user_roles';

	add_filter( 'option_' . $role_key, '_bbp_reinit_dynamic_roles' );
}

Changelog

Changelog
Version Description
bbPress (r4363) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.