Filter Hooks

The Before After Slider supports three filters, which can be used to change the content.

Examples

Note: Use the Login/Logout button on the right to see the difference.

Please login to see the image comparator.

Usage

Name Arguments
image_comparator_left_image

Filter to change the html source of the left image.

The filter takes 2 arguments:

  1. The html source for the left image
  2. An array of all given shortcode parameters
image_comparator_right_image

Filter to change the html source of the right image.

The filter takes 2 arguments:

  1. The html source for the right image
  2. An array of all given shortcode parameters
image_comparator_content

Filter to change the html source of final comparator code.

The filter takes 2 arguments:

  1. The html source for the final comparator code
  2. An array of all given shortcode parameters