Created
September 19, 2016 04:00
-
-
Save n8finch/8ffd3b452a28756d25710817da349a4c to your computer and use it in GitHub Desktop.
add-base-location-provider-to-wp-head.php
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
//*Add the base "/" to the head for pretty routing. | |
add_action( 'wp_head', __NAMESPACE__ . '\add_base_location_provider_to_wp_head' ); | |
function add_base_location_provider_to_wp_head() { | |
echo '<base href="/">'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment