Support » Fixing WordPress » developing plugin need help in add_aciton

  • Rakesh Raja

    (@rakeshraja)


    Hi

    I am looking for help in my first plugin.

    I have done all the things but for now I need help placing plugin output on blog

    add_action('init', 'my_plugin_function');

    I am using this action but thing is that.. it executes in admin also.. Is there any way that it executes in blog only? like

    if ( is_home() ) {
    add_action('init', 'wpg_alert');
    }

    Something like that

  • The topic ‘developing plugin need help in add_aciton’ is closed to new replies.