/** * Fix the hreflang alternates array generated by WPML in Rank Math Sitemaps */ add_filter( 'rank_math/sitemap/entry', 'ax_metals_fix_sitemap_alternates_array', 999, 3 ); function ax_metals_fix_sitemap_alternates_array( $url, $type, $object ) { if ( isset( $url['alternates'] ) && is_array( $url['alternates'] ) ) { foreach ( $url['alternates'] as &$alternate ) { if ( isset( $alternate['href'] ) ) { $alternate['href'] = str_replace( '/en/wissen/', '/en/knowledge/', $alternate['href'] ); $alternate['href'] = str_replace( '/pl/wissen/', '/pl/wiedza/', $alternate['href'] ); } } } return $url; } /** * TEMP VERIFICATION: Add a comment to the sitemap header */ add_action( 'rank_math/sitemap/index', function() { echo ''; }, 1 );{"id":5724,"date":"2026-04-08T14:23:00","date_gmt":"2026-04-08T12:23:00","guid":{"rendered":"https:\/\/www.ax-metals.com\/wissen\/?p=5724"},"modified":"2026-04-08T15:56:55","modified_gmt":"2026-04-08T13:56:55","slug":"replacing-agcdo10-in-contact-rivets-suitable-alternatives-and-technical-evaluation","status":"publish","type":"post","link":"https:\/\/www.ax-metals.com\/en\/knowledge\/replacing-agcdo10-in-contact-rivets-suitable-alternatives-and-technical-evaluation\/","title":{"rendered":"Replacing AgCdO10 in contact rivets: suitable alternatives and technical evaluation"},"content":{"rendered":"\n