APP_Widget::register_scripts()
Use this method to register scripts and styles with provided wrapper-methods register_script() and register_style().
Package
Contents
Description Description
Files will automaticly enqueued through method enqueue_scripts() in condition, that widget is active.
If you want load scripts only on page where widget shown – use parameter $in_footer = true in the register_script() method.
If you don’t want use internal wrapper-methods for loading files – use regular WP enqueue functions in this method.
By default, loads one script and one style if appropriate urls were specified in ‘defaults’ parameter.