The Before After Slider supports three filters, which can be used to change the content.
- You can find an example implementation on GitHub
- More information about using filters in WordPress: http://codex.wordpress.org/Function_Reference/add_filter
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:
|
image_comparator_right_image |
Filter to change the html source of the right image. The filter takes 2 arguments:
|
image_comparator_content |
Filter to change the html source of final comparator code. The filter takes 2 arguments:
|