bp_xprofile_admin_get_signup_field( BP_XProfile_Field $signup_field, object $field_group = null, string $class = '', bool $echo = false )
Handles the WYSIWYG display of signup profile fields on the edit screen.
Parameters Parameters
- $signup_field
-
(BP_XProfile_Field) (Required) The field to use into the signup form.
- $field_group
-
(object) (Optional) The real field group object.
Default value: null
- $class
-
(string) (Optional) Classes to append to output.
Default value: ''
- $echo
-
(bool) (Optional) Whether to return or display the HTML output.
Default value: false
Return Return
(string) The HTML output.
Source Source
File: bp-xprofile/bp-xprofile-admin.php
function bp_xprofile_admin_get_signup_field( $signup_field, $field_group = null, $class = '', $echo = false ) { add_filter( 'bp_get_the_profile_field_input_name', 'bp_get_the_profile_signup_field_input_name' ); if ( ! $echo ) { // Set up an output buffer. ob_start(); xprofile_admin_field( $signup_field, $field_group, $class, true ); $output = ob_get_contents(); ob_end_clean(); } else { xprofile_admin_field( $signup_field, $field_group, $class, true ); } remove_filter( 'bp_get_the_profile_field_input_name', 'bp_get_the_profile_signup_field_input_name' ); if ( ! $echo ) { return $output; } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |