Add a few small features
-
For those who have low timeouts set and large libraries, you should support your regeneration to run longer than the default 30 seconds.
In your main plugin file (pdf-image-generator.php) line 168 just add
set_time_limit(0);
Also, link up your ids in the results pane. It’s a pain in the butt to copy and paste the pdf ID’s to find a post.
echo '<div class="pdf generated' .( $regenerate && $thumbnail_id ? ' regenerated' : '' ). '">'; echo '<p class="img">'.get_the_post_thumbnail( $pdf->ID, 'medium' ).'</p>'; echo '<p class="txt">ID: <a href="'.get_edit_post_link($pdf->ID).'">'.$pdf->ID.'</a> / <strong>' .( $regenerate && $thumbnail_id ? 'An image was REGENERATED' : 'A new image was GENERATED' ). '</strong></p>'; echo '</div>';
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add a few small features’ is closed to new replies.