This simplified approach is much closer:
/**
* Filter email element in share buttons
*
*/
function my_email_body( $body_mail ) {
$body_mail = ‘My message!’;
return $body_mail;
}
add_filter( ‘wpusb-body-mail’, ‘my_email_body’, 10, 2 );
I tried a filter with no luck. Just not quite getting it. See below.
/**
* Filter email element in share buttons
*
* @param Object $elements
* @param String $body_mail
*
* @return Object
*/
function my_email_body( $elements, $body_mail ) {
$elements->email->body_mail = ‘My message!’;
return $elements;
}
add_filter( ‘wpusb-body-mail’, ‘my_email_body’, 10, 2 );
-
This reply was modified 9 years, 1 month ago by toddlyda.
I realize this is above and beyond. Many variable would have to exist to make it work.
You did help. Amazing, thank you!