Options
All
  • Public
  • Public/Protected
  • All
Menu

See PHP file inc/Assets.php.

Hierarchy

Index

Properties

Optional chunkFolder

chunkFolder: string

Optional chunks

chunks: Record<string, string[]>

Optional publicUrl

publicUrl: string

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

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