Insert admin menu in wordpress widget


/ Published in: PHP
Save to your folder(s)

Insert admin menu in wordpress widget when you are logged


Copy this code and paste it in your HTML
  1. <?php edit_post_link('Modifica questa pagina'); ?>
  2. <?php wp_register(); ?>
  3. <?php if (is_user_logged_in()) : ?>
  4. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Logout">Logout</a>
  5. <?php endif; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.