shortcodes_service
class shortcodes_service implements shortcodes_service_interface
| internal |
Shortcodes Service.
Applies filtering to the given text by invoking registered MIDDAG shortcodes.
This function first checks if the text contains any middag shortcodes by looking for the keyword '[middag'. If no shortcode is found, the original text is returned unchanged. If shortcodes are detected, it retrieves all plugins that implement the function 'register_middag_shortcodes' and executes these functions. Finally, the shortcodes in the text are rendered by the manager_shortcodes::render method.
Methods
Applies filtering to the given text by invoking registered middag shortcodes.
Details
at line 61
static string
filter(string $text, array $options = [])
Applies filtering to the given text by invoking registered middag shortcodes.
Note: This method must be extremely fast