Description
Appends some more jQuery code to be output laterIf it's not already set then we need to enqueue jquery and ensure that all the jQuery gets flushed at the end of processing. Note:
Usage
bw_jq( $text );Parameters
- $text
- ( mixed ) required –
Returns
voidSource
File name: oik/libs/bobbfunc.phpLines:
1 to 13 of 13
function bw_jq( $text ) { global $bw_jq; if ( !isset( $bw_jq ) ) { wp_enqueue_script( 'jquery' ); if ( !is_admin() ) { add_action( 'wp_footer', "bw_jq_flush", 25 ); } else { add_action( "admin_print_footer_scripts", "bw_jq_flush", 25 ); } //bw_trace2( $bw_jq, "bw_jq not set" ); } $bw_jq .=$text; }View on GitHub View on Trac
Called by
1 to 2 of 2
