GravityView_Social_Register_Field
Handle registering the social field in GravityView
Source: includes/class-gravityview-social-register-field.php:6
Details
- Kind:
class - Namespace:
(global)
Methods
| Method | Description |
|---|---|
add_default_field() | Add Sharing Field as a default field, outside those set in the Gravity Form form |
add_field_to_blocklist() | Prevent users from being able to edit the field |
field_options() | Add "Edit Link Text" setting to the edit_link field settings |
add_template_path() | Include this extension templates path |
Method Reference
add_default_field()
function add_default_field( $entry_default_fields, $form=[], $zone='' )
Add Sharing Field as a default field, outside those set in the Gravity Form form
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$entry_default_fields | array | Existing fields | |
$form | string | array | [] | form_ID or form object |
$zone | string | '' | Either 'single', 'directory', 'header', 'footer' |
Source: includes/class-gravityview-social-register-field.php:54
add_field_to_blocklist()
function add_field_to_blocklist( $fields, $context=NULL )
Prevent users from being able to edit the field
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$fields | array | Array of field types not editable by users | |
$context | NULL |
Source: includes/class-gravityview-social-register-field.php:74
field_options()
function field_options( $field_options, $template_id, $field_id, $context, $input_type )
Add "Edit Link Text" setting to the edit_link field settings
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$field_options | [type] | [description] | |
$template_id | [type] | [description] | |
$field_id | [type] | [description] | |
$context | [type] | [description] | |
$input_type | [type] | [description] |
Returns
array
Source: includes/class-gravityview-social-register-field.php:93
add_template_path()
function add_template_path( $file_paths )
Include this extension templates path
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$file_paths | array | List of template paths ordered |
Source: includes/class-gravityview-social-register-field.php:134