admin管理员组

文章数量:1414621

I have a php file that is working outside wordpress's plugin and template system, and I am calling get_post to get the post's content. Does it count as a post view?

I have a php file that is working outside wordpress's plugin and template system, and I am calling get_post to get the post's content. Does it count as a post view?

Share Improve this question asked Sep 5, 2019 at 8:22 user3332522user3332522 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

WordPress doesn't count post views. So no. Nothing counts as a post view.

If you're using a plugin or service that counts post views, then it would depend on that plugin or service, and how it measures views. You'd need to ask its author, but I feel safe saying that none of them would use get_post() to count views.

本文标签: phpDoes getpost function counts as view