Rahe/Simple-image-sizes — Issue #6: Post type limitation on regenerate thumbnails
Author: glueckpress
Created: 2012-01-18 11:31:34+00:00
State: open

Right now, the choice of post-types to regenerate new thumbnail images for is limited to public ones:

class.admin.php, line 386
```php
foreach ( get_post_types( array( 'public' => true ), 'objects' ) as $ptype ):
```
This might create a conflict with intentionally hidden custom post-types like in this [plugin](http://wordpress.org/extend/plugins/custom-post-widget/).
I know it doesn't make sense to consider scenarios caused by another plugin, but in this case I think the following would do no harm:

```php
foreach ( get_post_types( array( 'public' => true, '_builtin' => false ), 'objects', 'or' ) as $ptype ):
```

This way, any CPT set up by a user would be included into the options of the plugin. It would be up to the user to decide whether their CPT should get regenerated images.