ims_apply_color_filter

Description

The “ims_apply_color_filter” action runs after the color filters have been applied to the image.

A plugin (or theme) can add an action with the code:

<?php add_action( 'ims_apply_color_filter', 'filter_function_name'); ?>

The hook is located in the image-store/admin/download.php file.

Example

// apply action
function action_ims_apply_color_filter( $image ) {
	imagefilter($image, IMG_FILTER_COLORIZE, 0, 255, 0)
}
add_action('ims_apply_color_filter', 'action_ims_apply_color_filter');

Note: $image is an image resource.


Leave a Reply

Your email address will not be published. Required fields are marked *