| @@ 1383-1392 (lines=10) @@ | ||
| 1380 | * |
|
| 1381 | * @since 2.3 |
|
| 1382 | */ |
|
| 1383 | public static function tableless_field_types() { |
|
| 1384 | static $field_types = null; |
|
| 1385 | ||
| 1386 | if ( null === $field_types ) { |
|
| 1387 | $field_types = array( 'pick', 'file', 'avatar', 'taxonomy' ); |
|
| 1388 | ||
| 1389 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1390 | } |
|
| 1391 | return $field_types; |
|
| 1392 | } |
|
| 1393 | ||
| 1394 | /** |
|
| 1395 | * Get list of available file field types |
|
| @@ 1401-1410 (lines=10) @@ | ||
| 1398 | * |
|
| 1399 | * @since 2.3 |
|
| 1400 | */ |
|
| 1401 | public static function file_field_types() { |
|
| 1402 | static $field_types = null; |
|
| 1403 | ||
| 1404 | if ( null === $field_types ) { |
|
| 1405 | $field_types = array( 'file', 'avatar' ); |
|
| 1406 | ||
| 1407 | $field_types = apply_filters( 'pods_file_field_types', $field_types ); |
|
| 1408 | } |
|
| 1409 | return $field_types; |
|
| 1410 | } |
|
| 1411 | ||
| 1412 | /** |
|
| 1413 | * Get list of available repeatable field types |
|
| @@ 1451-1460 (lines=10) @@ | ||
| 1448 | * |
|
| 1449 | * @since 2.3 |
|
| 1450 | */ |
|
| 1451 | public static function number_field_types() { |
|
| 1452 | static $field_types = null; |
|
| 1453 | ||
| 1454 | if ( null === $field_types ) { |
|
| 1455 | $field_types = array( 'currency', 'number' ); |
|
| 1456 | ||
| 1457 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1458 | } |
|
| 1459 | return $field_types; |
|
| 1460 | } |
|
| 1461 | ||
| 1462 | /** |
|
| 1463 | * Get list of available date field types |
|
| @@ 1469-1478 (lines=10) @@ | ||
| 1466 | * |
|
| 1467 | * @since 2.3 |
|
| 1468 | */ |
|
| 1469 | public static function date_field_types() { |
|
| 1470 | static $field_types = null; |
|
| 1471 | ||
| 1472 | if ( null === $field_types ) { |
|
| 1473 | $field_types = array( 'date', 'datetime', 'time' ); |
|
| 1474 | ||
| 1475 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1476 | } |
|
| 1477 | return $field_types; |
|
| 1478 | } |
|
| 1479 | ||
| 1480 | /** |
|
| 1481 | * Get list of available text field types |
|