WordPress theme function running thrice
-
WordPress Version: 6.7.2
TwentyTwentyFive: 1.1
PHP: 8.1.2.9
MySQL: 8.0.16
Hi, I am a simple function in my twentytwentyfive theme. Actually it has a long code, but just make my issue simpler. I wrote a logging code.
The Issue:
The function is being called 3 times and sometimes 4 times in one page refresh.
I am putting a video here: https://drive.google.com/file/d/1R8C9w-48-HcMHBDHK8K9xOujW9wxMoHs/view?usp=sharing
The question here is, is it normal thing.
I know there conditions of checking cron, checking ajax or admin, but does all codes runs multiple times if this is the case.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.