mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 05:03:33 +09:00
- added hook for ignore changing post title in the_title() function if the post is restricted;
This commit is contained in:
@@ -869,6 +869,11 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
}
|
||||
|
||||
if ( $this->is_restricted( $id ) ) {
|
||||
$ignore = apply_filters( 'um_ignore_restricted_title', false, $id );
|
||||
if ( $ignore ) {
|
||||
return $title;
|
||||
}
|
||||
|
||||
$restricted_global_title = UM()->options()->get( 'restricted_access_post_title' );
|
||||
$title = stripslashes( $restricted_global_title );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user