Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Calling custom class from shortcode class

Started by Muut Archive 9 years ago · 0 replies · 418 views
9 years ago

I'm developing a shortcode plugin much like the Shortcode UI plugin. Now I have code which is used in two shortcode handlers and in the shortcode plugin as well. So I want to place that code in a function in a new custom class possibly in a new PHP file in the same directory as the plugin.

The problem is that although I can call the function successfully from the plugin I'm having problems calling it from the shortcode handler function.

This is not a Grav specific problem I know but nevertheless I hope someone can help me out. Thank you!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1280 9 years ago
Archive · by Muut Archive, 9 years ago
2 888 9 years ago
Archive · by Muut Archive, 9 years ago
2 4018 9 years ago
Archive · by Muut Archive, 9 years ago
1 2893 9 years ago
Archive · by Muut Archive, 9 years ago
3 1077 9 years ago