Title: Naming Conventions
Last modified: August 22, 2016

---

# Naming Conventions

 *  Resolved [Bryan Willis](https://wordpress.org/support/users/codecandid/)
 * (@codecandid)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/naming-conventions-1/)
 * Users Ultra and this plugin break because they both use too simple of names for
   functions that are not inside classes.
 * [http://wordpress.org/support/topic/naming-conventions?replies=1#post-5901348](http://wordpress.org/support/topic/naming-conventions?replies=1#post-5901348)
 * Please update the names of these functions and options:
 *     ```
       my_plugin_activate
       function my_plugin_redirect
       my_plugin_do_activation_redirect
       my_plugin_redirect
       ```
   
 * Maybe something like this with your plugins prefix:
 *     ```
       wp2yt-uploader_plugin_activate
       wp2yt-uploader_plugin_redirect
       wp2yt-uploader_do_activation_redirect
       wp2yt-uploader_plugin_redirect
       ```
   
 * [https://wordpress.org/plugins/wp2yt-uploader/](https://wordpress.org/plugins/wp2yt-uploader/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/naming-conventions-1/#post-5196960)
 * Hi Codecandid,
 * You are correct. This was one of the first plugins I built, and the code was 
   not structured properly, and naming conventions not well thought out.
 * I will be releasing version 2.0 with a completely revamped code base, including
   proper naming conventions and OOP structure.
 * Thanks,
    Evan
 *  Thread Starter [Bryan Willis](https://wordpress.org/support/users/codecandid/)
 * (@codecandid)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/naming-conventions-1/#post-5196985)
 * No problem Evan. Pretty impressive for one of your first plugins!
 *  [Magina](https://wordpress.org/support/users/alexis-mag/)
 * (@alexis-mag)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/naming-conventions-1/#post-5197114)
 * You should also change the defined constants in the main file “youtube-for-wordpress.
   php”.
    For security reasons, I never use “wp-content” and “wp-admin” default 
   folders, and I always rename them. Activation of your plugin will trown a error
   500 with your defined namefolders.
 *  Plugin Author [YouTubeforWordPress](https://wordpress.org/support/users/youtubeforwordpress/)
 * (@youtubeforwordpress)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/naming-conventions-1/#post-5197115)
 * Hi Magina,
 * Thanks for the input. The plugin was re-written since this thread was first opened,
   so function names no longer conflict. We’ll look into re-defining the constants
   to avoid errors in situations like you have mentioned. We appreciate you reporting
   the issue.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Naming Conventions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp2yt-uploader_d8e1bb.svg)
 * [YouTube for WordPress](https://wordpress.org/plugins/wp2yt-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp2yt-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp2yt-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/wp2yt-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp2yt-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp2yt-uploader/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [YouTubeforWordPress](https://wordpress.org/support/users/youtubeforwordpress/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/naming-conventions-1/#post-5197115)
 * Status: resolved