Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns OptionStore

Properties

Optional chunkFolder

chunkFolder: string

Optional chunks

chunks: Record<string, string[]>

others

others: { currentUserFullName: string; names: Record<string, { hasAtLeastOneActiveLicense: boolean; isPluginActiveForNetwork: boolean; name: string; plugin: string; privacyPolicy: string; privacyProvider: string }> }

Type declaration

  • currentUserFullName: string
  • names: Record<string, { hasAtLeastOneActiveLicense: boolean; isPluginActiveForNetwork: boolean; name: string; plugin: string; privacyPolicy: string; privacyProvider: string }>

Optional publicUrl

publicUrl: string

Readonly pureSlug

pureSlug: ReturnType<typeof getPureSlug>

Readonly pureSlugCamelCased

pureSlugCamelCased: ReturnType<typeof getPureSlug>

Optional restNamespace

restNamespace: string

Optional restNonce

restNonce: string

Optional restQuery

restQuery: {}

Type declaration

Optional restRecreateNonceEndpoint

restRecreateNonceEndpoint: string

Optional restRoot

restRoot: string

Optional restUrl

restUrl: string

Readonly rootStore

rootStore: RootStore

slug

slug: string

textDomain

textDomain: string

version

version: string

Methods

Static getPureSlug

  • getPureSlug(slug: string, camelCase?: boolean): string
  • Get the slug from the current process (webpack) instead of the PHP plugin output. For some cases you need to use that.

    Parameters

    • slug: string
    • Default value camelCase: boolean = false

    Returns string

Static slugCamelCase

  • slugCamelCase(slug: string): string
  • Convert a slug like "my-plugin" to "myPlugin". This can be useful for library naming (window[""] is bad because the hyphens).

    Parameters

    • slug: string

    Returns string

Generated using TypeDoc