Last active
August 29, 2015 14:06
-
-
Save n7studios/dcfc0ca29128facce399 to your computer and use it in GitHub Desktop.
Soliloquy: Redirect after nth slide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'soliloquy_api_after_transition', 'count_slide_transition' ); | |
function count_slide_transition( $data ) { | |
ob_start(); | |
?> | |
count++; | |
if (count == 10) { | |
// Do redirect | |
} | |
<?php | |
echo ob_get_clean(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment