Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Gravity Wiz // Gravity Forms // Default Form List to Active Forms
* http://gravitywiz.com/
*/
add_action( 'plugins_loaded', function() {
if( is_callable( array( 'GFForms', 'get_page' ) ) && GFForms::get_page() == 'form_list' ) {
if ( ! isset( $_GET['filter'] ) ) {
wp_redirect( add_query_arg( array( 'filter' => 'active' ) ) );
exit;
}
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.