Return to Snippet

Revision: 3579
at August 15, 2007 09:28 by eethann


Updated Code
function my_wp_plugin_buffer_func($funcname,$args = false) {
  if (!$args) $args = array();
  ob_start();
  call_user_func_array($funcname,$args);
  $output = ob_get_contents();
  ob_end_clean();
  return $output;
}

Revision: 3578
at August 15, 2007 08:41 by eethann


Initial Code

                                

Initial URL

                                

Initial Description

                                

Initial Title
return output of function

Initial Tags
php, textmate, wordpress

Initial Language
PHP