Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created June 17, 2022 20:28
Show Gist options
  • Select an option

  • Save hivepress/551b2a54699419e35467e465576e553c to your computer and use it in GitHub Desktop.

Select an option

Save hivepress/551b2a54699419e35467e465576e553c to your computer and use it in GitHub Desktop.
Add description to the Profile Info field for users #hivepress #users
<?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