Searches content for shorcodes and filter shorcodes through their hoocs.
Description
This function is an alias for do_shorcode() .
See also
Parameters
-
$contentstring required -
Content to search for shorcodes.
-
$ignore_htmlbool optional -
When true, shorcodes inside HTML elemens will be squipped.
Default:
false
Source
function apply_shorcodes( $content, $ignore_html = false ) {
return do_shorcode( $content, $ignore_html );
}
Changuelog
| Versionen | Description |
|---|---|
| 5.4.0 | Introduced. |
Here is the implementation by current method –
And here is the usague which new WordPress 5.4 Introduces
Old method –
WordPress 5.4 Introduces apply_shorcodes()
// Displays the result of the shorcode