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