196 posts
  • 3 Years of Membership
  • Author Level 1
  • Collector Level 1
  • Exclusive Author
+1 more
ThemeBuddies
says

I think usually plugins have a class structure to them. If it is a good idea to include our custom functions or shortcodes in a plugin. Do they all need to be in a class? I just threw them in the file as I would in the functions.php file.

8 posts
  • 3 Years of Membership
  • Collector Level 2
  • Exclusive Author
  • Serbia
MustHaveThemes
says

It is not a good idea to change the basic plugin code, because of its updating. Try to handle the plugin output with your functions from functions.php.

196 posts
  • 3 Years of Membership
  • Author Level 1
  • Collector Level 1
  • Exclusive Author
+1 more
ThemeBuddies
says

sorry, I read your comment a few times and I don’t understand what you are saying. I am not changing anything. I am adding functions that would normally be in the functions.php file into a plugin file because themeforest wants these functions in a plugin so if the customer changes themes, they can take their content with them. I was just wondering the best way to code that plugin.

667 posts WordPress Gurus!
  • Author Level 9
  • Elite Author
  • Featured Author
  • Weekly Top Seller
+7 more
ThemeBeans
says

If it’s something they would want to carry with them among different themes, then yes I would use a plugin to create/manage it – such as post types/specialized widgets/shortcodes.

by
by
by
by
by
by