groundhogg/email_template/unsubscribe_text

πŸ“… Published on

πŸ“ Last updated

Documentation

Β»

Filter Hooks

Β»

groundhogg/email_template/unsubscribe_text

Filters the anchor text of the unsubscribe link in the email footer.

apply_filters( 'groundhogg/email_template/unsubscribe_text', $text );

You will receive the current unsubscribe link text string.

Example

add_filter( 'groundhogg/email_template/unsubscribe_text', 'my_extension_custom_unsub_text' );

/**
 * Replace the default unsubscribe link text.
 *
 * @param string $text
 *
 * @return string
 */
function my_extension_custom_unsub_text( $text ) {
    return __( 'Manage your email preferences', 'my-extension' );
}

Was this helpful?

Let us know if this document answered your question. That’s the only way we can improve.