Description
Trace $value to the trace log file if tracing is active
Usage
$mixed = bw_trace2( $value, $text, $show_args, $level );Parameters
- $value
- ( mixed ) optional – the value to be traced. The value can be a simple field, array or complex object such as a post
- $text
- ( string ) optional – additional information
- $show_args
- ( bool ) optional default: 1 – true if the parameter values are to be traced, false otherwise
- $level
- ( integer ) optional default: BW_TRACE_ALWAYS – the trace level requested
Returns
mixed $value – the first parameterSource
File name: oik-libs/libs/bwtrace.phpLines:
1 to 8 of 8
function bw_trace2( $value=null, $text=null, $show_args=true, $level=BW_TRACE_ALWAYS ) { global $bw_trace_on, $bw_trace_level; if ( $bw_trace_on && ( $level <= $bw_trace_level ) ) { return( bw_lazy_trace2( $value, $text, $show_args, $level )); } else { return( $value ); } }View on GitHub
Called by
31 to 45 of 786
- bw_code() – Display information about a specific shortcode
- bw_content() – Format the full content of a post
- bw_count() –
- bw_create_parsed_object() – Create the parsed object
- bw_crumbs() – Implement [bw_crumbs] shortcode
- bw_csv_dashicons() – Convert to dash icons
- bw_current_url() – Return the current URL
- bw_cycle_validate_fx() –
- bw_dash() – Implement [bw_dash] shortcode
- bw_dash_link() – Create an Add new link for a selected post_type using a dashicon
- bw_default_labels() – Attempt to set labels given the ‘name’ and/or ‘singular_name’
- bw_deletefile() – Wrapper to unlink
- bw_delete_all_meta_key() – Delete unnecessary "_do_not_reschedule" metadata
- bw_detexturize() – Detexturize content
- bw_echo() – bw API partial equivalent of PHP’s output buffering
Invoked by
Calls
1 to 1 of 1
