• Resolved cwfaraday

    (@cwfaraday)


    I’m trying to update a link’s URL like this:
    prli_update_pretty_link(123, 'https://www.example.com');

    But I get this error:
    *** Pretty Links Debug: SlugIsAvailable: The path resolved to a post in wp rewrite rules for pattern: /^[^/]+/([^/]+)/?$/ query

    The link with id 123 exists. What am I doing wrong?

Viewing 1 replies (of 1 total)
  • Plugin Author cartpauj

    (@cartpauj)

    The error says that another post or page or media on the site is already using that same slug as the pretty link.

Viewing 1 replies (of 1 total)
  • The topic ‘prli_update_pretty_link() issue’ is closed to new replies.