Support » Plugin: Contact Form 7 » PHP Warning for cf7_add_custom_class

  • Resolved nootkan


    Seeing this php warning in my error logs that seemed to start on sept 07,2020.

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘cf7_add_custom_class’ not found or invalid function name in /home/mywebsite/public_html/wp-includes/class-wp-hook.php on line 289

    As I have no custom actions, hooks or filters for contact form 7 in my child theme functions file I am assuming it has to do with the recent update to the plugin.

    The only extra plugin for contact form 7 I have installed is Honeypot for Contact Form 7.

    Can anyone shed some light as to why this is happening or provide a solution?

    • This topic was modified 1 year, 8 months ago by nootkan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi


    function ‘cf7_add_custom_class’ not found

    Contact Form 7 itself doesn’t include this function. What other plugins and theme do you use?

    Thread Starter nootkan


    After removing plugins that I don’t need anymore this issue disappeared.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning for cf7_add_custom_class’ is closed to new replies.