Support » Plugins » Javascript in WordPress Plugin

  • Hi, i’m trying to use Javascript in my own WordPress plugin.
    I’ve used this code:

    if (function_exists('wp_register_script')) {
    		$src = "/" . PLUGINDIR . "/XMLProductFeed/js/ReadXML.js";
    		wp_register_script('readxml', $src);
    	}

    but it shows nothing when I open the plugin page.
    Any ideas? I hope it is not something stupid…

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Javascript in WordPress Plugin’ is closed to new replies.