Support Forum

sf_hook_first_post doesn't work anymore?

VE ventoh
ventoh
Member

I have that hook in my function.php to load my adsense code.

after upgrated to simple press V5, it stop working.

I noticed there isn’t in SP5 source code. hooks aren’t supported?

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

No hooks. As heavily stated all over the place V5 now uses templates and adsense code can be embedded directly into the templates or in the SP theme SpFunctions file if you prefer to use the extensive WP style actions/filters – although we are still in the process of documenting these in the new codex.

I think if you search around on the V5 forums there should be one or two examples.

VE ventoh
ventoh
Member

I created my custom theme… nice!

V5 press-forum seems to have many improvements.

many tks to the crew

YS Yellow Swordfish
Yellow Swordfish
Member

Always good to hear. I hope it goes well for you.