Closed dimitrilongo closed 9 years ago
You can add your class as a dependency to the main includes class. Then you would add the functions inside of it just like you would have if they were in the main public class.
thanks @DevinVinson i will try that. I close that subject
To add multiple shortcode i use https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/issues/262 it works really great. But i need to add more that 20 shortcodes.
in
class-plugin-name.php
and in
class-plugin-name-public.php
so for 20 shortcodes i will have 20 functions in
class-plugin-name-public.php
some can be very long. i'd like to require a class with all shortcodes functions, but don't know how. because inclass-plugin-name.php
it calls function name located in inclass-plugin-name-public.php
Hope i'm clear