Can I activate 2 versions of the same plugin?
-
I’ve never made a plugin before. But I have checked out the Plugin Editor to see the code and tinker with it. Question:
Can I make a duplicate of Weighted_Words.php and call it Weighted_Words_2.php? I want to activate both versions, with just 1 little change in the code between them, and then show the output in 2 different places on my blog. Is that going to mess things up? If I do this, can I simply call
<?php weighted_words2(); ?>
instead of the regular
<?php weighted_words(); ?>
in my template? Or is there someplace in the plugin itself where I need to rename the function if I want “2 of them”?Reason why (if this matters): I enjoy the Weighted_Words plugin, and now I want to run 2 versions of it on the same blog. One version is in the sidebar, and I customized the plugin so the output is NOT sorted alphabetically. Now I want to run another version of the plugin on a Page called “Glossary” or “Vocabulary”, and in this case I *do* want the output sorted alphabetically. The trouble is, the alphabatizing is not an argument which I can put in the template_tag that calls the Weighted Words output. The place I change this is in the Plugin Editor, in the plugin itself.
- The topic ‘Can I activate 2 versions of the same plugin?’ is closed to new replies.