• It would be nice to have a filter in render() function from sitemap.core.php

    Something like this:

    public function render() {

    if ( ‘/’ === $this->url || empty( $this->url ) ) {

    return ”;

    }

    $r = ”;

    $r .= “\t<url>\n”;

    $r .= “\t\t<loc>” . $this->escape_xml( esc_url_raw( $this->url ) ) . “</loc>\n”;

    $extra_content = apply_filters(‘custom_sitemap_extra_content’, ”, $this->post_id);

    $r .= $extra_content;

    This with the existing filter sm_sitemap_urlset will be very usefull.

    Thanks.


The topic ‘Add filter, please…’ is closed to new replies.