Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Oglasi
- Plugin URI:
- Description: Custom post type "Oglasi".
- Version: 1.0
- Author: Dragi
- Author URI:
- License: GPLv2
- */
- function james_adds_to_the_head() {
- wp_register_script( 'add-bx-js', plugin_dir_url( __FILE__ ) . 'js/filter-oglasi.js', array('jquery'),'',true );
- }
- add_action( 'wp_enqueue_scripts', 'james_adds_to_the_head' );
- jquery(document).ready(function() {
- console.log("MAIN IS LOADED");
- alert("Dragi");
- });
- function james_adds_to_the_head() {
- wp_register_script( 'add-bx-js', plugin_dir_url( __FILE__ ) . 'js/filter-oglasi.js', array('jquery'),'',true );
- wp_enqueue_script( 'add-bx-js' );
- }
- add_action( 'wp_enqueue_scripts', 'james_adds_to_the_head' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement