I'm using a function inside a php script to return a text field containing a value. This value is retrieved from a variable. How can I make this possible?
This is the code that I tried to use but it didn't work.
function display_name()
{
return '<input type="text" maxlength="50" readonly="readonly" value=" '. $current_user->display_name .'" name="CreatedBy" style="width:100%">';
}