Filters and actions are both assigned to hooks. Functions assigned to hooks are stored in global
$wp_filter variable. So all you have to do is to
add_action function makes a
add_filter call. And the latter does
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.