return output of function


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function my_wp_plugin_buffer_func($funcname,$args = false) {
  2. if (!$args) $args = array();
  3. call_user_func_array($funcname,$args);
  4. $output = ob_get_contents();
  5. return $output;
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.