I write this function in my wordpress theme.
// Custom raw code output
function sd_code_filter($content_text) {
$content_text = preg_replace_callback('!(<pre.*?>)(.*?)</pre>!ise', " '$1' . stripslashes( str_replace(array('<','>'),array('<','>'),'$2') ) . '</pre>' ", $content_text);
return $content_text;
}
This function is giving me below warning on frontend.
Warning: preg_replace_callback(): Requires argument 2, ' '$1' . stripslashes( str_replace(array('<','>'),array('<','>'),'$2') ) . '</pre>' ', to be a valid callback in /home2/arzand/public_html/nccf-new/wp-content/themes/nccf/functions.php on line 380
Please help me how can i resolve this warning.