• Resolved clickingclients

    (@clickingclients)


    I’d like to know how to disable tracking etc while admin logged in?

    There are very few ways to manipulate settings within WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support lionel.a11n

    (@lioneldaniel)

    Hello @clickingclients,

    Unfortunately, there’s currently no way to do this by default.

    We do have a snippet for disabling the pixel as a whole:

    add_filter( 'facebook_for_woocommerce_integration_pixel_enabled', '__return_false' );

    By itself, this snippet disables pixel for everybody. If you want to put it in a conditional statement to only load for adminstrators, you can check out this stackoverflow answer for ideas on how to do that.

    The suggestions above are provided as-is to get you started. If you aren’t sure how to use the snippet or edit it, you might want to get in touch with a developer – you can also ask for help on the #developers channel of the community slack.

    I hope that helps, and let us know if you have any further questions!

    Thread Starter clickingclients

    (@clickingclients)

    That works perfectly.
    I’ll make it a generic wrapper and throw in other plugins I want disabled on frontend while logged in.
    Thanks!

    Plugin Support Niall a11n

    (@wpniall)

    Hi @clickingclients,

    Glad to hear Lionel’s solution might work for you.

    Please let us know if you have any further questions!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to disable tracking etc while admin logged in?’ is closed to new replies.