WordPress.org

Ready to get started?Download WordPress

Forums

Pretty Link Lite
[resolved] Hooked to Pretty Link ;-) (6 posts)

  1. holgerhubbs
    Member
    Posted 1 year ago #

    What is the best way to hook into Pretty Link Lite and to turn redirection off for users who are not logged in?
    Instead of fiddling with the plugin itself I would like to add some few lines to my functions.php file.
    Thank you,
    Holger

    http://wordpress.org/extend/plugins/pretty-link/

  2. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

    There is no hook in place for something like this unfortunately.

  3. holgerhubbs
    Member
    Posted 1 year ago #

    This is not very elegant, and not permanent, but for right now it works ;-)
    If the user is not logged in, PrettyLink won't work:
    http://xp3.us/s/m5

  4. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

    That works. You could setup a hidden page on your site that has some prettier text. Then do something like this:

    if(!is_user_logged_in())
    {
      wp_redirect(get_permalink(PAGE_ID_GOES_HERE));
      die();
    }
  5. holgerhubbs
    Member
    Posted 1 year ago #

    Thank you for the tip!
    I really like Pretty Link as an added layer of privacy and consistency.
    When my external links change I just go into Pretty Link and update them there, instead to scan my whole website, and risking 404s, out of date bookmarks and confused users.
    I am not sure if you advertised this aspect of your great plugin.

  6. holgerhubbs
    Member
    Posted 1 year ago #

    WordPress is quite a beautiful platform... Code is poetry.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic