You appear to be a bot. Output may be restricted
Description
Save the token ids for later processing.TCES is an abbreviation for T_CONSTANT_ENCAPSED_STRING Basically what we're trying to do here is build up the complete hook name which may be specified with variables in string literals, or concatenation It's not actually necessary to store each of the tokens. BUT it doesn't really do any harm.
Usage
oikai_dummy_TCES( $key, $value, $tokens );
Parameters
- $key
- ( integer ) required – the index of the token to add
- $value
- ( string ) optional – the value of the token to add ( not used? may be null )
- $tokens
- ( array ) optional – the array of tokens ( not used? may be null )
Returns
voidSource
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 10 of 10
function oikai_dummy_TCES( $key, $value=null, $tokens=null ) { if ( $key ) { $dummy_TCES = bw_context( "dummy_TCES" ); $dummy_TCES[] = $key; } else { $dummy_TCES = array(); } bw_context( "dummy_TCES", $dummy_TCES ); bw_trace2( $dummy_TCES, "dummy_TCES", false, BW_TRACE_DEBUG ); }View on GitHub