Skip to content

Instantly share code, notes, and snippets.

@jennschiffer
Last active October 2, 2015 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennschiffer/7a26b6e90c59542df8cf to your computer and use it in GitHub Desktop.
Save jennschiffer/7a26b6e90c59542df8cf to your computer and use it in GitHub Desktop.
Β  πŸ™ abstractions of wordpress abstractions πŸ™
<?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;
}
@jennschiffer
Copy link
Author

this is a terrible joke, don't use it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment