Loop through buffer content with different value
问题 Need help, I am getting buffer data using plugin and matching iframe tag. After getting buffer value, I am retrieving iframe src and replacing them with blank src. When I loop the src values and output and using preg_replace it does not replace value according to loop and replace with the first iframe values... Here is my code add_action('wp_footer', 'scheck_iframe_value'); function scheck_iframe_value() { $get_me_buffers = ob_get_clean(); $pattern = '@(.*)(<iframe(?:.*?)</iframe>)(.*)@m'; ob