| @@ 1439-1448 (lines=10) @@ | ||
| 1436 | * |
|
| 1437 | * @since 2.3 |
|
| 1438 | */ |
|
| 1439 | public static function tableless_field_types() { |
|
| 1440 | static $field_types = null; |
|
| 1441 | ||
| 1442 | if ( null === $field_types ) { |
|
| 1443 | $field_types = array( 'pick', 'file', 'avatar', 'taxonomy' ); |
|
| 1444 | ||
| 1445 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1446 | } |
|
| 1447 | return $field_types; |
|
| 1448 | } |
|
| 1449 | ||
| 1450 | /** |
|
| 1451 | * Get list of available file field types |
|
| @@ 1457-1466 (lines=10) @@ | ||
| 1454 | * |
|
| 1455 | * @since 2.3 |
|
| 1456 | */ |
|
| 1457 | public static function file_field_types() { |
|
| 1458 | static $field_types = null; |
|
| 1459 | ||
| 1460 | if ( null === $field_types ) { |
|
| 1461 | $field_types = array( 'file', 'avatar' ); |
|
| 1462 | ||
| 1463 | $field_types = apply_filters( 'pods_file_field_types', $field_types ); |
|
| 1464 | } |
|
| 1465 | return $field_types; |
|
| 1466 | } |
|
| 1467 | ||
| 1468 | /** |
|
| 1469 | * Get list of available repeatable field types |
|
| @@ 1507-1516 (lines=10) @@ | ||
| 1504 | * |
|
| 1505 | * @since 2.3 |
|
| 1506 | */ |
|
| 1507 | public static function number_field_types() { |
|
| 1508 | static $field_types = null; |
|
| 1509 | ||
| 1510 | if ( null === $field_types ) { |
|
| 1511 | $field_types = array( 'currency', 'number' ); |
|
| 1512 | ||
| 1513 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1514 | } |
|
| 1515 | return $field_types; |
|
| 1516 | } |
|
| 1517 | ||
| 1518 | /** |
|
| 1519 | * Get list of available date field types |
|
| @@ 1525-1534 (lines=10) @@ | ||
| 1522 | * |
|
| 1523 | * @since 2.3 |
|
| 1524 | */ |
|
| 1525 | public static function date_field_types() { |
|
| 1526 | static $field_types = null; |
|
| 1527 | ||
| 1528 | if ( null === $field_types ) { |
|
| 1529 | $field_types = array( 'date', 'datetime', 'time' ); |
|
| 1530 | ||
| 1531 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1532 | } |
|
| 1533 | return $field_types; |
|
| 1534 | } |
|
| 1535 | ||
| 1536 | /** |
|
| 1537 | * Get list of available text field types |
|