- added hooks for individual checking post/term if it's restricted;

This commit is contained in:
Nikita Sinelnikov
2021-08-09 14:43:13 +03:00
parent a61ee881e1
commit 0a15e221e1
+4
View File
@@ -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;
}