[wp-hackers] check if a shortcode is existed.

mohammad aghanabi m.websoft at gmail.com
Wed Aug 18 19:27:15 UTC 2010


is sth like this true ?

if (function_exists('expire_shortcode')) {
echo ".do_shortcode('[expire]').";
echo "nice to meet u";
echo ".do_shortcode('[/expire]').";
} else {
echo "hi";
}

On Wed, Aug 18, 2010 at 11:50 PM, Aaron Jorbin <aaron at jorb.in> wrote:

> The global $shortcode_tags is an associative array with the structure
>
> $shortcode_tags[tag] = function
>
>
>
> http://aaron.jorb.in
> twitter: twitter.com/aaronjorbin
>
>
>
> On Wed, Aug 18, 2010 at 3:15 PM, mohammad aghanabi <m.websoft at gmail.com>
> wrote:
> > hello;
> > is there anyway to check if a shortcode is existed ?
> >
> > thanks
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
كاش زندگي مثل يك معادله ي خط بود كه هر وقت انسان ها راه خود را گم مي كردند ،
معادله را نشانشان مي داديم


More information about the wp-hackers mailing list