Skip to content

Conversation

@andrea-sdl
Copy link
Contributor

Update the visibility of the record_event and record_stats methods to public to ensure proper tracking and functionality. This change addresses the issue of class tracking not updating as expected.

Copilot AI review requested due to automatic review settings November 27, 2025 09:53
Copilot finished reviewing on behalf of andrea-sdl November 27, 2025 09:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical bug where tracking methods were not executing properly due to incorrect visibility modifiers. The methods record_event and record_stats are registered as WordPress action hook callbacks but were marked as private, preventing WordPress from invoking them from outside the class context.

Key Changes:

  • Changed record_event() visibility from private to public to allow WordPress action hooks to invoke it
  • Changed record_stats() visibility from private to public to allow WordPress action hooks to invoke it

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants