Using a plugin for new shortcodes
-
Looking in the changelog you mentioned that it’s now possible to have extensions loaded anywhere, including a plugin… however, I’m struggling to get this right.
Your example…
$locations[‘/path/to/plugin/extensions’] = ‘https://uri.to/plugin/extensions’;My code…
$locations[plugin_dir_path(__FILE__) . ‘framework-customizations/extensions/’] = plugins_url( ‘extensions’, __FILE__ ) . ‘/framework-customizations/extensions/’;Do you have a basic working example ( i.e. using the wp function for a dynamic domain ) of how this can be used inside a plugin?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Using a plugin for new shortcodes’ is closed to new replies.