spivurno
3/5/2020 - 1:14 PM

Gravity Wiz // Gravity Forms // Default Form List to Active Forms

<?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;
		}
	}
} );