Multiple actions on init hook
-
I’m using Query Monitor to identify and fix issues that may be slowing down this site.
I’ve found that the init hook triggers 25 identical actions in WPForms Lite:
wp-content/plugins/wpforms-lite/src/WPForms.php:418That line 418 is:
$callback = function () use ( $full_name, $id, $run, $hook ) { if ( ! class_exists( $full_name ) ) { return; } // Instantiate class. $instance = new $full_name(); $this->register_instance( $id, $instance ); if ( $run && method_exists( $instance, $run ) ) { $instance->{$run}(); } };How can this be prevented?
I thought that my contact form was corrupted, so I deleted it, and then deactivated and removed the plugin entirely (first checking the box to remove all forms & data upon removal). I then reinstalled WPForms and recreated my form. The issue remains.PHP 8.3
WordPress 6.9.4
WPForms Lite 1.10.0.4The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.