Last active
July 8, 2016 14:42
-
-
Save jamesmorrison/91d220a1e312bbab55a47f89d1c97a90 to your computer and use it in GitHub Desktop.
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 | |
function _get_current_page_url() { | |
global $wp; | |
return esc_url( home_url( $wp->request ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment