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
/** ====================================================================================== | |
* | |
* Automatically Exclude Password Protected Pages | |
* | |
* Kudos: https://gist.github.com/bonny/5772054 | |
* The original (linked above) uses an argument: | |
* wp_list_pages('title_li=&post_type=faqs&echo=0&exclude_password_protected=1') | |
* | |
======================================================================================= */ | |
function ca_exclude_password_protected_pages($pages, $r) { |