Add filter to modify post thumbnail restrictions

This commit is contained in:
Champ Camba
2019-05-18 21:02:07 +08:00
parent c69975868f
commit b7f65e76b1
+2
View File
@@ -1220,6 +1220,8 @@ if ( ! class_exists( 'um\core\Access' ) ) {
}
}
$has_thumbnail = apply_filters("um_restrict_post_thumbnail", $has_thumbnail, $post, $thumbnail_id );
return $has_thumbnail;
}