@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
99 lines • 3.61 kB
TypeScript
import type * as types from "./types";
export declare class Config {
#private;
constructor(config: types.Config);
isMultiSite(): boolean;
isSsl(): boolean;
isSubdomainInstall(): boolean;
get config(): {
constants: {
ALLOW_UNFILTERED_UPLOADS: boolean;
DISALLOW_UNFILTERED_HTML: boolean;
DISALLOW_FILE_EDIT: boolean;
LINK_USE_SSL: boolean;
TRASHED_SUFFIX_TO_POST_NAME_FOR_POST: "__trashed";
ALLOW_FILESYSTEM_OPERATIONS: boolean;
WP_DEFAULT_THEME: string;
WP_DB_VERSION: number;
WPLANG: string;
EMPTY_TRASH_DAYS: number;
MEDIA_TRASH: boolean;
WP_POST_REVISIONS: number;
WP_LOG_LEVEL: "debug" | "info" | "warn" | "error";
};
extensions: {
misc: string[];
audio: string[];
video: string[];
};
timezoneOffset: string;
staticAssetsPath: string;
options: {
protected: string[];
defaults: string[];
};
multisite: {
enabled: boolean;
defaultBlogId: number;
defaultSiteId: number;
defaultSitemetaKeys: string[];
subdomainInstall: boolean;
subdirectoryReservedNames: string[];
vhost: "no" | "yes";
uploadBlogsDir: string;
};
tableCharset: string;
tableCollate: string;
tablePrefix: string;
database: {
client: string;
connection: {
port: number;
charset: string;
host?: string | undefined;
user?: string | undefined;
password?: string | undefined;
database?: string | undefined;
};
};
posts: {
typeNames: string[] | "post" | "page" | "attachment" | "revision";
types: Record<string, {
capabilityType: string | [string, string];
supports: string[];
mapMetaCap: boolean;
deleteWithUser: boolean;
publiclyQueryable: boolean;
public: boolean;
_builtin: boolean;
capabilities?: Record<string, string> | undefined;
hierarchical?: boolean | undefined;
}>;
statusNames: string[] | "publish" | "future" | "draft" | "pending" | "private" | "trash" | "inherit" | "auto-draft" | "request-pending" | "request-confirmed" | "request-failed" | "request-completed";
statuses: Record<string, {
label: string;
public?: boolean | undefined;
protected?: boolean | undefined;
private?: boolean | undefined;
internal?: boolean | undefined;
_builtin?: boolean | undefined;
}>;
};
taxonomy: {
names: string[] | "category" | "post_tag" | "post_format" | "link_category";
settings: Record<string, {
hierarchical: boolean;
objectType: string;
_builtin: boolean;
showUi: boolean;
capabilities?: Record<"manage_terms" | "edit_terms" | "delete_terms" | "assign_terms", string> | undefined;
}>;
};
roles: Record<string, {
name: string;
capabilities: string[];
}>;
};
set(config: types.DeepPartial<types.Config>): void;
}
//# sourceMappingURL=config.d.ts.map