You appear to be a bot. Output may be restricted
Description
Return a hook name from the dummy_TCESThe hook name is the concatenation of the tokens we've saved with double or single quotes removed
Usage
$string = oikai_concoct_hook_name2( $tokens );
Parameters
- $tokens
- ( array ) required – the tokens
Returns
string $hook_name – which may be ''Source
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 16 of 16
function oikai_concoct_hook_name2( $tokens ) { $TCESes = bw_context( "dummy_TCES" ); //bw_trace2( $TCESes, "TCESes", false ); $hook_name = ''; if ( is_array( $TCESes) && count( $TCESes ) ) { foreach ( $TCESes as $TCES ) { //bw_trace2( $TCES, "TCES", false ); if ( is_array( $tokens[$TCES] ) ) { $hook_name .= trim( $tokens[$TCES][1], "\"'" ); } } } bw_trace2( $hook_name, "hook_name", false, BW_TRACE_DEBUG ); //br( "hook_name $hook_name" ); return( $hook_name ); }View on GitHub