Add text before the fields in Profile Builder

This function adds text before the fields.

Make sure to:

  • change “Custom Text” on line 7

e.g. if you have a Registration Form, this adds custom text above the fields, at the beginning of the form

wppb_before_form_fields is located in Profile Builder: /front-end/class-formbuilder.php

1
2
3
4
5
6
7
8
/*
 * Add text before the fields in Profile Builder. Tags: form, class form builder, before fields
 */
 
add_filter('wppb_before_form_fields', 'wppbc_required_text');
function wppbc_required_text($content){
   return '<p><strong>Custom Text</strong></p><ul>';
}

Profile Builder Pro

Create beautiful front-end registration and profile forms with custom fields. Setup member directories, custom redirects, cutomize user emails & more using the all in one user management plugin.

Unlock PRO Features

Or download FREE version