I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: sweet alerts help – Not Urgent

dashed-slug.net Forums General discussion sweet alerts help – Not Urgent Reply To: sweet alerts help – Not Urgent

#5849
alexg
Keymaster

The problem with the above solution is that once you switch to double quotes, the sprintf placeholders get interpreted by PHP as inline variables, so the $ signs need to be escaped.

The complete solution suffers from a mild case of LTS, and it is this:


function filter_wallets_ui_text_submit_wd( $string ) {
	return "Successfully submitted a withdrawal request of %1\$s %2\$s to %3\$s.\nPlease check your e-mail for confirmation instructions.";
}

add_filter( 'wallets_ui_text_submit_wd', 'filter_wallets_ui_text_submit_wd' );