Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #248234

    Hi,

    I would like to action-hook my custom plugin.
    The code needs only to be executed on a specific page.
    Which “hook-point” should I use in enfold theme?
    (e.g. wp-head)

    Kind regards

    #248537

    Hey coretekk!

    I’m not really clear on what you mean but if you are trying to create a function to load your plugin only on a specific page you can try a conditional tag hooked onto wp_head for a page id: https://codex.wordpress.org/Conditional_Tags#A_PAGE_Page

    If you have additional questions on what would be needed they should be asked on the general WordPress support forums however since it isn’t really a theme specific issue.

    Regards,
    Devin

    #248743

    Hi Devin, ok thanks, I read that some Theme Devs provide their own hooks, and thought I’d ask before I go with the wp-head :)

    Thanks also for the links this is what I was looking for!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hook for specific page’ is closed to new replies.