• Resolved trinders

    (@trinders)


    Hi,

    This is a really great and very useful plugin – thanks for all the work you have put in.

    Just wondering where / what needs to be edited to customize the email message.

    I can see examples in the readme.txt file – but where would I add these??

    Thanks,

    Trinders

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author vandestouwe

    (@vandestouwe)

    I will create some examples on how to do just that.

    Plugin Author vandestouwe

    (@vandestouwe)

    For this example I created a very basic plugin.
    1: Create an empty plugin (many example on how to do that are available. I created one called “subscribe-to-category-notification”. Make sure it is activated

    2: Add the following to the PHP code in the file just created under item 1:

    /**
    * Example for adding html stuff just before the (partial) contents of the posts
    */
    function my_stc_before_message_content( $post_id ){
    ?>add html text stuff just before the (partial)contents<?php
    }
    add_action( ‘stc_before_message_content’, ‘my_stc_before_message_content’, 10, 2 );

    3: It is all about adding somewhere on your site this function. I just used the plugin example as an easy good isolated places to just do that. There are many other place on your site where you can do that.

    • This reply was modified 4 years, 6 months ago by vandestouwe.
    Plugin Author vandestouwe

    (@vandestouwe)

    I’m just curious did this helped at all? Or do you need some more help?

    Thread Starter trinders

    (@trinders)

    Hi,

    I was not quite sure where the code should go.

    I did create a new empty plugin – and also tried using Code Snippets.

    In the end I have ended up using a different approach – as I am working with a Membership site.

    I will probably look back and give it another go..

    Thanks so much for your help.

    Cheers

    Plugin Author vandestouwe

    (@vandestouwe)

    When using the created plugin was the plugin listed as a plugin and did you activate it?

    stc-can handle membership sites very well

    • This reply was modified 4 years, 6 months ago by vandestouwe.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to format the email’ is closed to new replies.