Skip to content

Instantly share code, notes, and snippets.

@abdulawal39
Created December 5, 2024 12:12
Show Gist options
  • Save abdulawal39/da5d19c4be8fc7e19218459bb947c684 to your computer and use it in GitHub Desktop.
Save abdulawal39/da5d19c4be8fc7e19218459bb947c684 to your computer and use it in GitHub Desktop.
Replace Categories text - Display - TNC FlipBook Addon
function tncsupport_change_categories_label($translated_text, $text, $domain) {
if ($text === 'Categories' && $domain === 'display-pdf-viewer-for-wordpress-addon') {
return 'Custom Text'; // Replace this with the desired text.
}
return $translated_text;
}
add_filter('gettext', 'tncsupport_change_categories_label', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment