Skip to content

Instantly share code, notes, and snippets.

@n7studios
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n7studios/dcfc0ca29128facce399 to your computer and use it in GitHub Desktop.
Save n7studios/dcfc0ca29128facce399 to your computer and use it in GitHub Desktop.
Soliloquy: Redirect after nth slide
<?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