Custom priority with the_content filter based on user input
Save the priority in your options and pass that value to your add_filter: add_action( ‘template_redirect’, ‘wpse_81687_prepare_filter’ ); function wpse_81687_prepare_filter() { $my_options = get_option( ‘my_options’ ); $priority = isset ( $my_options[‘content_filter_priority’] ) ? $my_options[‘content_filter_priority’] : 10; add_filter( ‘the_content’, ‘ald_crp’, $priority ); } In my example I register the the_content filter during template_redirect because it is not … Read more