Description
Return the function name to be used to 'theme' the outputWe append to the function name prefix to find the most precise name present
Usage
bw_theme_function( $prefix, $suffix );Parameters
- $prefix
- ( string ) optional default: _ – This routine assumes that the $prefix function exists
- $suffix
- ( string ) optional – optional suffix for multiple theming functions
Returns
voidSource
File name: oik-header/oik-header.phpLines:
1 to 28 of 28
function bw_theme_function( $prefix="_", $suffix = NULL ) { $funcname = $prefix; $current_theme = bw_get_theme(); $testname = $funcname . bw_function_namify( $current_theme ); if ( function_exists( $testname ) ) { $funcname = $testname; } else { $child_theme = is_child_theme(); bw_trace2( $child_theme, "child_theme?", false ); if ( $child_theme ) { // get parent theme name $template = get_template(); $testname = $funcname . bw_function_namify( $template ); bw_trace2( $testname, "testname", false ); if ( function_exists( $testname ) ) { $funcname = $testname; } } } $testname .= $suffix; if ( function_exists( $testname )) $funcname = $testname; return bw_trace2( $funcname ); }
Called by
1 to 2 of 2
Invoked by
Calls
1 to 3 of 3
Call hooks
API Letters:
