# profile-builder/3.7.0/admin/advanced-settings/includes/fields/send-credentials-text.php

User Profile Builder – Beautiful User Registration Forms, User Profiles &amp; User Role Editor, version 3.7.0. 14 lines.

- Page: https://pluginprobe.com/plugins/profile-builder/3.7.0/code/admin/advanced-settings/includes/fields/send-credentials-text.php
- Raw: https://pluginprobe.com/plugins/profile-builder/3.7.0/raw/admin/advanced-settings/includes/fields/send-credentials-text.php
- Modified: 2021-06-28T09:18:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/profile-builder/3.7.0/code/admin/advanced-settings/includes/fields/send-credentials-text.php#L10-L20`.

```php
<?php

$text = wppb_toolbox_get_settings( 'fields', 'send-credentials-text' );

if ( !empty( $text ) )
    add_filter( 'wppb_send_credentials_checkbox_logic', 'wppb_toolbox_send_credentials_checkbox_text', 10, 2 );

function wppb_toolbox_send_credentials_checkbox_text($requestdata, $form) {
    $text = wppb_toolbox_get_settings( 'fields', 'send-credentials-text' );

    return '<li class="wppb-form-field wppb-send-credentials-checkbox"><label for="send_credentials_via_email"><input id="send_credentials_via_email" type="checkbox" name="send_credentials_via_email" value="sending"'.( ( isset( $request_data['send_credentials_via_email'] ) && ( $request_data['send_credentials_via_email'] == 'sending' ) ) ? ' checked' : '' ).'/>'.
    esc_html( $text ).'</label></li>';
}

```
