Title: plugin development best practice
Last modified: August 18, 2016

---

# plugin development best practice

 *  [bacteriaman](https://wordpress.org/support/users/bacteriaman/)
 * (@bacteriaman)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/plugin-development-best-practice/)
 * 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)

[←](https://wordpress.org/support/topic/plugin-development-best-practice/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-development-best-practice/?output_format=md)
2

 *  [microkid](https://wordpress.org/support/users/microkid/)
 * (@microkid)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/plugin-development-best-practice/page/2/#post-611113)
 * 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)

[←](https://wordpress.org/support/topic/plugin-development-best-practice/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-development-best-practice/?output_format=md)
2

The topic ‘plugin development best practice’ is closed to new replies.

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)

 * 16 replies
 * 5 participants
 * Last reply from: [microkid](https://wordpress.org/support/users/microkid/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/plugin-development-best-practice/page/2/#post-611113)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
