Created
June 17, 2022 20:28
-
-
Save hivepress/551b2a54699419e35467e465576e553c to your computer and use it in GitHub Desktop.
Add description to the Profile Info field for users #hivepress #users
This file contains hidden or 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/forms/user_update', | |
| function( $form ) { | |
| if(isset($form['fields']['description'])){ | |
| $form['fields']['description']['description'] = 'custom text here'; | |
| } | |
| return $form; | |
| }, | |
| 1000 | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment