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