You appear to be a bot. Output may be restricted
Description
Return the page for the shortcode IDExample shortcode ID is 123 then if they've chosen "page 1" the value will be 1 and if they've chosen "page 2" the value will be 2 <a href=url?bwscid123=1> page 1 </a> <a href=url?bwscid123=2> page 2 </a> If they've chosen another link the value is not set. *
Usage
$integer = bw_get_parm_shortcode_id( $id );
Parameters
- $id
- ( mixed ) required –
Returns
integer the required page ID, defaults to 1 if not setSource
File name: oik/shortcodes/oik-navi.phpLines:
1 to 7 of 7
function bw_get_parm_shortcode_id( $id ) { $page = bw_array_get( $_REQUEST, "bwscid$id", null ); if ( !$page ) { $page = 1; } return( $page ); }View on GitHub View on Trac