Skip to content

Instantly share code, notes, and snippets.

@surdaft
Created October 17, 2017 10:33
Show Gist options
  • Save surdaft/0c99b5c5cd00f17fae7b77c029d26c2a to your computer and use it in GitHub Desktop.
Save surdaft/0c99b5c5cd00f17fae7b77c029d26c2a to your computer and use it in GitHub Desktop.
<?php
/**
* Hide recaptcha column after contact-form-submissions has determined the columns for that form.
*/
add_action('manage_wpcf7s_posts_columns', function($columns) {
if (in_array('g-recaptcha-response', $columns)) {
unset($columns[array_search('g-recaptcha-response', $columns)]);
}
return $columns;
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment