| @@ 1372-1381 (lines=10) @@ | ||
| 1369 | * |
|
| 1370 | * @since 2.3 |
|
| 1371 | */ |
|
| 1372 | public static function tableless_field_types() { |
|
| 1373 | static $field_types = null; |
|
| 1374 | ||
| 1375 | if ( null === $field_types ) { |
|
| 1376 | $field_types = array( 'pick', 'file', 'avatar', 'taxonomy' ); |
|
| 1377 | ||
| 1378 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1379 | } |
|
| 1380 | return $field_types; |
|
| 1381 | } |
|
| 1382 | ||
| 1383 | /** |
|
| 1384 | * Get list of available file field types |
|
| @@ 1390-1399 (lines=10) @@ | ||
| 1387 | * |
|
| 1388 | * @since 2.3 |
|
| 1389 | */ |
|
| 1390 | public static function file_field_types() { |
|
| 1391 | static $field_types = null; |
|
| 1392 | ||
| 1393 | if ( null === $field_types ) { |
|
| 1394 | $field_types = array( 'file', 'avatar' ); |
|
| 1395 | ||
| 1396 | $field_types = apply_filters( 'pods_file_field_types', $field_types ); |
|
| 1397 | } |
|
| 1398 | return $field_types; |
|
| 1399 | } |
|
| 1400 | ||
| 1401 | /** |
|
| 1402 | * Get list of available repeatable field types |
|
| @@ 1440-1449 (lines=10) @@ | ||
| 1437 | * |
|
| 1438 | * @since 2.3 |
|
| 1439 | */ |
|
| 1440 | public static function number_field_types() { |
|
| 1441 | static $field_types = null; |
|
| 1442 | ||
| 1443 | if ( null === $field_types ) { |
|
| 1444 | $field_types = array( 'currency', 'number' ); |
|
| 1445 | ||
| 1446 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1447 | } |
|
| 1448 | return $field_types; |
|
| 1449 | } |
|
| 1450 | ||
| 1451 | /** |
|
| 1452 | * Get list of available date field types |
|
| @@ 1458-1467 (lines=10) @@ | ||
| 1455 | * |
|
| 1456 | * @since 2.3 |
|
| 1457 | */ |
|
| 1458 | public static function date_field_types() { |
|
| 1459 | static $field_types = null; |
|
| 1460 | ||
| 1461 | if ( null === $field_types ) { |
|
| 1462 | $field_types = array( 'date', 'datetime', 'time' ); |
|
| 1463 | ||
| 1464 | $field_types = apply_filters( 'pods_tableless_field_types', $field_types ); |
|
| 1465 | } |
|
| 1466 | return $field_types; |
|
| 1467 | } |
|
| 1468 | ||
| 1469 | /** |
|
| 1470 | * Get list of available text field types |
|