mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added hooks for individual checking post/term if it's restricted;
This commit is contained in:
@@ -1693,6 +1693,8 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
$restricted = apply_filters( 'um_is_restricted_post', $restricted, $post_id );
|
||||
|
||||
$cache[ $post_id ] = $restricted;
|
||||
|
||||
return $restricted;
|
||||
@@ -1782,6 +1784,8 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
$restricted = apply_filters( 'um_is_restricted_term', $restricted, $term_id, $on_term_page );
|
||||
|
||||
$cache[ $term_id ] = $restricted;
|
||||
return $restricted;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user