Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save priyabratary/85e734ca0911b47397aabbc42658b258 to your computer and use it in GitHub Desktop.
Save priyabratary/85e734ca0911b47397aabbc42658b258 to your computer and use it in GitHub Desktop.
pollylang read more translation
function modify_read_more_link() {
return '<a href="' . get_permalink() . '" class="more-link btn-a btn-a_fill_theme">' . pll__('string translation') . '</a>';
}
add_filter( 'the_content_more_link', 'modify_read_more_link' );
pll_register_string('my-theme', 'string translation');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment