Created
January 30, 2017 18:26
-
-
Save nciske/50e22c0a01f197d12ad5e9baad476f02 to your computer and use it in GitHub Desktop.
Allow waze:// links in WordPress custom menus
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
// Ideally, replace prefix_ with a prefix unique to your site | |
function prefix_allow_waze_protocol( $protocols ) { | |
$protocols[] = 'waze'; | |
return $protocols; | |
} | |
add_filter( 'prefix_allowed_protocols', 'wpse_allow_waze_protocol' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment