It’s been around since 2.8.2 I think.
You could try.
function alm_remove_thumbnail_image_size() {
global $ajax_load_more;
remove_filter( 'after_setup_theme', array( $ajax_load_more, 'alm_image_sizes' ) );
}
add_action( 'after_setup_theme', 'alm_remove_thumbnail_image_size', 1 );
Thread Starter
David
(@daigreen)
Yeah i did notice 😀 it has been around a lil while but in previous versions i could delete the function that i posted above and everything would be fine, in this latest version it throws up an error on my admin page.
Where do you want me to put this? in my themes functions or below the code specified above?
—–
UPDATE! Works in theme fuctions 😀 I appreciate the help.
—–
function alm_remove_thumbnail_image_size() {
global $ajax_load_more;
remove_filter( 'after_setup_theme', array( $ajax_load_more, 'alm_image_sizes' ) );
}
add_action( 'after_setup_theme', 'alm_remove_thumbnail_image_size', 1 );
Thank you..