[wp-hackers] best route for adding links?

Daniel Dvorkin elrabino at gmail.com
Sat Jan 21 19:35:10 UTC 2012


You can use get_bookmarks (
http://codex.wordpress.org/Function_Reference/get_bookmarks ) searching for
that URL. Import only if it returns empty. Not very fast, though.




---------------------
Daniel Dvorkin
Móvil: +54 (0261) 15-315-2244
Skype: mzaweb
http://mzaweb.com




On Thu, Jan 19, 2012 at 3:15 PM, fris <fris at fris.net> wrote:

> What would be the best way to avoid adding duplicate links.
>
> Im creating a csv link importer, and using wp_insert_link() , but currently
> its adding the link even if one exists with the same url.
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list