Open apolinario opened 6 years ago
There's always good old output buffering:
ob_start();
GeoMashupUserUIManager::get_instance()->print_form();
$form_content = ob_get_clean();
An alternate method returning a string would be nice to avoid these shenanigans.
I'm trying to use
GeoMashupUserUIManager::get_instance()->print_form()
as a Contact Form 7 field, however since this function prints the content, I'm not able to use it in areturn
. Is there a way to save that data to a variable for posterior use instead of directly printing?