| @@ 1446-1455 (lines=10) @@ | ||
| 1443 | * |
|
| 1444 | * @since 2.3 |
|
| 1445 | */ |
|
| 1446 | public static function tableless_field_types() { |
|
| 1447 | static $field_types = null; |
|
| 1448 | ||
| 1449 | if ( null === $field_types ) { |
|
| 1450 | $field_types = array( 'pick', 'file', 'avatar', 'taxonomy' ); |
|
| 1451 | ||
| 1452 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1453 | } |
|
| 1454 | return $field_types; |
|
| 1455 | } |
|
| 1456 | ||
| 1457 | /** |
|
| 1458 | * Get list of available file field types |
|
| @@ 1464-1473 (lines=10) @@ | ||
| 1461 | * |
|
| 1462 | * @since 2.3 |
|
| 1463 | */ |
|
| 1464 | public static function file_field_types() { |
|
| 1465 | static $field_types = null; |
|
| 1466 | ||
| 1467 | if ( null === $field_types ) { |
|
| 1468 | $field_types = array( 'file', 'avatar' ); |
|
| 1469 | ||
| 1470 | $field_types = apply_filters( 'pods_file_field_types', $field_types ); |
|
| 1471 | } |
|
| 1472 | return $field_types; |
|
| 1473 | } |
|
| 1474 | ||
| 1475 | /** |
|
| 1476 | * Get list of available repeatable field types |
|
| @@ 1514-1523 (lines=10) @@ | ||
| 1511 | * |
|
| 1512 | * @since 2.3 |
|
| 1513 | */ |
|
| 1514 | public static function number_field_types() { |
|
| 1515 | static $field_types = null; |
|
| 1516 | ||
| 1517 | if ( null === $field_types ) { |
|
| 1518 | $field_types = array( 'currency', 'number' ); |
|
| 1519 | ||
| 1520 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1521 | } |
|
| 1522 | return $field_types; |
|
| 1523 | } |
|
| 1524 | ||
| 1525 | /** |
|
| 1526 | * Get list of available date field types |
|
| @@ 1532-1541 (lines=10) @@ | ||
| 1529 | * |
|
| 1530 | * @since 2.3 |
|
| 1531 | */ |
|
| 1532 | public static function date_field_types() { |
|
| 1533 | static $field_types = null; |
|
| 1534 | ||
| 1535 | if ( null === $field_types ) { |
|
| 1536 | $field_types = array( 'date', 'datetime', 'time' ); |
|
| 1537 | ||
| 1538 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1539 | } |
|
| 1540 | return $field_types; |
|
| 1541 | } |
|
| 1542 | ||
| 1543 | /** |
|
| 1544 | * Get list of available text field types |
|