Reply To: Disable


Home Forums Front End PM PRO Disable Reply To: Disable

#41545
jilllynndesign
Participant

Hey Shamin – I have one more thing regarding the FacetWP + Send Message link integration I was hoping you could help me with.

The Send Message link that looks like this…

<?php if ( fep_current_user_can( 'send_new_message_to', UPT()->get_user_id() )) { ?>
<a class="text-link" href="<?php echo fep_query_url('newmessage', array('fep_to' => UPT()->get_user_id() ) ); ?>">Send Message</a>
<?php } ?>

…works great on page refresh. BUT, when used in conjunction with FacetWP’s pagination or filtering, it doesn’t show up.

I need to wrap it in ‘facet-loaded’. Here’s an example using this to reinitialize Jetpackā€™s Lazy Load after an ajax refresh:

<script>
(function($) {
    $(document).on('facetwp-loaded', function() {
        jetpackLazyImagesModule( $ );
     });
})(jQuery);
</script>

Can you help me figure out what needs to be included for Front End PM to reinitialize after an ajax refresh?