• Hello,

    Newbie question.
    This is not working:

    function my_plugin(){
    file_put_contents(“text.txt”,”Hello World. Testing!”);
    }

    add_action(‘init’, ‘my_plugin’);

    Why not?

    Thanks

  • The topic ‘add_action’ is closed to new replies.