• Resolved mat_

    (@mat_)


    Hi,
    I’m working on a simple plugin, and i have some problem.

    I would like to apply my plugin changes (add some lines in the header) in only one page (with the X id by example).

    To do that, i’m using that:

    function addHeaderCode(){
    (my added code)}

    add_action('wp_head', 'addHeaderCode');

    I maybe have to add a if before the add_action and check the current page ? but how to check it ? With the page_link ?

    I’m lost, thx !!!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add lines in the header with a plugin’ is closed to new replies.