How can a custom content filter be added?

By ·
How can a custom content filter be added?
Answers:
1.      By using add_action(‘the_content’,’my_custom_filter’)
2.      By using add_filter(‘the_content’,’my_custom_filter’)
3.      By using wp_filter(‘the_content’,’my_custom_filter’)

4.      By using add_action(‘content’,’my_custom_filter’)
GA
Gaurav Arora, Digital Media Lead. 10+ years running paid media and tracking for brands in the USA, UK and Canada.