Skip to content
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

Add post views column to admin post table #294

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

zhyian
Copy link
Contributor

@zhyian zhyian commented Oct 22, 2024

Hi there!

This PR introduces a new Views column in the post and page tables of the WordPress admin, allowing users to see how many times each post or page has been viewed, based on tracking data.

Additionally, I decided to add statify_counter_post_types filter to allow extending the post types that display the views column.

How to Test:

  • Go to the Posts or Pages section in the WordPress admin area.
  • Make sure that checkbox Views is activated in the Screen Options.
  • Check for the new Views column in the post table.

Closes #283.

Copy link

@zhyian zhyian marked this pull request as ready for review October 22, 2024 12:16
@2ndkauboy
Copy link
Member

That looks really good! It also follows out coding styles perfectly. In a local test, it also looks good!

@2ndkauboy 2ndkauboy requested a review from Zodiac1978 October 22, 2024 14:55
@stklcode stklcode added this to the 2.0.0 milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display counter as new column in post table
3 participants