Skip to content

Commit

Permalink
fixed sitemap fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Nov 29, 2023
1 parent 4a1e6f3 commit 41662bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/class-sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class Visual_Portfolio_Sitemap {
*/
public function __construct() {
add_filter( 'aioseo_sitemap_posts', array( $this, 'add_images_to_aioseo_sitemap' ), 10, 1 );
add_filter( 'rank_math/sitemap/urlimages', array( $this, 'add_images_to_sitemap' ), 10, 1 );
add_filter( 'wpseo_sitemap_urlimages', array( $this, 'add_images_to_sitemap' ), 10, 1 );
add_filter( 'rank_math/sitemap/urlimages', array( $this, 'add_images_to_sitemap' ), 10, 2 );
add_filter( 'wpseo_sitemap_urlimages', array( $this, 'add_images_to_sitemap' ), 10, 2 );
}

/**
Expand Down

0 comments on commit 41662bf

Please sign in to comment.