Need to modify header in custom plugin
-
I’ve created an image upload plugin which creates a thumbnail with a black background.
And to save that thumbnail I have to modify header.
header('Content-Type: image/jpeg'); imagejpeg($background, $thumburl, 100);but I get
Warning: Cannot modify header information - headers already sent by (output started at ...\wp-admin\menu-header.php:88) in ...\wp-content\plugins\gowest-gallery\thumbnails.php on line 76Anyone know how to fix this or a workaround?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Need to modify header in custom plugin’ is closed to new replies.