How to use do_shortcode() in wordpress

Function Reference/do shortcode

Description

Searches content for shortcodes and filters shortcodes through their hooks.

Usage

Parameters

$content
(string) (required) Content to search for shortcodes
Default: None

Return Values

(string)
Content with shortcodes replaced by the output from the shortcode’s handler(s).

Examples

[Total: 1    Average: 5/5]