[wp-hackers] function_exists - user woes
Alex King
alex at alexking.org
Fri Jul 30 05:51:07 UTC 2004
Heh. Proving the point, I actually screwed up the conditional syntax
below, it should have been:
<?php if (function_exists('my_hack_function')) { my_hack_function(); }
?>
:)
--Alex
http://www.alexking.org/
On Jul 29, 2004, at 11:46 PM, Alex King wrote:
> I agree that plugins work poorly in the regard, but use
> function_exists as suggested, you have to require the user to add more
> complex code into their template. This makes installing a plugin/hack
> much more complicated.
>
> <?php my_hack_function(); ?>
>
> turns into:
>
> <?php if (function_exists('my_hack_function') { my_hack_function(); }
> ?>
>
> And that is a very simple case. There isn't a way that I know of to
> remove that complexity and still have the conditional.
More information about the hackers
mailing list