To clean a large wp_postmeta table in WordPress, you must identify and delete orphaned or unused metadata…
Simple JS Inject Inline
add_action( 'wp_footer', function() { ?>
<script>
jQuery(document).ready(function(){
jQuery('.site-search-toggle.search-dropdown-toggle').click(function () {
event.preventDefault();
return false;
jQuery(".searchform-submit").trigger( "click" );
//alert('alert');
});
});
</script>
<?php }, 99 );
