Customizing the MESSAGE KEY


Home Forums Front End PM PRO Customizing the MESSAGE KEY

This topic is: Resolved

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45460
    plow
    Participant

    Hello,

    When using pop3, is it possible to customize the [MESSAGE KEY-×××××××××××] given to the subject?
    I want to shorten it because it is too long.

    Regards,

    #45465
    Shamim Hasan
    Keymaster

    You can use fep_email_piping_code_identifier filter hook to change MESSAGE KEY part. Change key length directly is not supported. I will try to add a filter in next version to change key length.

    #45468
    plow
    Participant

    Hello,

    Thank you for your reply.
    I understand that it is possible to change the “MESSAGE KEY” using a filter hook.

    I would like to change “MESSAGE KEY” to “#”, but since I am a beginner in programming, could you tell me specifically how to write the filter hook?
    Also, is it possible to remove “-“?

    I am sorry for the trouble.

    #45471
    Shamim Hasan
    Keymaster

    Yes possible. Please add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_email_piping_code_identifier', function( $identifier ){
        return ['[#', ']'];
    });
    
    #45474
    plow
    Participant

    Thank you for your reply.

    I was able to change it with the method you told me.
    I would also appreciate a filter that changes the key length in the next version.

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.