I’ve been using the below code to add classes to get_next_post_link (in functions.php of my child theme)
add_filter('get_next_posts_link', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');
function posts_link_attributes() {
return 'class="x-btn x-btn-global"';
}
This was working until a recent theme update. Can you tell me how to add a class to these links now?