Support Forum

How to check if it is the forum page

1
Yehonal
Member
Jun 15, 2017 - 1:47 pm

Hello

i've created some filters/action within my theme/plugins that should be registered only if we're in forum page.

I would avoid ugly url checks. Is there a way to do it via global variables or other methods?

Yellow Swordfish
Glinton, England
Member
Jun 15, 2017 - 3:13 pm

https://simple-press.com/docum.....functions/

Look at the 'Primitives' section.

Yehonal
Member
Jun 16, 2017 - 9:44 am

Ok sp_is_forumpage  , it's not documented there but i've checked the code.

Thank you

Yellow Swordfish
Glinton, England
Member
Jun 16, 2017 - 12:12 pm

All of those are just simple true/false functions.

1