filter_content()
public function filter_content( $content )
This method applys WordPress' the_content filter to a passed string (if the passed string is not empty).
#
Arguments- $content
(string) (required) A string of unfiltered content, such as content entered through the visual editor.
#
ExampleTake the following code:
Would echo:
Granted, you normally would not echo content, but add it to the class $html property. A more realistic example: