Giving parameters to a function called through wp_head?
-
Good afternoon, im kind of new to wordpress plugin making, so this is probably a dumb question.
I’m working on a plugin that is basically a shortcode for image effects. The problem is that each image might have different effects… for example
[imgeffect src=”image.png” effect=”1″]
[imgeffect src=”image2.png” effect=”2″]
etc.I already got the plugin to give each image a random class, and to include the jquery plugins to give the effect to these images. Sadly, I cant seem to send ‘class’ and ‘effect’ parameters to the function i built to add the on-ready javascript code… i need it to call the plugin using $(‘.class’).plugin();
Sorry about my english, if you need me to explain myself better let me know.
Regards,
Bruno Q.
- The topic ‘Giving parameters to a function called through wp_head?’ is closed to new replies.