Last active
October 2, 2015 22:48
-
-
Save jennschiffer/7a26b6e90c59542df8cf to your computer and use it in GitHub Desktop.
Β π abstractions of wordpress abstractions π
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 | |
/** | |
* getPageByPath | |
* | |
* gets the page by path | |
*/ | |
function getPageByPath( $page_slug ) { | |
// get the page by path | |
$page = get_page_by_path($page_slug); | |
// return the page gotten by path | |
return $page; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is a terrible joke, don't use it