-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename duplicate filter #263
Conversation
includes/functions/content-sync.php
Outdated
@@ -144,7 +144,7 @@ function send_track_event( $tracker, $post, $action ) { | |||
* | |||
* @return {array} Tracking data to send. | |||
*/ | |||
$data = apply_filters_ref_array( 'sophi_tracking_data', array( $data, &$tracker, $post, $action ) ); | |||
$data = apply_filters_ref_array( 'sophi_tracking_request_data', array( $data, &$tracker, $post, $action ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could similarly go with sophi_cms_tracking_request_data
since this is the portion of the plugin where we send post publishing/update events, correct? Would be separate from the javascript tracking that happens on the site frontend, yeah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in which case maybe the other one gets updated to sophi_js_tracking_request_data
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeffpaul great idea. I also updated the second filter sophi_cms_tracking_result
for consistency
Kudos, SonarCloud Quality Gate passed!
|
@cadic looks like maybe we missed updating the docblock name of the hooks here? |
Description of the Change
Closes #262
Checklist:
Changelog Entry
Credits
Props @