Shortcodes,_adding_to_a_plugin - e107inc/e107v1 GitHub Wiki
title: Shortcodes, adding to a plugin permalink: /Shortcodes,_adding_to_a_plugin/
As of e107 v0.7.6 there are two ways to add shortcodes to your plugin:
1. adding any file in your plugin folder with the extension .sc
You will then just need to include a newcode.sc
file in your main plugin directory. See e107_files/shortcodes
for sample files. Whenever {NEWCODE} is found, it will be replaced with the code returned from your newcode.sc
2. adding an e_sc.php file in your plugin folder. (to be continued)
Note: To be sure that your shortcode is registered in e107, check the Preference Viewer in admin -> database and look for your file in the pref called shortcode_list. If it is not shown, run the Plugin Scan & View in admin -> database.