| @@ 1436-1445 (lines=10) @@ | ||
| 1433 | * |
|
| 1434 | * @since 2.3 |
|
| 1435 | */ |
|
| 1436 | public static function tableless_field_types() { |
|
| 1437 | static $field_types = null; |
|
| 1438 | ||
| 1439 | if ( null === $field_types ) { |
|
| 1440 | $field_types = array( 'pick', 'file', 'avatar', 'taxonomy' ); |
|
| 1441 | ||
| 1442 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1443 | } |
|
| 1444 | return $field_types; |
|
| 1445 | } |
|
| 1446 | ||
| 1447 | /** |
|
| 1448 | * Get list of available file field types |
|
| @@ 1454-1463 (lines=10) @@ | ||
| 1451 | * |
|
| 1452 | * @since 2.3 |
|
| 1453 | */ |
|
| 1454 | public static function file_field_types() { |
|
| 1455 | static $field_types = null; |
|
| 1456 | ||
| 1457 | if ( null === $field_types ) { |
|
| 1458 | $field_types = array( 'file', 'avatar' ); |
|
| 1459 | ||
| 1460 | $field_types = apply_filters( 'pods_file_field_types', $field_types ); |
|
| 1461 | } |
|
| 1462 | return $field_types; |
|
| 1463 | } |
|
| 1464 | ||
| 1465 | /** |
|
| 1466 | * Get list of available repeatable field types |
|
| @@ 1504-1513 (lines=10) @@ | ||
| 1501 | * |
|
| 1502 | * @since 2.3 |
|
| 1503 | */ |
|
| 1504 | public static function number_field_types() { |
|
| 1505 | static $field_types = null; |
|
| 1506 | ||
| 1507 | if ( null === $field_types ) { |
|
| 1508 | $field_types = array( 'currency', 'number' ); |
|
| 1509 | ||
| 1510 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1511 | } |
|
| 1512 | return $field_types; |
|
| 1513 | } |
|
| 1514 | ||
| 1515 | /** |
|
| 1516 | * Get list of available date field types |
|
| @@ 1522-1531 (lines=10) @@ | ||
| 1519 | * |
|
| 1520 | * @since 2.3 |
|
| 1521 | */ |
|
| 1522 | public static function date_field_types() { |
|
| 1523 | static $field_types = null; |
|
| 1524 | ||
| 1525 | if ( null === $field_types ) { |
|
| 1526 | $field_types = array( 'date', 'datetime', 'time' ); |
|
| 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 text field types |
|