Add shortcode in the footer of the message box form.


Home Forums Front End PM PRO Add shortcode in the footer of the message box form.

This topic is: Not Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #28416
    c-alle
    Participant

    Hi, I would like to add this shortcode <?php echo do_shortcode('[xyz-ips snippet="privacytel"]'); ?> in the footer of my message box. It’s possible?

    Thanks.

    #28446
    Shamim Hasan
    Keymaster

    You can use fep_messagebox filter to add anything bellow message box.
    add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_messagebox', function( $box ) {
    	$box = $box . do_shortcode('[xyz-ips snippet="privacytel"]');
    	return $box;
    });
    
    #28448
    c-alle
    Participant

    Hi, thank you it works. I was wondering though if it was possible to insert it in the footer even when I open a single message. I wish it were always present in the footer of the message box, whatever page is opened. Thanks.

    #28464
    Shamim Hasan
    Keymaster

    You asked to show un footer of “MessageBox”, that’s why i write that code for you.
    To show under all pages of message system you can use fep_footer_note action hook.

    #28466
    c-alle
    Participant

    Sorry, I was wrong. Thanks.

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.