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