Skip to content

Commit 181651a

Browse files
committed
Remove unused param from hook callback
1 parent cae0298 commit 181651a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/packages/forms/src/service/class-mailpoet-integration.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function init() {
4444
* Hooks on `grunion_after_feedback_post_inserted` action to handle MailPoet integration.
4545
*/
4646
private function __construct() {
47-
add_action( 'grunion_after_feedback_post_inserted', array( $this, 'handle_mailpoet_integration' ), 15, 4 );
47+
add_action( 'grunion_after_feedback_post_inserted', array( $this, 'handle_mailpoet_integration' ), 15, 3 );
4848
}
4949

5050
/**
@@ -162,9 +162,8 @@ protected function get_subscriber_data_from_fields( $fields ) {
162162
* @param int $post_id The post ID for the feedback CPT.
163163
* @param array $fields Collection of Contact_Form_Field instances.
164164
* @param bool $is_spam Whether the submission is spam.
165-
* @param array $entry_values Extra fields from the contact form.
166165
*/
167-
public function handle_mailpoet_integration( $post_id, $fields, $is_spam, $entry_values ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
166+
public function handle_mailpoet_integration( $post_id, $fields, $is_spam ) {
168167
if ( $is_spam ) {
169168
return;
170169
}

0 commit comments

Comments
 (0)