- add a hook for role save

This commit is contained in:
ashubawork
2023-06-05 19:25:57 +03:00
parent f8c0bbe28e
commit f2e49490d9
+1 -1
View File
@@ -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 );