WordPress.org

Ready to get started?Download WordPress

Forums

pr function developed by Mahamad Khalid (1 post)

  1. Tarsem Singh
    Member
    Posted 2 years ago #

    Just create a function in your theme functions.php like..

    <?php
     pr($array)
      {
        echo "<pre>";
         print_r($array);
        echo "</pre>";
      }
    ?>

    Now you can use this function any where in your theme or Plugins.. to see php array e.g. for wp_query, user info etc.

    How to use:

    <?php
    pr($array);
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Tarsem Singh
  • This topic is not a support question
  • WordPress version: 3.4.1