May 2017
Beginner to intermediate
536 pages
14h 25m
English
We started the process of integrating Backbone.js and Underscore.js to identify the use of the JavaScript libraries provided with the WordPress core. Let's begin the integration by loading these libraries into WordPress. The following code illustrates how we can include these existing libraries into plugins:
function include_scripts() { wp_enqueue_script('backbone'); } add_action('wp_enqueue_scripts', 'include_scripts');
The preceding code loads the Backbone.js library on the frontend of the application with the necessary dependencies such as jQuery and Underscore.js. We can load all the other libraries with a similar technique. Take a look at the available JavaScript libraries by visiting the ...
Read now
Unlock full access