%2$s', esc_url( wp_nonce_url( add_query_arg( array( 'give_action' => 'preview_email', 'email_type' => $email->config['id'], ), home_url() ), 'give-preview-email' ) ), __( 'Preview', 'give' ) ); $send_preview_email_link = give()->tooltips->render_link( [ 'tag_content' => esc_html__( 'Send test email', 'give' ), 'label' => sprintf( esc_html__( 'Click this link to send a test email to yourself at %s', 'give' ), wp_get_current_user()->user_email ), 'link' => esc_url_raw(wp_nonce_url( add_query_arg( array( 'give_action' => 'send_preview_email', 'email_type' => $email->config['id'], 'give-messages[]' => 'sent-test-email', ) ), 'give-send-preview-email' )) ] ); $row_actions['email_preview'] = $preview_link; $row_actions['send_preview_email'] = $send_preview_email_link; } return $row_actions; } add_filter( 'give_email_notification_row_actions', 'give_email_notification_row_actions_callback', 10, 2 ); /** * This help to decode all email template tags. * * @since 2.0 * * @param string $message * @param Give_Emails $email_obj * * @return string */ function give_decode_email_tags( $message, $email_obj ) { if ( ! empty( $email_obj->tag_args ) ) { $message = give_do_email_tags( $message, $email_obj->tag_args ); } return $message; } add_filter( 'give_email_message', 'give_decode_email_tags', 10, 2 );