Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<?php
add_filter( 'swas_footnote_start_number', 'be_footnotes_start' );
/**
* Footnotes Start
* @since 1.0.0
*
* When viewing "All Pages" option, ensure start number is 1
*
* @param int $number
* @return int
*/
function be_footnotes_start( $number ) {
global $multipage;
if( get_query_var('all-pages') && $multipage )
$number = 1;
return $number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.