@@ 2019-2029 (lines=11) @@ | ||
2016 | * |
|
2017 | * @since 2.3 |
|
2018 | */ |
|
2019 | public function data_image_sizes ( $name = null, $value = null, $options = null, $pod = null, $id = null ) { |
|
2020 | $data = array(); |
|
2021 | ||
2022 | $image_sizes = get_intermediate_image_sizes(); |
|
2023 | ||
2024 | foreach ( $image_sizes as $image_size ) { |
|
2025 | $data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) ); |
|
2026 | } |
|
2027 | ||
2028 | return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id ); |
|
2029 | } |
|
2030 | ||
2031 | /** |
|
2032 | * Data callback for Countries |
@@ 541-551 (lines=11) @@ | ||
538 | * |
|
539 | * @since 2.3 |
|
540 | */ |
|
541 | public function data_image_sizes ( $name = null, $value = null, $options = null, $pod = null, $id = null ) { |
|
542 | $data = array(); |
|
543 | ||
544 | $image_sizes = get_intermediate_image_sizes(); |
|
545 | ||
546 | foreach ( $image_sizes as $image_size ) { |
|
547 | $data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) ); |
|
548 | } |
|
549 | ||
550 | return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id ); |
|
551 | } |
|
552 | ||
553 | /** |
|
554 | * Create a WP Gallery from the passed values (need to be attachments) |