• Resolved jetxpert

    (@jetxpert)


    Good Day!

    We need assistance on how to use your filters. We tried two of them and they are not working.

    (1) Filter for stopping the animation inside your dashboard

    We added your filter below to our functions.php file via Code Snippets but the animation is still on. What are we doing wrong?

    function analytify_dashboard_head_animate_cb( $condition ) {
    return false;
    }
    add_filter( 'analytify_dashboard_head_animate', 'analytify_dashboard_head_animate_cb' );

    (2) Email filter for websites that have a custom login URL

    As reported in another forum topic, it worked at first only because our browser had cached the original (wp-admin) link from a previous website login session. When we cleared our browser cache, we were directed to a 404 page as expected since we’re using a custom login URL.

    function analytify_email_dashboard_url_cb( $url ) {
    $url = 'your-url.com';
    return $url;
    }
    add_filter( 'analytify_email_dashboard_url', 'analytify_email_dashboard_url_cb' );

    Based on the above, can you please explain better the filter’s term: your-url.com? Did you test your filter using browsers in both standard and incognito modes with all cache cleared?

    We used the following as your-url.com but the filter still didn’t work:

    mywebsite.com/customlogin

    mywebsite.com/customlogin?redirect_to=https%3A%2F%2Fwww.omniaaerospace.com%2Fwp-admin%2Fadmin.php%3Fpage%3analytify-dashboard

    https://www.mywebsite.com/customlogin

    https://www.mywebsite.com/customlogin?redirect_to=https%3A%2F%2Fwww.omniaaerospace.com%2Fwp-admin%2Fadmin.php%3Fpage%3analytify-dashboard

    Where customlogin is our custom login URL term.

    Help appreciated!

    Reference:

    https://www.ads-software.com/support/topic/need-filter-for-analytifys-email-report-footer-link/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    We tested the filters using Code Snippets and they are working just fine.

    For the animation filter, I set it to “Only run in administration area” and the email filter, I set it to “Run snippet everywhere”.

    Can you please contact us at our contact form so we can get more information from you.

    BTW we recommended that you don’t use any plugins to insert code, just put the code directly in your theme’s functions.php file.

    • This reply was modified 3 years, 3 months ago by Hamza.
    Thread Starter jetxpert

    (@jetxpert)

    @hamzawpb,

    Thank you! Very helpful.

    Before we reach out directly to you, two final things might help us:

    (1 What Priority number did you assign to your Code Snippets? We plan to use 1

    (2) What did you use for your-url.com? We listed four possibilities above, but they were not address in your reply. Please explain this better.

    Once we try the above, if it doesn’t help, we’ll reach out to you.

    Thank you!

    Thread Starter jetxpert

    (@jetxpert)

    @hamzawpb,

    Update:

    Still not working. We performed the following tests:

    (1) We used Code Snippets (per your recommendations) with Priority 1. Didn’t help.

    (2) We placed the filters directly into our functions.php file, then cleared cache. Didn’t help.

    (3) We performed above test will all non-essential plugins deactivated. Didn’t help.

    (4) Last, but not the least, every time we tested your filter, we hovered over the link and never saw the standard /wp-admin URL for the link change to the custom /mycustom URL. So, this was a clear indicator of the filter not working for us.

    Bottom line … the last thing we need from you (before sending a private request) is an explanation on what to use for your-url.com Two or three examples would be awesome.

    Please keep in mind that we’ve been using Code Snippets for 4 years and have 36 snippets that work — including a code snippet from Rank Math that addresses the identical issue for their email reports. Yours is the only one (i.e., code snippet or filter) that doesn’t.

    Thank you!

    Thread Starter jetxpert

    (@jetxpert)

    @hamzawpb,

    Update:

    (1) Filter for Email Reports: FIXED. Issue fixed after upgrading to Email Notifications V2.0.2 (latest revision).

    (2) Filter for Stopping Dashboard Animation: FIXED. The filter worked after we logged out from WP, logged out from our browser, cleared cached, then logged back in. We expected the filter to work without requiring a logout/login maneuver.

    Please update your documentation to reflect the above. Will help others understand better how to use your filters.

    Thank you!

    I’m glad it got sorted out.
    I’ll also have the filters doc update with the minimum required version info.
    I’m marking this as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filters Not Working’ is closed to new replies.