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

static string
filter(string $text, array $options = [])

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

Parameters

string $text

the input text to be processed

array $options

additional options that may influence processing behavior

Return Value

string

the processed text after applying registered shortcodes