New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added filter to dynamically show or not show wBounce. #7

merged 1 commit into from Dec 8, 2015


None yet
2 participants

dima-stefantsov commented Dec 7, 2015

wBounce can by default be disabled with post meta flag.

With this change it can be dynamically disabled or enabled on other conditions. Example usage:

add_filter('wbounce_test_if_status_is_off', 'd_wbounce_test_if_status_is_off');
function d_wbounce_test_if_status_is_off($isoff)
    // If it's disabled manually - let it be.
    // If it's enabled, disable it when hide_metrika is set.
    return $isoff || (function_exists('get_field') && get_field("hide_metrika"));

kevinweber added a commit that referenced this pull request Dec 8, 2015

Merge pull request #7 from dima-stefantsov/master
Added filter to dynamically show or not show wBounce.

@kevinweber kevinweber merged commit 3c63480 into kevinweber:master Dec 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment