FAQ update proposed
-
The section of the FAQ “Execute a function when all scripts are loaded” didn’t work for me when I tried to do as in the example:
add_filter( 'wdjs_before_end_lab', 'call_shitty_code' ); function call_shitty_code( $end ) { $end .= '.PluginShittyCode()'; return $end; }
I figured it out, and suggest updating the example to read:
add_filter( 'wdjs_before_end_lab', 'call_shitty_code' ); function call_shitty_code( $end ) { $end .= '.wait(PluginShittyCode)'; return $end; }
https://www.ads-software.com/plugins/wp-deferred-javascripts/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘FAQ update proposed’ is closed to new replies.