add_filter('wpforo_content_after', function( $content ){ return preg_replace_callback( '#<]*\sclass=[\'\"](?:[^\'\"]*\s)?wpforo-default-attachment(?:\s[^\'\"]*)?[\'\"][^><]*\shref=[\'\"]([^\"\']+)[\'\"][^><]*>.*?#isu', function( $match ){ $html = $match[0]; $file = $match[1]; $pathinfo = pathinfo( $file ); if( wpforo_is_image($pathinfo['extension']) ) { $html = sprintf( '%2$s', esc_url($file), esc_attr($pathinfo['basename']) ); } return $html; }, $content ); }, 11);
4 Simple Ways to Making Paper from Scratch

4 Simple Ways to Making Paper from Scratch

Making paper from scratch is easier than you might think, and there are several simple ways to do it using things you probably already have lying around the house. In addition, making your paper can be a great project to do with your kids – not only does it give them...