184 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
  • Sold between 1 and 100 dollars
  • United States
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.

5 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Serbia
freelancerrs 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.

184 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
  • Sold between 1 and 100 dollars
  • United States
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.

416 posts WordPress Gurus!
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 1-2 years
  • Referred between 200 and 499 users
  • United States
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