Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

wordpress get plugin url in javascript

<?php wp_localize_script('mylib', 'WPURLS', array( 'siteurl' => get_option('siteurl') )); ?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wordpress #plugin #url #javascript
ADD COMMENT
Topic
Name
7+2 =