Created
October 29, 2011 16:12
-
-
Save chipbennett/1324713 to your computer and use it in GitHub Desktop.
WCTOR.copyright.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom is_tree() Conditional Tag | |
* | |
* Conditional tag that returns true if the current static Page | |
* is within a page hierarchy; that is. | |
* | |
* Derived from code originally posted as Example #4 of the Testing for Sub-Pages | |
* section of the Conditional Tags page in the WordPress Codex. | |
* | |
* @link http://codex.wordpress.org/Conditional_Tags#Testing_for_sub-Pages Conditional Tags: Testing for Sub-Pages | |
* @license http://wordpress.org/about/gpl/ GPL | |
* | |
* @param int $pid (required) ID of static Page to check | |
* @return boolean | |
*/ | |
function is_tree( $pid ) {} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment