This filter exists to override the total amount of slides that a SlideDeck may have. As this is a filter, be sure to return an integer in your function regardless of if you have modified it.
To add your own function to modify the total slides in a SlideDeck, you would hook into this action with the following code:
<?php add_filter( 'slidedeck_total_slides', 'my_function_name', 10, 2 ); ?>
The slidedeck_total_slides action receives 2 parameters
(integer) The total number of slides allowed for display in the SlideDeck being rendered
(array) The SlideDeck descriptor array
Located In File: