Halloween Sale 15% off Ends in See the plans
PHP

Reassurance Message Above GiveWP Forms

Shows a short trust message with a padlock icon above every GiveWP donation form, for example about secure payments and where the money goes.

Don’t have WPIDE yet? Install it on your site

Code

$wpide_message = 'Your donation is processed securely. 100% of public donations fund our programmes.'; // Message text.

add_action( 'give_pre_form', function ( $form_id ) use ( $wpide_message ) {
    echo '<p class="wpide-give-trust" style="display:flex;gap:.5em;align-items:center;font-size:.9em;margin:0 0 1em">'
        . '<span aria-hidden="true">🔒</span> ' . esc_html( $wpide_message ) . '</p>';
} );

Notes

Change $wpide_message. Works with the legacy and multi-step form templates that run GiveWP's form hooks.

How to add this snippet

  1. Install WPIDE on your WordPress site (it is free) and open Code Snippets.
  2. Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
  3. It is added inactive: review the code and settings, then switch it on.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.

Which site should get this snippet?

Enter the address of your WordPress site. WPIDE opens there in a new tab with the snippet ready to review and save.

Remembered in this browser only, so you are asked once.

Report this snippet

Tell the WPIDE team what is wrong: broken code, something harmful, spam or copied work.