c_ws_plugin__s2member_custom_reg_fields
public class c_ws_plugin__s2member_custom_reg_fields
3.5
( 4 Methods ) Method Summary | |
---|---|
public static str | custom_field_gen(str $_function, array $_field, str $_name_prefix, str $_id_prefix, str $_classes, str $_styles, bool $_tabindex, str $_attrs, array $_submission, str|array $_value, str $_editable_context, str|int $_tabindex.) Generates all Custom Fields. |
public static array | custom_fields_configured_at_level(str|int $_level, str $_editable_context) Determines which Custom Fields apply to a specific Level. |
public static null | Adds Custom Fields to: |
public static null | ms_custom_registration_fields() Adds Custom Fields to: |
public static str custom_field_gen(str $_function, array $_field, str $_name_prefix, str $_id_prefix, str $_classes, str $_styles, bool $_tabindex, str $_attrs, array $_submission, str|array $_value, str $_editable_context, str|int $_tabindex.)
Generates all Custom Fields.
3.5
str $_function - Function calling upon this routine.
array $_field - The Field array of configuration options.
str $_name_prefix - The name=""
attribute prefix.
str $_id_prefix - The id=""
attribute prefix.
str $_classes - Optional. String of space separated classes that will go inside the Field's class=""
attribute.
str $_styles - Optional. String of CSS styles that will go inside the Field's style=""
attribute.
str|int $_tabindex. - Optional numeric tabindex for the tabindex=""
attribute.
str $_attrs - Optional. Some additional Field attributes and values.
array $_submission - Optional. But should be passed in with any submission data related to this Field. For instance, you might pass in $_POST
.
str|array $_value - Optional. The value of this Field, either by default, or from the $_submission
array.
str $_editable_context - Optional. One of profile|profile-view|registration
.
str - The resulting Custom Field, in HTML format.
public static array custom_fields_configured_at_level(str|int $_level, str $_editable_context)
Determines which Custom Fields apply to a specific Level.
3.5
str|int $_level - Optional. Defaults to the current User's Access Level number. You can either pass in a numeric Level number, or the string auto-detection
.
str $_editable_context - Optional. One of profile|profile-view|registration
.
array - Array of Custom Field IDs applicable.
public static null custom_registration_fields()
Adds Custom Fields to: /wp-login.php?action=register
.
3.5
add_action("register_form");
null
Optimize with empty()
.
public static null ms_custom_registration_fields()
Adds Custom Fields to: /wp-signup.php
.
For Multisite Blog Farms.
3.5
add_action("signup_extra_fields");
null
Optimize with empty()
.
Custom Registration/Profile Fields for s2Member.