Created
July 19, 2015 13:09
-
-
Save octalmage/3d418aefb610ea9e11d8 to your computer and use it in GitHub Desktop.
Cache Buddy Filters.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('cache_buddy_logged_in_frontend', 'cache_buddy_custom_users', 10, 2); | |
add_filter('cache_buddy_logged_in_paths', 'cache_buddy_custom_paths', 10, 1); | |
function cache_buddy_custom_users($cookie, $user) | |
{ | |
//Return true if the user gets to be logged in on front end. This is only ran when the user logs in. | |
return false; | |
} | |
function cache_buddy_custom_paths($paths) | |
{ | |
array_push($paths, trailingslashit( COOKIEPATH ) . 'about'); | |
return $paths; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment