oikai_determine_function_type() – Determine the function type

You appear to be a bot. Output may be restricted

Description

Determine the function type

Usage

$string = oikai_determine_function_type( $funcname );

Parameters

$funcname
( string ) required – the function name

Returns

string function type: "internal", "user" or original funcname

Source

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

1 to 14 of 14
function oikai_determine_function_type( $funcname ) {
  $defined_functions = get_defined_functions();
  $type = oikai_query_function_type( $defined_functions, "internal", $funcname );

  if ( !$type ) {
    $type = oikai_query_wordpress_api_type( $funcname );
  }

  if ( !$type ) {
    $type = oikai_query_function_type( $defined_functions, "user", $funcname );
  }
  //e( "Type: $type " );
  return $type;
}