• Hello,

    I’m new to WordPress, but not new to LAMP development.

    I have reviewed the plugin development documentation and am ready to create my first plugin (for eventual community release.)

    Using a small JavaScript library, the plugin will display the full-size version of a thumbnail image. This is liken to Thumbnail Viewer except the image will appear instantly on mouseover instead of clicking.

    I therefore need to add the onmouseover and onmouseout attributes to each image tag. What’s the best way to accomplish this? Thumbnail Viewer manipulates the image tag on the fly with preg_replace. Is this the most efficient way to go about it or is there a better way?

    All comments/suggestions greatly appreciated.

Viewing 16 replies (of 16 total)
  • I don’t get it.

    If <!–yourtag–> is in the post, you can use filters, and if <!–yourtag–> is in the template, it’s silly, cause its just as easy to put <?php some_function(); ?> in your template as putting <!–yourtag–> there.

Viewing 16 replies (of 16 total)
  • The topic ‘plugin development best practice’ is closed to new replies.