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