You'd want to look into add_filter(). Here's the codex link to it: http://codex.wordpress.org/Function_Reference/add_filter Here's another Article I refer to from time to time: http://otto42.com/ak -Cheers Edit: https://wordpress.stackexchange.com/questions/45901/passing-a-parameter-to-filter-and-action-functions