Update add_image_size() function
-
I want to dynamicaly update this function – add_image_size() when value of this variable ( $image_size ) is changed, as in example below. I can achieve that with ‘Regenerate Thumbnails’ plugin, but I want to do without that.
` if ( $image_size === ‘200×200’ ) {
add_image_size( ‘portfolio-isotope-200×200’, 200,200,true );
} elseif ( $image_size === ‘700×700’ ) {
add_image_size( ‘portfolio-isotope-700×700’, 700,700, true );
}
`
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Update add_image_size() function’ is closed to new replies.