Support » Requests and Feedback » [REQ] Standard Plugin Function Naming Conventions

  • I suggest that those who write plugins use a prefix on their functions so they do not end up duplicating functions in other plugins. For example, wp-advanced-stats and wp-contactform both use the function getip(), so I had to go into the contactform plugin and rename it.

    It would eliminate this potential problem if plugin writers would make their functions something like wpas_getip() and wpcf_getip() respectively for the 2 plugins listed above.

    Thanks in advance for this considerations 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • Great idea Phil! I plan to update all of my plugins over the weekend and will definitely do this.

    Yup, I had already done that after noting the problem between the plugin manager and the theme manager (though now that I look there are some lingering “genericky” names in my spell checker, dang it). Good thought!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[REQ] Standard Plugin Function Naming Conventions’ is closed to new replies.