Posted By

toro999 on 02/01/10


Tagged

php html wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrianCoyDesign


Insert admin menu in wordpress widget


 / Published in: PHP
 

Insert admin menu in wordpress widget when you are logged

  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  

You need to login to post a comment.