Skip to content

Instantly share code, notes, and snippets.

@spivurno
Created February 14, 2013 04:27
Show Gist options
  • Save spivurno/4950600 to your computer and use it in GitHub Desktop.
Save spivurno/4950600 to your computer and use it in GitHub Desktop.
Gravity Wiz // Custom Activation Template for Gravity Forms User Registration Add-on
<?php
/**
* Gravity Forms Custom Activation Template
* http://gravitywiz.com/customizing-gravity-forms-user-registration-activation-page
*/
add_action('wp', 'custom_maybe_activate_user', 9);
function custom_maybe_activate_user() {
$template_path = STYLESHEETPATH . '/gfur-activate-template/activate.php';
$is_activate_page = isset( $_GET['page'] ) && $_GET['page'] == 'gf_activation';
if( ! file_exists( $template_path ) || ! $is_activate_page )
return;
require_once( $template_path );
exit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment