TGM-Plugin-Activation text-domain Warning

I got a soft reject with this comment:
“The theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.”

I tried to use “TGM-Plugin-Activation” but theme checker gives another error:
“Warning: More than one text-domain is being used in this theme. This means the theme will not be compatible with language packs. The domains found are xxx, tgmpa”.

I downloaded a fresh copy of TGMPA using the Custom Generator and wrote my textdomain but “class-tgm-plugin-activation.php” no matter contains “tgmpa”.

It shouldn’t matter imho but just update all instances of tgmpa to your text-domain and then copy the tgmpa pot file contents to your pot file (if you have one)

The shortcode part, all shortcodes should be in a plugin that your users install with the theme, call it something like themename Core or something similar so they know what it is.

I used “” below and it works fine :slight_smile:

Thanks for your replies. Yes with “” it works :slight_smile:

1 Like