| @@ 1451-1460 (lines=10) @@ | ||
| 1448 | * |
|
| 1449 | * @since 2.3 |
|
| 1450 | */ |
|
| 1451 | public static function tableless_field_types() { |
|
| 1452 | static $field_types = null; |
|
| 1453 | ||
| 1454 | if ( null === $field_types ) { |
|
| 1455 | $field_types = array( 'pick', 'file', 'avatar', 'taxonomy' ); |
|
| 1456 | ||
| 1457 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1458 | } |
|
| 1459 | return $field_types; |
|
| 1460 | } |
|
| 1461 | ||
| 1462 | /** |
|
| 1463 | * Get list of available file field types |
|
| @@ 1469-1478 (lines=10) @@ | ||
| 1466 | * |
|
| 1467 | * @since 2.3 |
|
| 1468 | */ |
|
| 1469 | public static function file_field_types() { |
|
| 1470 | static $field_types = null; |
|
| 1471 | ||
| 1472 | if ( null === $field_types ) { |
|
| 1473 | $field_types = array( 'file', 'avatar' ); |
|
| 1474 | ||
| 1475 | $field_types = apply_filters( 'pods_file_field_types', $field_types ); |
|
| 1476 | } |
|
| 1477 | return $field_types; |
|
| 1478 | } |
|
| 1479 | ||
| 1480 | /** |
|
| 1481 | * Get list of available repeatable field types |
|
| @@ 1519-1528 (lines=10) @@ | ||
| 1516 | * |
|
| 1517 | * @since 2.3 |
|
| 1518 | */ |
|
| 1519 | public static function number_field_types() { |
|
| 1520 | static $field_types = null; |
|
| 1521 | ||
| 1522 | if ( null === $field_types ) { |
|
| 1523 | $field_types = array( 'currency', 'number' ); |
|
| 1524 | ||
| 1525 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1526 | } |
|
| 1527 | return $field_types; |
|
| 1528 | } |
|
| 1529 | ||
| 1530 | /** |
|
| 1531 | * Get list of available date field types |
|
| @@ 1537-1546 (lines=10) @@ | ||
| 1534 | * |
|
| 1535 | * @since 2.3 |
|
| 1536 | */ |
|
| 1537 | public static function date_field_types() { |
|
| 1538 | static $field_types = null; |
|
| 1539 | ||
| 1540 | if ( null === $field_types ) { |
|
| 1541 | $field_types = array( 'date', 'datetime', 'time' ); |
|
| 1542 | ||
| 1543 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1544 | } |
|
| 1545 | return $field_types; |
|
| 1546 | } |
|
| 1547 | ||
| 1548 | /** |
|
| 1549 | * Get list of available text field types |
|