apply_filters( 'um_before_account_delete_text', $text, $pass_required ) → {string}
Filters delete account text.
Parameters:
| Name | Type | Description |
|---|---|---|
$text |
string | Delete account text. |
$pass_required |
bool | Data to localize. |
- Since:
- 2.11.3
- Source:
Returns:
Delete account text.
- Type
- string
Example
Change the text before delete account. There can be used locale condition for translation.
function um_custom_before_account_delete_text( $text, $pass_required ) {
$text = $pass_required ? '{pass_required_custom_text}' : '{no_pass_required_custom_text}';
return $text;
}
add_filter( 'um_before_account_delete_text', 'um_custom_before_account_delete_text', 10, 2 );