A WordPress-centric search engine for devs and theme authors



image_save_pre ›

Since2.9.0
Deprecated
apply_filters( 'image_save_pre', $image, $attachment_id )
Parameters: (2)
  • (resource) $image Image resource to be streamed.
    Required: Yes
  • (int) $attachment_id The attachment post ID.
    Required: Yes
Defined at:
Codex:

Filters the GD image resource to be streamed to the browser.





Source

$image = apply_filters( 'image_save_pre', $image, $attachment_id );