php syntax to use shortcode in php files

Renu Apr 5th, 2012 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.                 // Use shortcode in a PHP file (outside the post editor).
  3.                 do_shortcode('[MCform]');
  4.         ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand