Where is the shortcode pmath defined?
-
Hi, I am trying to use your display math as a part of a larger plugin that I am working on, so I’d like to use [pmath] eqn [/pmath] within my plugin’s php file. (Basically my plugin needs to reformat the user’s input appropriately so that it is properly parsed by pmath.)
I tried going into html and typing the shortcode directly into my php file:
?> [pmath] <? echo $eqn ?> [/pmath] <?
and I’ve tried doing this:
echo do_shortcode(‘[pmath]’.$eqn.'[/pmath]’);Both result in the literal string being displayed on the website:
“[pmath] text_from_variable [/pmath]”I tried to locate where the [pmath] shortcode is actually defined, within wpmathpub.php, but I cannot find its definition (a la the add_shortcode(‘pmath’,’some_function’) command). The idea is: since I can’t use the shortcode within my php file (that I am aware of), I can incorporate the wpmathpub.php into my php file, and then just call the function that the shortcode [pmath] links to directly—but I am unable to figure out how this is done. Any help will be most appreciated!
Thank you!
- The topic ‘Where is the shortcode pmath defined?’ is closed to new replies.