This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WebsiteParser::getLinkType( $url )
Description
Source
File: bp-activity/vendors/website-parser/website_parser.php
private function getLinkType($url) { if (preg_match($this->internal_link_pattern, $url)) return self::LINK_TYPE_INTERNAL; else if (preg_match($this->external_link_pattern, $url)) return self::LINK_TYPE_EXTERNAL; return self::LINK_TYPE_UNKNOWN; }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.