[Resolved] Hook to page.php

Home Forums Support [Resolved] Hook to page.php

Home Forums Support Hook to page.php

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1247616
    Hans

    I managed to count my post views with a hook to single.php.

    How can I hook to page.php to count the page views?

    #1247819
    David
    Staff
    Customer Support

    Hi there,

    which hook did you use for your single.php ?

    #1247873
    Hans

    I used after_entry_title.

    #1247881
    David
    Staff
    Customer Support

    The after_entry_header hook is the next hook down and is available on Pages:

    https://docs.generatepress.com/article/hooks-visual-guide/#static-page

    #1248108
    Hans

    Thanks, it works!

    #1248155
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.