| @@ 1434-1443 (lines=10) @@ | ||
| 1431 | * |
|
| 1432 | * @since 2.3 |
|
| 1433 | */ |
|
| 1434 | public static function tableless_field_types() { |
|
| 1435 | static $field_types = null; |
|
| 1436 | ||
| 1437 | if ( null === $field_types ) { |
|
| 1438 | $field_types = array( 'pick', 'file', 'avatar', 'taxonomy' ); |
|
| 1439 | ||
| 1440 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1441 | } |
|
| 1442 | return $field_types; |
|
| 1443 | } |
|
| 1444 | ||
| 1445 | /** |
|
| 1446 | * Get list of available file field types |
|
| @@ 1452-1461 (lines=10) @@ | ||
| 1449 | * |
|
| 1450 | * @since 2.3 |
|
| 1451 | */ |
|
| 1452 | public static function file_field_types() { |
|
| 1453 | static $field_types = null; |
|
| 1454 | ||
| 1455 | if ( null === $field_types ) { |
|
| 1456 | $field_types = array( 'file', 'avatar' ); |
|
| 1457 | ||
| 1458 | $field_types = apply_filters( 'pods_file_field_types', $field_types ); |
|
| 1459 | } |
|
| 1460 | return $field_types; |
|
| 1461 | } |
|
| 1462 | ||
| 1463 | /** |
|
| 1464 | * Get list of available repeatable field types |
|
| @@ 1502-1511 (lines=10) @@ | ||
| 1499 | * |
|
| 1500 | * @since 2.3 |
|
| 1501 | */ |
|
| 1502 | public static function number_field_types() { |
|
| 1503 | static $field_types = null; |
|
| 1504 | ||
| 1505 | if ( null === $field_types ) { |
|
| 1506 | $field_types = array( 'currency', 'number' ); |
|
| 1507 | ||
| 1508 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1509 | } |
|
| 1510 | return $field_types; |
|
| 1511 | } |
|
| 1512 | ||
| 1513 | /** |
|
| 1514 | * Get list of available date field types |
|
| @@ 1520-1529 (lines=10) @@ | ||
| 1517 | * |
|
| 1518 | * @since 2.3 |
|
| 1519 | */ |
|
| 1520 | public static function date_field_types() { |
|
| 1521 | static $field_types = null; |
|
| 1522 | ||
| 1523 | if ( null === $field_types ) { |
|
| 1524 | $field_types = array( 'date', 'datetime', 'time' ); |
|
| 1525 | ||
| 1526 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1527 | } |
|
| 1528 | return $field_types; |
|
| 1529 | } |
|
| 1530 | ||
| 1531 | /** |
|
| 1532 | * Get list of available text field types |
|