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