Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Die Navigationszeile wird nur dem Admin angezeigt
<?php
/* Menu Auswahl */
add_shortcode('rad-glossar-nav', 'radGlossarNav');
function radGlossarNav() {
$ausgabe = "";
if(current_user_can('administrator')){
$ausgabe = "[ <a href='https://computer-for-dummies.ch/glossar/'>Glossar</a>
| <a href='https://computer-for-dummies.ch/glossar/eintrag/'>Neuer Eintrag</a>
| <a href='https://computer-for-dummies.ch/glossar/bearbeiten/'>Bearbeiten</a> ]<br /><br />";
}
return $ausgabe;
} // --- END Funktion
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.