get_categories() public method

Uses , or
public get_categories ( ) : array | null
return array | null List of {@see \SimplePie_Category} objects
Esempio n. 1
0
        ?>
            <?php 
        if ($contributor->get_link()) {
            ?>
                <uri><?php 
            echo $contributor->get_link();
            ?>
</uri>
            <?php 
        }
        ?>
        </contributor>
    <?php 
    }
}
if ($feed->get_categories()) {
    ?>
    <?php 
    foreach ($feed->get_categories() as $category) {
        ?>
        <category term="<?php 
        echo $category;
        ?>
"/>
    <?php 
    }
}
if ($feed->get_copyright()) {
    ?>
    <rights><?php 
    echo $feed->get_copyright();