SyndicatedPost::inline_tags PHP Méthode

inline_tags() public méthode

SyndicatedPost::inline_tags: Return a list of all the tags embedded in post content using the a[@rel="tag"] microformat.
Since: 2010.0630
public inline_tags ( ) : array
Résultat array of string values containing the name of each tag
    function inline_tags()
    {
        $tags = array();
        $content = $this->content();
        $pattern = FeedWordPressHTML::tagWithAttributeRegex('a', 'rel', 'tag');
        preg_match_all($pattern, $content, $refs, PREG_SET_ORDER);
        if (count($refs) > 0) {
            foreach ($refs as $ref) {
                $tag = FeedWordPressHTML::tagWithAttributeMatch($ref);
                $tags[] = $tag['content'];
            }
        }
        return $tags;
    }