Posts by MattMao

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

Suppose that I have one plugin that can handle all the functionallity, however when it is activated nothing shows, because I must initiate parts of it somewhere. Now the question I want to know if this is allowed, to init these parts inside my theme or I must create another plugin for this(let’s say “Theme Functions”).
Example:
Plugin Core: contains multiple PHP classes.
class My_Metabox {...}
class My_theme_Options{...}
class My_CPT{...}

Theme: Init these classes inside my theme so when the user activate my theme and if the plugin(Plugin Core) is activated it will show the options required for this particular theme:

if(class_exists('My_Metabox ') ) {
    $meta_options = array(
        //all options for my metaboxes
    )
    new My_Metabox($meta_options);
}
//A similar call for other classes: My_theme_Options, My_CPT, etc.
...

So, is allowed to do such calls from theme?

If the plugin has not actived, the theme will lost the CORE CLASS. The theme must be running without the plugin.

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

We are all know that not all one’s theme widgets and shortcodes are the same, maybe some one need to have a special UI with different HTML, PHP, CSS class and id name.

But now the custom widgets and shortcodes should be in the plugin, how can I do it above?

If I add the folder named: widgets, shortcodes in theme to place the special widgets or shortcodes, When the plugin has actived, the special widgets or shortcodes will work.

Just like the woocommerce plugin does, let us to put the “woocommerce” folder in the theme to save the custom templates.

Does it allow?

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

Hi, Japh!

Continue to my above question: If the theme must be running without my plugin, I think the metabox and options both need to in the theme. Otherwise the user just got a twentytwelve theme after they paid $30-50.

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says
As an example, let’s say it’s a restaurant theme, and requires a plugin that enables various custom post types (such as menus etc.). In this case, with the plugin disabled, ideally it should still look roughly like the general aesthetic of the theme, but it won’t have nicely styled menus, etc.

Hi, Japh!

Your mean is that: If the user does’t install my plugin, my theme still needs to be running. Just lose some featrues from the plugin. Is it right?

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

+1

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

Hi, Japh!

I have read all the comment, but can’t find the below question:

You recommend us to add the funactions via plugins as much as possible, so I want to know, if the user only installed my theme, but not installed my plugin. I will not let the theme run. Does it allow?

Other words, the user must installed my plugin, then the theme will run.

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

about Custom Post Types must be in plugin.
Metabox should be included in plugin also?



thanks,

Custom Post Types

Shortcodes

Metabox is the part of wordpress.

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

7 months! Full Time Or Part Time?

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says


Hi, buddy. How to eliminate RECOMMENDED from the TGM plugn?
He’s updating the class to eliminate the issues

Thanks Chrisa. Have you contaced with the author?

137 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 000 and 250 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
MattMao says

Hi, Japh:

If we are using the TGM plugin, will get the RECOMMENDED information from theme check, is it allowed?

by
by
by
by
by
by