Skip to content

Instantly share code, notes, and snippets.

View waynhall's full-sized avatar

Wayne Hall waynhall

View GitHub Profile
@waynhall
waynhall / gf-sales-filter.php
Created January 16, 2019 06:21
Example use to add a custom filter to Gravity Forms Sales report
<?php
add_filter('gform_filter_ui', 'referring_member_ui', 10, 5);
function referring_member_ui($filter_ui, $form_id, $page_title, $gf_page, $gf_view ) {
if($form_id != '6' || $page_title != 'Sales') {
return $filter_ui;
}