Restrict An Action Hook To Home Page

  • bobsled


    I’m just starting to use action hooks and can really see their benefit. But just one question. Is it possible to restrict an action hook to one page; ie Home Page only. I’m using an image widget inside a ‘Before Content-Main’ hook and would like it appear on the Home page only. Thanks in advance.


    Kenneth John Odle


    Use the WIdget Logic plugin with is_home()



    Ok, will do. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.