'init'
is probably too early to get a meaningful result from is_post_type_archive()
which depends on the the query having been run. 'template_redirect'
is probably the earliest action you could run it.
'init'
is probably too early to get a meaningful result from is_post_type_archive()
which depends on the the query having been run. 'template_redirect'
is probably the earliest action you could run it.