Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Custom_Reg_Fields

s2member\includes\classes\custom-reg-fields.inc.php at line #28

Class c_ws_plugin__s2member_custom_reg_fields

c_ws_plugin__s2member_custom_reg_fields

public class c_ws_plugin__s2member_custom_reg_fields

Custom Registration/Profile Fields for s2Member.

Since:

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

custom_registration_fields()

Adds Custom Fields to: /wp-login.php?action=register.

public static null

ms_custom_registration_fields()

Adds Custom Fields to: /wp-signup.php.

( 4 Methods )
Method Detail

s2member\includes\classes\custom-reg-fields.inc.php at line #49

custom_field_gen()

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.

Since:

3.5

Parameters:

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.

Returns:

str - The resulting Custom Field, in HTML format.

[ back to top ]

s2member\includes\classes\custom-reg-fields.inc.php at line #271

custom_fields_configured_at_level()

public static array custom_fields_configured_at_level(str|int $_level, str $_editable_context)

Determines which Custom Fields apply to a specific Level.

Since:

3.5

Parameters:

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.

Returns:

array - Array of Custom Field IDs applicable.

[ back to top ]

s2member\includes\classes\custom-reg-fields.inc.php at line #415

custom_registration_fields()

public static null custom_registration_fields()

Adds Custom Fields to: /wp-login.php?action=register.

Since:

3.5

Attaches-to:

add_action("register_form");

Returns:

null

Todo:

Optimize with empty().

[ back to top ]

s2member\includes\classes\custom-reg-fields.inc.php at line #306

ms_custom_registration_fields()

public static null ms_custom_registration_fields()

Adds Custom Fields to: /wp-signup.php.

For Multisite Blog Farms.

Since:

3.5

Attaches-to:

add_action("signup_extra_fields");

Returns:

null

Todo:

Optimize with empty().

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail