developing plugin need help in add_aciton (1 post)

  1. Rakesh Raja
    Posted 5 years ago #


    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

Topic Closed

This topic has been closed to new replies.

About this Topic