Filters
Filters give you the ability to change data during the execution of WordPress. Callback functions for Filters will accept a variable, modify it, and return it. They are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. Filters expect to have something returned back to them.
https://developer.wordpress.org/plugins/hooks/filters/
tkt_scs_register_shortcode
Allow External ShortCodes to be added to the TukuToi ShortCodes GUI.
Description
Other plugins or users can add ShortCodes to the TukuToi ShortCodes GUI. They will then be displaying inside the TukuToi ShortCodes GUI Dialogue. It is up to the third party to provide valid Forms for those ShortCodes and source code.
Note: Translations can not be done in this plugin because there litereally could be any string passed as the ShortCode label. Instead, 118n has to be done when adding the Shortcode using this filter, on the "external" side.
Parameters
$external_shortcodes = array()
()
tkt_scs_register_shortcode_type
Allow External ShortCodes to be added to the TukuToi ShortCodes GUI.
Description
Other plugins or users can add ShortCodes to the TukuToi ShortCodes GUI. They will then be displaying inside the TukuToi ShortCodes GUI Dialogue. It is up to the third party to provide valid Forms for those ShortCodes and source code.
Note: Translations can not be done in this plugin because there litereally could be any string passed as the ShortCode label. Instead, 118n has to be done when adding the Shortcode using this filter, on the "external" side.
Parameters
$external_shortcode_types = array()
()
tkt_scs_{$this->shortcode}_shortcode_form_gui
Apply filter to allow other ShortCodes to be added.
Description
Other plugins or users can add ShortCodes to the TukuToi ShortCodes GUI. They will then be displaying inside the TukuToi ShortCodes GUI Dialogue. It is up to the third party to provide valid Forms for those ShortCodes and source code.
You must check for $tag (shortcode) when returning value to this filter.
Parameters
$file
(string) The path to the ShortCode Form GUI. Default 'path/to/tkt-shortcodes-plugin/admin/partials/tkt-shortcodes-{$tag}-form.php'. Accepts 'urlpath/to/file.php'.
$this->shortcode
()
tkt_scs_shortcodes_fieldset_explanation
Parameters
'This option has no description'
()
tkt_scs_custom_inner_shortcodes
Filter the list of custom shortcodes that can be used inside other shortcodes or as HTML attribute values.
Parameters
$custom_shortcodes
(array) List of shortcodes.
the_content
We need to run the content thru ShortCodes Processor, otherwise ShortCodes are not expanded.
Parameters
$out
()
tkt_post_process_shortcodes
Parameters
$out
()