custom plugin -
add_action('wp_enqueue_scripts', 'facebook_wall_and_social_integration_scripts');
this action - "wp_enqueue_scripts" is responsible for injecting script and style
files declaration for your plugin.So now you will add above registered function -
function facebook_wall_and_social_integration_scripts() {Â
wp_enqueue_script('jquery');Â Â
wp_register_script('mitsol_feed_javascript', plugins_url('js/fbookwall.js', __FILE__), array("jquery"));Â
wp_enqueue_script('mitsol_feed_javascript');Â Â
wp_register_style('mitsol_feed_bootstrap', plugins_url('css/bootstrap.css', __FILE__));Â wp_enqueue_style('mitsol_feed_bootstrap');
}
here -
"wp_enqueue_script" will register jquery first if you needed.
"wp_register_script" will register custom javascript file inside your plugin, in
this case you have to add "wp_enqueue_script" as function shows.
Likewise, you add styles by the last two lines in the above function.
Hope you liked it.if you have further questions, then post in discussions forum.