oikai_handle_token() – Handle this specific token

You appear to be a bot. Output may be restricted

Description

Handle this specific token

If it exists we invoke a function generated from the token_name(), passing the given parameters

Usage

oikai_handle_token( $key, $token, $tokens );

Parameters

$key
( integer ) required – the index to the $tokens array
$token
( array ) required – token array – the actual token
$tokens
( array ) required – the full tokens array

Returns

void

Source

File name: oik-shortcodes/shortcodes/oik-api-importer.php
Lines:

1 to 11 of 11
function oikai_handle_token( $key, $token, &$tokens ) {
  $tn = token_name( $token[0] );
  $funcname = "oikai_handle_token_$tn";
  if ( function_exists( $funcname ) ) {
    //span( $tn );
    $funcname( $key, $token, $tokens );
    //epan();
  } else {
    //e( $token[1] );
  }
}