Forums

developing plugin need help in add_aciton (1 post)

  1. rakeshraja
    Member
    Posted 10 months ago #

    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

Reply

You must log in to post.

About this Topic