Skip to content

Instantly share code, notes, and snippets.

View th-santos's full-sized avatar

Thiago Santos th-santos

  • Canada
View GitHub Profile
@th-santos
th-santos / gettext-filter-rank-math.php
Last active September 8, 2019 06:59
Using "gettext" WordPress filter to change the string "Page ... of ..." of Rank Math plugin in the <title> tag.
<?php
/**
* Change the string "Page ... of ..." of Rank Math plugin in the <title> tag
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
* @link https://developer.wordpress.org/themes/basics/conditional-tags/#testing-for-paginated-pages
*
*/
function my_text_strings($translated_text) {
global $wp_query;