Skip to content

Instantly share code, notes, and snippets.

@ErikBernskiold
Created September 19, 2015 14:09
Show Gist options
  • Select an option

  • Save ErikBernskiold/0ae0ee20e5c739d4a75b to your computer and use it in GitHub Desktop.

Select an option

Save ErikBernskiold/0ae0ee20e5c739d4a75b to your computer and use it in GitHub Desktop.
Ilmenite Cookie Consent: Update Text
<?php
/**
* Change Cookie Consent Text
*/
function ilcc_change_consent_text( $text ) {
$text = __( 'This is my new text that I want', 'MYTEXTDOMAIN' );
return $text;
}
add_filter( 'ilcc_consent_text', 'ilcc_change_consent_text' );
/**
* Change Cookie Accept Button Text
*/
function ilcc_change_accept_text( $text ) {
$text = __( 'This is my new text that I want', 'MYTEXTDOMAIN' );
return $text;
}
add_filter( 'ilcc_accept_text', 'ilcc_change_accept_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment