Description
Display checkboxes for fields that could be displayedStore the information as an array of fields to be shown keyed by fields name
Usage
oik_user_profile_fields();Parameters
Returns
voidSource
File name: oik-user/admin/oik-user.phpLines:
1 to 14 of 14
function oik_user_profile_fields() { $fields = oik_user_list_metadata(); $option = "bw_user_options"; $options = bw_form_start( $option, "oik_user_options" ); foreach ( $fields as $field => $data ) { bw_trace2( $data ); $options[$field] = bw_array_get( $options, $field, true ); bw_checkbox_arr( $option, $data, $options, $field ); } etag( "table" ); p( isubmit( "ok", "Update", null, "button-primary" ) ); etag( "form" ); bw_flush(); }View on GitHub
Called by
Invoked by
Calls
1 to 9 of 9
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_checkbox_arr() – Create a checkbox for an array options field
- bw_flush() – Use bw_flush() to echo the contents of $bwecho then empty it
- bw_form_start() – Start of a WordPress form for options fields
- bw_trace2() – Trace $value to the trace log file if tracing is active
- etag() – Output an end tag
- isubmit() – Create a submit button
- oik_user_list_metadata() – Return an array of possible user contact methods fields to display
- p() – Output a paragraph of translatable text
