• Resolved aggk

    (@aggk)


    Hi,

    I tried the ACF snippet under “Filtering more content” at https://encoder.till.im/guide and it works great but only if I exclude the
    if ( method_exists( ‘eae_encode_emails’ ) ) -condition.
    otherwise it doesn’t work and I also see this warning:
    “method_exists() expects exactly 2 parameters, 1 given”

    Am I missing something there?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Uh yeah that’s the wrong code. I updated the guide:

    <?php
    
    if ( method_exists( 'eae_encode_emails' ) )  {
        add_filter( 'acf/load_value', 'eae_encode_emails' );
    }
    Thread Starter aggk

    (@aggk)

    Great, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ACF snippet’ is closed to new replies.