I'm using add_action( 'wp', 'do_something_once_per_page' );
and, well, it's not doing it just once but twice. What's interesting is that within do_something_once_per_page( $wp ){ }
I'm globalizing $post
and it's two different posts!
What would cause the 'wp' action to fire twice per page?
Tom Auger
- 7.1k
- 9
- 62
- 84