How to deal with add_shortcode() function warning occurred because of Visual Composer custom modules?

wordpress

#1

Hi,

One of the errors for that my theme was rejected is the following:

WARNING: The theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.

I use add_shortcode() function in my theme to create custom Visual Composer content modules as its as plugin documentation recommend and as many themes author build themes.

How to deal with this warning?
Thanks


#2

Just ignore it or move that to plugin


#3

I can ignor it but the reviewer not!


#4

Have you got soft rejection because of it since as i last recall it is still not mandatory


#5

I believe you need to add them as a plugin rather than having them in the theme itself.