• Resolved danielbaniel

    (@danielbaniel)


    Hello, I was wondering if it was possible to encode email addresses that are within a cell in TablePress. The tables are placed on a page within a custom field via shortcode. It works with regular content in the same field, just not the TablePress content. I am having trouble figuring out the correct filter hook to make it happen. I’ve tried the following:

    add_filter( the_content, ‘eae_encode_emails’ );
    add_filter(‘acf/load_value’, ‘eae_encode_emails’);
    add_filter(‘tablepress_table_output’, ‘eae_encode_emails’);

    Is this the best way to accomplish this? Any suggestions to best handle this scenario?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    add_filter('tablepress_table_output', 'eae_encode_email');
    

    should actually work fine. Alternatively (but then maybe a bit slower) try

    add_filter('tablepress_cell_content', 'eae_encode_email');
    

    Note that you might be seeing cached table output, so that you might have to simply save your table again, to clear the cache.

    Regards,
    Tobias

    Thread Starter danielbaniel

    (@danielbaniel)

    The cached table output is exactly what was happening. I came to that conclusion pretty shortly after posting, thanks a lot for confirming! I appreciate your fast response and the work you’ve done on this plugin.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Email Address Encoder with TablePress’ is closed to new replies.