Skip to content

Instantly share code, notes, and snippets.

<?php
// fixed reset button not working
add_action("um_members_directory_head", "um_custom_members_directory_head", 10, 1);
function um_custom_members_directory_head($args)
{
?>
// added JavaScript to clear the search bar, filters and remove those criteria from the URL as well
<script type="text/javascript">