Changeset 885664
- Timestamp:
- 04/01/2014 02:47:08 PM (12 years ago)
- Location:
- dovetail/trunk
- Files:
-
- 2 edited
-
FP-members.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dovetail/trunk/FP-members.php
r885585 r885664 283 283 $allowed_roles = get_post_meta( $post->ID, "available_roles", true ); 284 284 285 286 // This allows theme developers to skip authorisation checks in certain page templates if they want to 287 $skip_check = apply_filters( "dovetail_skip_content_check", false, $post ); 288 289 if ( $skip_check ) { 290 return $content; 291 } 292 285 293 // No restriction; allow all to view 286 294 if ( empty( $allowed_roles ) ) -
dovetail/trunk/readme.txt
r885585 r885664 38 38 If you're not wild about parting with your cash then Dovetail should work nicely with any other plugin which lets you theme the Wordpress user signup process. 39 39 40 = I need to skip checking whether a user can view a page on pages with a certain type; can I do that? = 41 42 Just add "add_filter( "dovetail_skip_content_check", '__return_true', 10 );" (without the speech marks) above where it says "get_header" in the template file. 43 40 44 == Screenshots == 41 45 … … 48 52 49 53 == Changelog == 54 55 = 1.2.3 = 56 57 * Added "dovetail_skip_content_check" filter, which allows theme developers to skip authorisation checks in certain page templates if they want to (e.g. add "add_filter( "dovetail_skip_content_check", '__return_true', 10 );" at the top of the template to skip the auth check) 50 58 51 59 = 1.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.