Method |
Description |
|
admin_init ( ) |
Run admin_init methods for each field type |
|
attributes ( $attributes, $name = null, $type = null, $options = null ) |
Output a field's attributes |
|
block_field_types ( ) : array |
Get list of available text field types |
|
clean ( $input, $noarray = false, $db_field = false ) |
Clean a value for use in class / id |
|
comment ( string $name, string $message = null, array $options = null ) : string |
Output a Field Comment Paragraph |
|
data ( $data, $name = null, $type = null, $options = null ) |
Output a field's data (for use with jQuery) |
|
date_field_types ( ) : array |
Get list of available date field types |
|
default_value ( $value, $type = 'text', $name = null, $options = null, $pod = null, $id = null ) |
Parse the default the value |
|
delete ( string $type, integer $id = null, string $name = null, array $options = null, array $pod = null ) |
Delete the value from the DB |
|
dependencies ( array $options, string $prefix = '' ) : string |
Setup dependency / exclusion classes |
|
display ( $type, mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null, array $traverse = null ) |
Change the way the value of the field is displayed with Pods::get |
|
field ( string $name, mixed $value, string $type = 'text', array $options = null, array $pod = null, integer $id = null ) : string |
Output a field |
|
field_loader ( string $field_type, string $file = '' ) : string |
Autoload a Field Type's class |
|
field_method ( ) : mixed |
Run a method from a Field Type's class |
|
field_setup ( null $field = null, null $core_defaults = null, null $type = null ) : array | null |
Get options for a field and setup defaults |
|
field_types ( ) : array |
Get a list of all available field types and include |
|
fields_setup ( null $fields = null, null $core_defaults = null, boolean $single = false ) : array | null |
Get options for a field and setup defaults |
|
file_field_types ( ) : array |
Get list of available file field types |
|
init ( ) : PodsForm |
Singleton handling for a basic pods_form() request |
|
label ( string $name, string $label, string $help = '', array $options = null ) : string |
Output a field's label |
|
merge_attributes ( $attributes, $name = null, $type = null, $options = null, $classes = '' ) |
Merge attributes and handle classes |
|
number_field_types ( ) : array |
Get list of available number field types |
|
options ( $type, $options ) : array |
Setup options for a field and store them for later use |
|
options_setup ( $type = null, $options = null ) : array | null |
Get options for a field type and setup defaults |
|
permission ( $type, null $name = null, null $options = null, null $fields = null, null $pod = null, null $id = null, null $params = null ) |
Check if a user has permission to be editing a field |
|
pre_save ( string $type, mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null ) |
Change the value or perform actions after validation but before saving to the DB |
|
prepare ( $type, $options ) : mixed | void |
Setup value preparation for sprintf |
|
regex ( $type, $options ) : mixed | void |
Setup regex for JS / PHP |
|
register_field_type ( string $type, string $file = null ) : array |
Add a new Pod field type |
|
repeatable_field_types ( ) : array |
Get list of available repeatable field types |
|
row ( string $name, mixed $value, string $type = 'text', array $options = null, array $pod = null, integer $id = null ) : string |
Output a row (label, field, and comment) |
|
save ( string $type, mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null ) |
Save the value to the DB |
|
simple_tableless_objects ( ) : array |
Get list of available text field types |
|
submit_button ( string $text = null, string $type = 'primary large', string $name = 'submit', boolean $wrap = true, array | string $other_attributes = null ) |
Returns a submit button, with provided text and appropriate class, copied from WP Core for use on the frontend |
|
tableless_field_types ( ) : array |
Get list of available tableless field types |
|
text_field_types ( ) : array |
Get list of available text field types |
|
ui_options ( $type ) : array | null |
Get Admin options for a field type and setup defaults |
|
validate ( string $type, mixed $value, string $name = null, array $options = null, array $fields = null, array $pod = null, integer $id = null, array | object $params = null ) |
Validate a value before it's saved |
|
value ( $type, mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null, array $traverse = null ) |
Change the value of the field |
|