groundhogg/get_default_from_name

πŸ“… Published on

πŸ“ Last updated

Documentation

Β»

Filter Hooks

Β»

groundhogg/get_default_from_name

Filters the default From name used when sending Groundhogg emails.

apply_filters( 'groundhogg/get_default_from_name', $from_name );

You will receive the default from name string.

Example

add_filter( 'groundhogg/get_default_from_name', 'my_extension_dynamic_from_name' );

/**
 * Use the current site name as the from name.
 *
 * @param string $from_name
 *
 * @return string
 */
function my_extension_dynamic_from_name( $from_name ) {
    return get_bloginfo( 'name' );
}

Was this helpful?

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