mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
- add a hook for role save
This commit is contained in:
@@ -136,7 +136,7 @@ if ( ! empty( $_POST['role'] ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
$role_meta = $data;
|
||||
$role_meta = apply_filters( 'um_role_edit_data', $data, $id );
|
||||
unset( $role_meta['id'] );
|
||||
|
||||
update_option( "um_role_{$id}_meta", $role_meta );
|
||||
|
||||
Reference in New Issue
Block a user