dashed-slug.net › Forums › General discussion › sweet alerts help – Not Urgent › Reply To: sweet alerts help – Not Urgent
February 7, 2019 at 11:02 am
#5849
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' );