Using Gravity Forms ‘gform_honeypot_labels_pre_render’ PHP action

The gform_honeypot_labels_pre_render filter allows you to override the labels used when rendering the hidden honeypot field.


To use the filter for all forms:

add_filter('gform_honeypot_labels_pre_render', 'your_function_name');


  • $honeypot_labels (array): The honeypot field labels.

More information

See Gravity Forms Docs: gform_honeypot_labels_pre_render


Custom Labels

Override the default labels with your own custom labels:

function custom_honeypot_labels($honeypot_labels) {
    // your custom code here
    return array('One', 'Two', 'Three', 'Four');

add_filter('gform_honeypot_labels_pre_render', 'custom_honeypot_labels');

Note: This code should be placed in the functions.php file of your active theme.