Skip to content

Instantly share code, notes, and snippets.

@nciske
Created January 30, 2017 18:26
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 nciske/50e22c0a01f197d12ad5e9baad476f02 to your computer and use it in GitHub Desktop.
Save nciske/50e22c0a01f197d12ad5e9baad476f02 to your computer and use it in GitHub Desktop.
Allow waze:// links in WordPress custom menus
// 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