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;
<?php
require __DIR__ . '/vendor/autoload.php';
use \DrewM\MailChimp\MailChimp;
$mc = new MailChimp('<your-mailchimp-api-key>');
// list ID
// When a user unsubscribes from the list, they cannot be subscribed again
// via the API, so use a unique list for this mailing purpose
@realrashid
realrashid / Install PHP-CS-Fixer.md
Last active May 21, 2024 17:37
How to Install PHP-CS-Fixer on Windows

Installing PHP-CS-Fixer for VsCode on Windows

Install PHP-CS-FIXER Using Composer

composer global require friendsofphp/php-cs-fixer

after successfully installation of PHP-CS-FIXER

now install PHP-CS-FIXER VSCODE Extension