A Cozmoslabs Product
Documentation / Developer Knowledge Base / Messages / Alerts / Add text before the fields in Profile Builder

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.

Get Profile Builder

The Ultimate Membership Bundle

Combine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.

Get 25% off with the bundle

Help & Support

We’re here to help you every step of the way.

Open a Support Ticket