469 posts
  • Helped several times protecting Envato Market against copyright violations
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Sells items exclusively on Envato Market
+7 more
Jaynesh says


One thing that still isn’t explained to me clearly is the use of Options plugins. Many authors including myself use plugins to add custom options. e.g OptionTree

How would this be handled for themes using OptionTree?

Can I get an official response on this ASAP so I know what path to take with my theme.

Thanks
There is no problem with using an options framework such as OptionTree. It is even listed as allowable under Phase 2 in the requirements article.

Hello,

I don’t see this mentioned in the Notes or the official requirements. So can you confirm that Options plugins such as OptionTree and Advanced Custom Fields can be hard coded into the theme and not be included via TGM?

Thanks

2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
bitfade says
Some questions about phase 2 and bespoke plugins:

  • most authors already have built their own frameworks, by moving features into plugins duplicate code will most likely occur: it’s safe to assume that this won’t be an issue during item review ?

  • Due the above (common code used by both plugin and theme), some updates may require buyers to update both at the same time. According to direct experience, some buyers will not (for instance they could update theme only) either by mistake or due to technical issues (as in, the plugin update server being down) so we must somehow prevent buyer website from breaking until they do it the proper way. A possible solution could be

    1. to embed plugin code in the theme as well
    2. if plugin is not installed, none of the above code will be ever used
    3. if plugin is installed and version matches, plugin code is used
    4. if plugin is installed but not updated, embedded plugin code is used until the buyer updates (goto 2)

    Would the above be acceptable under the new rules ?
373 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Australia
+4 more
Japh says

I don’t see this mentioned in the Notes or the official requirements. So can you confirm that Options plugins such as OptionTree and Advanced Custom Fields can be hard coded into the theme and not be included via TGM?

Search for “Theme options framework” in the page and you will find it :)

Advanced Custom Fields is a separate issue, and should be a plugin via the TGM Plugin Activation class.

373 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Australia
+4 more
Japh says

Some questions about phase 2 and bespoke plugins:

  • most authors already have built their own frameworks, by moving features into plugins duplicate code will most likely occur: it’s safe to assume that this won’t be an issue during item review ?

  • Due the above (common code used by both plugin and theme), some updates may require buyers to update both at the same time. According to direct experience, some buyers will not (for instance they could update theme only) either by mistake or due to technical issues (as in, the plugin update server being down) so we must somehow prevent buyer website from breaking until they do it the proper way. A possible solution could be

    1. to embed plugin code in the theme as well
    2. if plugin is not installed, none of the above code will be ever used
    3. if plugin is installed and version matches, plugin code is used
    4. if plugin is installed but not updated, embedded plugin code is used until the buyer updates (goto 2)

    Would the above be acceptable under the new rules ?

This sounds very reasonable to me. Reviewers will look at these on a case-by-case basis.

189 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Sells items exclusively on Envato Market
+5 more
Cubell says

edit: I just realized that I only read the notes! just saw the link to the actual list of requirements, ignore this post please :)

811 posts We're a nice team!
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $125,000+ on Envato Market
+10 more
ThemeFocus says

Themes are not permitted to add options that define the number of posts to show on archive or category pages via a global setting.

If I create a custom post type, then can I add a options for it with the number of posts show?

Thanks.

22 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Had an item featured on Envato Market
  • Sells items exclusively on Envato Market
  • Has sold $250,000+ on Envato Market
+3 more
ThemesIndep says
Advanced Custom Fields is a separate issue, and should be a plugin via the TGM Plugin Activation class.

Hi Japh, adding ACF as a plugin? If buyer switch to another theme, ACF won’t work anyway. All calls to ACF fields will remane in a previous theme. Also, when ACF is being included in the theme it being used as a Lite Mode, which is defined in functions.php. What to do about that?

8 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Germany
BytesForAll says

Thanks for allowing dynamic inline CSS :bigsmile:

373 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Australia
+4 more
Japh says

If I create a custom post type, then can I add a options for it with the number of posts show?

Correct, providing it’s not done via a global setting that will affect, for example, plugins that need to show a list of posts.

373 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Australia
+4 more
Japh says

Hi Japh, adding ACF as a plugin? If buyer switch to another theme, ACF won’t work anyway. All calls to ACF fields will remane in a previous theme. Also, when ACF is being included in the theme it being used as a Lite Mode, which is defined in functions.php. What to do about that?

While I understand that if the theme is specifically referring to ACF field names, they won’t show in another theme, the data will still be available in the back end for the user.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by