Currently, in my plugin Contextual Related Posts, I have an option to automatically add the related posts to the content using
add_filter('the_content,'ald_crp')
I know I can change the priority of the filter by adding a number greater than 10 (which is WordPress default).
add_filter('the_content,'ald_crp',20)
However, what I would like to do is let the user set the priority of the filter from within the options page which I can use and set the_content filter accordingly.
The plugin already has its own settings page.
My plugins doesn't use classes. It uses functions.
Any suggestions / code samples for this?