PPOM Image input thumbs is using wp_get_attachment_thumb_url() function to fetch the attachment thumb, but we have added a filter in version 21.2:
apply_filters('ppom_image_input_url', wp_get_attachment_thumb_url( $image_id ), $image, $args);
Show full image using above filter, add following code into your functions.php file:
add_filter('ppom_image_input_url', 'ppom_image_full_image', 22, 3);
function ppom_image_full_image($url, $image, $field_meta){
$image_id = isset($image['image_id']) ? $image['image_id'] : 0;
$attachment_info = wp_get_attachment_image_src( $image_id, 'full' );
return $attachment_info[0];
}
The version before 21.2:
you have edit inc/nmInput.class.php
file near line number: 954 and 1044 by replace this:
$image_url = wp_get_attachment_thumb_url( $image_id );
with:
$attachment_info = wp_get_attachment_image_src( $image_id, 'full' );
$image_url = $attachment_info[0];
-
This topic was modified 3 years, 9 months ago by nmedia.
-
This topic was modified 3 years, 9 months ago by nmedia.
-
This topic was modified 3 years, 9 months ago by nmedia.