File tree Expand file tree Collapse file tree
packages/core-data/src/restrictions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ export type EditorId = 'new' | number | undefined;
4646 * @see /includes/functions/install.php:get_default_restriction_settings()
4747 */
4848export interface RestrictionSettings {
49- userStatus : 'logged_in' | 'logged_out' ;
49+ userStatus : 'logged_in' | 'logged_out' | string ;
5050 roleMatch : 'any' | 'match' | 'exclude' ;
5151 userRoles : string [ ] ;
5252 protectionMethod : 'redirect' | 'replace' | string ;
5353 redirectType : 'login' | 'home' | 'custom' ;
5454 redirectUrl : string ;
55- replacementType : 'page' | 'message' ;
55+ replacementType : 'page' | 'message' | 'wp_block' | string ;
5656 replacementPage ?: number ;
5757 archiveHandling :
5858 | 'filter_post_content'
@@ -80,6 +80,7 @@ export interface BaseRestriction {
8080 settings : RestrictionSettings ;
8181 [ key : string ] : any ;
8282}
83+
8384export interface Restriction extends BaseRestriction {
8485 id : number ;
8586 title : string ;
You can’t perform that action at this time.
0 commit comments