I couldn’t find it anywhere, but I guess I didn’t really know how to search.
I’d like to use a php function inside another function.
Details :
the function gets an argument (text) and renders it as an image. I’d like to have this function get the argument of another function, but I don’t know if it’s possible or how to write it.
Example :
<?php the_function(‘blabla’,true,’someargument’); ?>
This would render Blabla as an image in a font specified elsewhere.
What I’d like to do it replace ‘blabla’ by this function : wp_loginout(); , which would render either Login or Logout, according to what is relevant.
I tried to do <?php the_function(wp_loginout(),true,’someargument’); ?>, but it doesn’t work, it renders “wp_loginout()” instead of login or logout.
Is it even possible to do what I’m trying ? What would be the correct synthax ?
Sorry, I’m always bothering you with quite newbie questions ^^