Last active
April 26, 2022 17:35
-
-
Save hivepress/e53a530eb83f98cbd56f3a298261a44e to your computer and use it in GitHub Desktop.
Enable rich text (HTML) editor for the user profile description #hivepress #users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'hivepress/v1/models/user', | |
function( $model ) { | |
$model['fields']['description']['editor'] = true; | |
return $model; | |
}, | |
1000 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment