Description
Return the next unique shortcode IDThere may be loads of shortcodes Each of them could potentially display paged content so each one with paged content has to be given a unique ID
Usage
$integer = bw_get_shortcode_id( $set );Parameters
- $set
- ( bool ) optional – whether or not to increment the ID.
Returns
integer the ID suffixSource
File name: oik/shortcodes/oik-navi.phpLines:
1 to 7 of 7
function bw_get_shortcode_id( $set=false ) { static $id = 0; if ( $set ) { $id++; } return( $id ); }View on GitHub View on Trac
Called by
1 to 3 of 3
