get_value( $object_id, false ); // get unformatted value if ( $images ) { $class = count($images) > 1 ? 'acf-qef-gallery-col' : 'acf-qef-image-col'; $output .= sprintf( '
', $class ); foreach ( array_values( $images ) as $i => $image_id ) { if ( $i >= $max_images ) { break; } $output .= wp_get_attachment_image( $image_id, [ 80, 80 ] ); } $output .= '
'; } } return $output; } /** * @inheritdoc */ public function render_input( $input_atts, $is_quickedit = true ) { return ''; } /** * @inheritdoc */ public function sanitize_value( $value, $context = 'db' ) { $value = (array) $value; $value = array_map( 'intval', $value ); $value = array_filter( $value ); return array_values( $value ); } }