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