Created
October 17, 2017 10:33
-
-
Save surdaft/0c99b5c5cd00f17fae7b77c029d26c2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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