623 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says


Are the shortcodes given in the Inadmissible list not allowed in themes anymore??

But what about a pagebuilder who uses shortcodes to create a layout or something?

Or is it only allowed when the shortcodes are inside a plugin??
Yes, inadmissible shortcodes aren’t allowed anymore in the theme, they should reside in a plugin ;)

Ok! and you can just put the plugin inside the package like a asked above? Cuz i’ve been working on a KILLER page composer, would be a shame if those moths of work will be for nothing :)

116 posts
  • Has referred 50+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
nagaemas says



Are the shortcodes given in the Inadmissible list not allowed in themes anymore??

But what about a pagebuilder who uses shortcodes to create a layout or something?

Or is it only allowed when the shortcodes are inside a plugin??
Yes, inadmissible shortcodes aren’t allowed anymore in the theme, they should reside in a plugin ;)
Ok! and you can just put the plugin inside the package like a asked above? Cuz i’ve been working on a KILLER page composer, would be a shame if those moths of work will be for nothing :)

Yes, I’ve already started converting the framework I’ve been working on for the last two months to separate modular plugins, and that’s what I’m going to do as well :)

90 posts
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Net-Labs says

Siddarth & Japh thanks for the feedback, all seems clearer in the morning.

After reading through the TGM plugin activation class, it seems that all that’s needed can be done.

I’m on board with the changes.

Last question:

Can I include all my functionality in one plugin or will it need to be different ones?:

one restaurant pack plugin

vs

1 plugin for food menus —1 plugin for reservations - 1 plugin for specials & promotions

If i can get my head around this one i’m ready to roll.

AJ

116 posts
  • Has referred 50+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+5 more
nagaemas says

Siddarth & Japh thanks for the feedback, all seems clearer in the morning.

After reading through the TGM plugin activation class, it seems that all that’s needed can be done.

I’m on board with the changes.

Last question:

Can I include all my functionality in one plugin or will it need to be different ones?:

one restaurant pack plugin

vs

1 plugin for food menus —1 plugin for reservations - 1 plugin for specials & promotions

If i can get my head around this one i’m ready to roll.

AJ

Want to know about this also, is it allowed to make plugin packages for the themes, thus like converting the framework into a plugin, or should the plugins be really modular so it can be used on all themes?

101 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
Speed730 says

Security Requirements section is the best part thanks :)

623 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says

@nagaemas thx, and good luck with the work! :)

@Net-Labs good point – i’m guessing they need to be separate plugins. Since this whole thing is about ‘good practice’. But it should depend on the functionality – if the separate functions rely on eachother i think they could be in 1 plugin.

But lets wait and see what they have to say about this :)

32 posts
  • Has collected 1+ items on Envato Market
  • Located in United States
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
dyspersion says




can we also add a SSL check for all external scripts/styles loaded, Ive had some cases where assets fail because of SSL.
function prefix_styles(){
//Check if is ssl
$schema = is_ssl() ? 'https://' : 'http://'; 
wp_register_style( 'cw-font', $schema . 'fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic' , array(), 1.0 , false  );    
}

Perhaps it would make more sense for these assets to be loaded without the protocol so they adopt whatever the current protocol is? Thoughts?
I believe scripts should ideally be loaded with no protocol specified ex:
//domain.tld/filename.ext
, but keep in mind that that doesn’t work on local (MAMP-based) servers where the protocol is
file://dir/dir2/filename.ext
.
If something is being generated by WordPress and served by Apache (the A in MAMP) it’s being generated and served over HTTP or HTTPS protocols. file: just views static html files.

You’re right! I now can’t remember why it doesn’t work on my MAMP setup, but I remember there was an issue there. Too tired; time for bed. Thx for clarifying!

366 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+5 more
Japh Envato team says

Another questions: Is it OK to pack your own set of plugins inside the theme folder for buyers to upload and activate? Like said in the TGM instructions:
'source'                => get_stylesheet_directory() . '/lib/plugins/tgm-example-plugin.zip', // The plugin source
Does this mean every theme folder will be packed with plugin files? If so… is that a good thing since a plugin should be in de plugins folder ?

Yes, this is ok, and no that’s not how TGMPA works. The plugin is installed from the packaged location into the plugins directory by TGMPA.

148 posts
  • Has been part of the Envato Community for over 1 year
loveetc says

@Japh

Just a quick question. Can we use social links (twitter/facebook etc) in the theme to share the posts? These links use iframe to display their buttons and you get the “INFO” message that the iFrame has been used.

366 posts WordPress Guy
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+5 more
Japh Envato team says

Can I include all my functionality in one plugin or will it need to be different ones?:

one restaurant pack plugin

vs

1 plugin for food menus —1 plugin for reservations - 1 plugin for specials & promotions

Assuming the functionality makes sense together, this is exactly what I would expect. A restaurant plugin that gives all restaurant functionality to a theme that supports it.

by
by
by
by
by
by