apply_filters( ‘block_editor_settings_all’, array $editor_settings, WP_Block_Editor_Context $block_editor_context )

Filters the settings to pass to the block editor for all editor type.

Parameters

$editor_settingsarray
Default editor settings.
$block_editor_contextWP_Block_Editor_Context
The current block editor context.

Source

$editor_settings = apply_filters( 'block_editor_settings_all', $editor_settings, $block_editor_context );

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

  1. Skip to note 3 content

    As of WordPress 5.9, these are the default settings that are parsed through the `block_editor_settings_all` filter:

    array(37) {
      ["alignWide"]=>
      bool(false)
      ["allowedBlockTypes"]=>
      bool(true)
      ["allowedMimeTypes"]=>
      array(92) {
        ["jpg|jpeg|jpe"]=>
        string(10) "image/jpeg"
        ["gif"]=>
        string(9) "image/gif"
        ["png"]=>
        string(9) "image/png"
        ["bmp"]=>
        string(9) "image/bmp"
        ["tiff|tif"]=>
        string(10) "image/tiff"
        ["webp"]=>
        string(10) "image/webp"
        ["ico"]=>
        string(12) "image/x-icon"
        ["heic"]=>
        string(10) "image/heic"
        ["asf|asx"]=>
        string(14) "video/x-ms-asf"
        ["wmv"]=>
        string(14) "video/x-ms-wmv"
        ["wmx"]=>
        string(14) "video/x-ms-wmx"
        ["wm"]=>
        string(13) "video/x-ms-wm"
        ["avi"]=>
        string(9) "video/avi"
        ["divx"]=>
        string(10) "video/divx"
        ["flv"]=>
        string(11) "video/x-flv"
        ["mov|qt"]=>
        string(15) "video/quicktime"
        ["mpeg|mpg|mpe"]=>
        string(10) "video/mpeg"
        ["mp4|m4v"]=>
        string(9) "video/mp4"
        ["ogv"]=>
        string(9) "video/ogg"
        ["webm"]=>
        string(10) "video/webm"
        ["mkv"]=>
        string(16) "video/x-matroska"
        ["3gp|3gpp"]=>
        string(10) "video/3gpp"
        ["3g2|3gp2"]=>
        string(11) "video/3gpp2"
        ["txt|asc|c|cc|h|srt"]=>
        string(10) "text/plain"
        ["csv"]=>
        string(8) "text/csv"
        ["tsv"]=>
        string(25) "text/tab-separated-values"
        ["ics"]=>
        string(13) "text/calendar"
        ["rtx"]=>
        string(13) "text/richtext"
        ["css"]=>
        string(8) "text/css"
        ["htm|html"]=>
        string(9) "text/html"
        ["vtt"]=>
        string(8) "text/vtt"
        ["dfxp"]=>
        string(20) "application/ttaf+xml"
        ["mp3|m4a|m4b"]=>
        string(10) "audio/mpeg"
        ["aac"]=>
        string(9) "audio/aac"
        ["ra|ram"]=>
        string(17) "audio/x-realaudio"
        ["wav"]=>
        string(9) "audio/wav"
        ["ogg|oga"]=>
        string(9) "audio/ogg"
        ["flac"]=>
        string(10) "audio/flac"
        ["mid|midi"]=>
        string(10) "audio/midi"
        ["wma"]=>
        string(14) "audio/x-ms-wma"
        ["wax"]=>
        string(14) "audio/x-ms-wax"
        ["mka"]=>
        string(16) "audio/x-matroska"
        ["rtf"]=>
        string(15) "application/rtf"
        ["js"]=>
        string(22) "application/javascript"
        ["pdf"]=>
        string(15) "application/pdf"
        ["class"]=>
        string(16) "application/java"
        ["tar"]=>
        string(17) "application/x-tar"
        ["zip"]=>
        string(15) "application/zip"
        ["gz|gzip"]=>
        string(18) "application/x-gzip"
        ["rar"]=>
        string(15) "application/rar"
        ["7z"]=>
        string(27) "application/x-7z-compressed"
        ["psd"]=>
        string(24) "application/octet-stream"
        ["xcf"]=>
        string(24) "application/octet-stream"
        ["doc"]=>
        string(18) "application/msword"
        ["pot|pps|ppt"]=>
        string(29) "application/vnd.ms-powerpoint"
        ["wri"]=>
        string(24) "application/vnd.ms-write"
        ["xla|xls|xlt|xlw"]=>
        string(24) "application/vnd.ms-excel"
        ["mdb"]=>
        string(25) "application/vnd.ms-access"
        ["mpp"]=>
        string(26) "application/vnd.ms-project"
        ["docx"]=>
        string(71) "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
        ["docm"]=>
        string(48) "application/vnd.ms-word.document.macroEnabled.12"
        ["dotx"]=>
        string(71) "application/vnd.openxmlformats-officedocument.wordprocessingml.template"
        ["dotm"]=>
        string(48) "application/vnd.ms-word.template.macroEnabled.12"
        ["xlsx"]=>
        string(65) "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
        ["xlsm"]=>
        string(46) "application/vnd.ms-excel.sheet.macroEnabled.12"
        ["xlsb"]=>
        string(53) "application/vnd.ms-excel.sheet.binary.macroEnabled.12"
        ["xltx"]=>
        string(68) "application/vnd.openxmlformats-officedocument.spreadsheetml.template"
        ["xltm"]=>
        string(49) "application/vnd.ms-excel.template.macroEnabled.12"
        ["xlam"]=>
        string(46) "application/vnd.ms-excel.addin.macroEnabled.12"
        ["pptx"]=>
        string(73) "application/vnd.openxmlformats-officedocument.presentationml.presentation"
        ["pptm"]=>
        string(58) "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
        ["ppsx"]=>
        string(70) "application/vnd.openxmlformats-officedocument.presentationml.slideshow"
        ["ppsm"]=>
        string(55) "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
        ["potx"]=>
        string(69) "application/vnd.openxmlformats-officedocument.presentationml.template"
        ["potm"]=>
        string(54) "application/vnd.ms-powerpoint.template.macroEnabled.12"
        ["ppam"]=>
        string(51) "application/vnd.ms-powerpoint.addin.macroEnabled.12"
        ["sldx"]=>
        string(66) "application/vnd.openxmlformats-officedocument.presentationml.slide"
        ["sldm"]=>
        string(51) "application/vnd.ms-powerpoint.slide.macroEnabled.12"
        ["onetoc|onetoc2|onetmp|onepkg"]=>
        string(19) "application/onenote"
        ["oxps"]=>
        string(16) "application/oxps"
        ["xps"]=>
        string(30) "application/vnd.ms-xpsdocument"
        ["odt"]=>
        string(39) "application/vnd.oasis.opendocument.text"
        ["odp"]=>
        string(47) "application/vnd.oasis.opendocument.presentation"
        ["ods"]=>
        string(46) "application/vnd.oasis.opendocument.spreadsheet"
        ["odg"]=>
        string(43) "application/vnd.oasis.opendocument.graphics"
        ["odc"]=>
        string(40) "application/vnd.oasis.opendocument.chart"
        ["odb"]=>
        string(43) "application/vnd.oasis.opendocument.database"
        ["odf"]=>
        string(42) "application/vnd.oasis.opendocument.formula"
        ["wp|wpd"]=>
        string(23) "application/wordperfect"
        ["key"]=>
        string(29) "application/vnd.apple.keynote"
        ["numbers"]=>
        string(29) "application/vnd.apple.numbers"
        ["pages"]=>
        string(27) "application/vnd.apple.pages"
      }
      ["defaultEditorStyles"]=>
      array(1) {
        [0]=>
        array(1) {
          ["css"]=>
          string(2458) "/**
     * Colors
     */
    /**
     * Breakpoints & Media Queries
     */
    /**
     * SCSS Variables.
     *
     * Please use variables from this sheet to ensure consistency across the UI.
     * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
     * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
     */
    /**
     * Colors
     */
    /**
     * Fonts & basic variables.
     */
    /**
     * Grid System.
     * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
     */
    /**
     * Dimensions.
     */
    /**
     * Shadows.
     */
    /**
     * Editor widths.
     */
    /**
     * Block & Editor UI.
     */
    /**
     * Block paddings.
     */
    /**
     * React Native specific.
     * These variables do not appear to be used anywhere else.
     */
    /**
    *  Converts a hex value into the rgb equivalent.
    *
    * @param {string} hex - the hexadecimal value to convert
    * @return {string} comma separated rgb values
    */
    /**
     * Breakpoint mixins
     */
    /**
     * Long content fade mixin
     *
     * Creates a fading overlay to signify that the content is longer
     * than the space allows.
     */
    /**
     * Focus styles.
     */
    /**
     * Applies editor left position to the selector passed as argument
     */
    /**
     * Styles that are reused verbatim in a few places
     */
    /**
     * Allows users to opt-out of animations via OS-level preferences.
     */
    /**
     * Reset default styles for JavaScript UI based pages.
     * This is a WP-admin agnostic reset
     */
    /**
     * Reset the WP Admin page styles for Gutenberg-like pages.
     */
    :root {
      --wp-admin-theme-color: #007cba;
      --wp-admin-theme-color--rgb: 0, 124, 186;
      --wp-admin-theme-color-darker-10: #006ba1;
      --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
      --wp-admin-theme-color-darker-20: #005a87;
      --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
      --wp-admin-border-width-focus: 2px;
    }
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
      :root {
        --wp-admin-border-width-focus: 1.5px;
      }
    }
    
    /**
    * Default editor styles.
    *
    * These styles are shown if a theme does not register its own editor style,
    * a theme.json file, or has toggled off "Use theme styles" in preferences.
    */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
      font-size: 18px;
      line-height: 1.5;
      --wp--style--block-gap: 2em;
    }
    
    p {
      line-height: 1.8;
    }
    
    .editor-post-title__block {
      margin-top: 2em;
      margin-bottom: 1em;
      font-size: 2.5em;
      font-weight: 800;
    }"
        }
      }
      ["blockCategories"]=>
      array(7) {
        [0]=>
        array(3) {
          ["slug"]=>
          string(4) "text"
          ["title"]=>
          string(4) "Text"
          ["icon"]=>
          NULL
        }
        [1]=>
        array(3) {
          ["slug"]=>
          string(5) "media"
          ["title"]=>
          string(5) "Media"
          ["icon"]=>
          NULL
        }
        [2]=>
        array(3) {
          ["slug"]=>
          string(6) "design"
          ["title"]=>
          string(6) "Design"
          ["icon"]=>
          NULL
        }
        [3]=>
        array(3) {
          ["slug"]=>
          string(7) "widgets"
          ["title"]=>
          string(7) "Widgets"
          ["icon"]=>
          NULL
        }
        [4]=>
        array(3) {
          ["slug"]=>
          string(5) "theme"
          ["title"]=>
          string(5) "Theme"
          ["icon"]=>
          NULL
        }
        [5]=>
        array(3) {
          ["slug"]=>
          string(5) "embed"
          ["title"]=>
          string(6) "Embeds"
          ["icon"]=>
          NULL
        }
        [6]=>
        array(3) {
          ["slug"]=>
          string(8) "reusable"
          ["title"]=>
          string(15) "Reusable Blocks"
          ["icon"]=>
          NULL
        }
      }
      ["disableCustomColors"]=>
      bool(false)
      ["disableCustomFontSizes"]=>
      bool(true)
      ["disableCustomGradients"]=>
      bool(false)
      ["enableCustomLineHeight"]=>
      bool(false)
      ["enableCustomSpacing"]=>
      bool(false)
      ["enableCustomUnits"]=>
      bool(false)
      ["isRTL"]=>
      bool(false)
      ["imageDefaultSize"]=>
      string(5) "large"
      ["imageDimensions"]=>
      array(3) {
        ["thumbnail"]=>
        array(3) {
          ["width"]=>
          int(150)
          ["height"]=>
          int(150)
          ["crop"]=>
          bool(true)
        }
        ["medium"]=>
        array(3) {
          ["width"]=>
          int(300)
          ["height"]=>
          int(300)
          ["crop"]=>
          bool(false)
        }
        ["large"]=>
        array(3) {
          ["width"]=>
          int(1024)
          ["height"]=>
          int(1024)
          ["crop"]=>
          bool(false)
        }
      }
      ["imageEditing"]=>
      bool(true)
      ["imageSizes"]=>
      array(4) {
        [0]=>
        array(2) {
          ["slug"]=>
          string(9) "thumbnail"
          ["name"]=>
          string(9) "Thumbnail"
        }
        [1]=>
        array(2) {
          ["slug"]=>
          string(6) "medium"
          ["name"]=>
          string(6) "Medium"
        }
        [2]=>
        array(2) {
          ["slug"]=>
          string(5) "large"
          ["name"]=>
          string(5) "Large"
        }
        [3]=>
        array(2) {
          ["slug"]=>
          string(4) "full"
          ["name"]=>
          string(9) "Full Size"
        }
      }
      ["maxUploadFileSize"]=>
      int(536870912)
      ["__unstableGalleryWithImageBlocks"]=>
      bool(true)
      ["availableTemplates"]=>
      array(0) {
      }
      ["disablePostFormats"]=>
      bool(true)
      ["titlePlaceholder"]=>
      string(9) "Add title"
      ["bodyPlaceholder"]=>
      string(24) "Type / to choose a block"
      ["autosaveInterval"]=>
      int(60)
      ["styles"]=>
      array(3) {
        [0]=>
        array(2) {
          ["css"]=>
          string(2735) "body{--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--duotone--dark-grayscale: url('#wp-duotone-dark-grayscale');--wp--preset--duotone--grayscale: url('#wp-duotone-grayscale');--wp--preset--duotone--purple-yellow: url('#wp-duotone-purple-yellow');--wp--preset--duotone--blue-red: url('#wp-duotone-blue-red');--wp--preset--duotone--midnight: url('#wp-duotone-midnight');--wp--preset--duotone--magenta-yellow: url('#wp-duotone-magenta-yellow');--wp--preset--duotone--purple-green: url('#wp-duotone-purple-green');--wp--preset--duotone--blue-orange: url('#wp-duotone-blue-orange');--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;}"
          ["__unstableType"]=>
          string(7) "presets"
        }
        [1]=>
        array(2) {
          ["css"]=>
          string(5312) ".has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}"
          ["__unstableType"]=>
          string(7) "presets"
        }
        [2]=>
        array(2) {
          ["css"]=>
          string(246) "body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"
          ["__unstableType"]=>
          string(5) "theme"
        }
      }
      ["richEditingEnabled"]=>
      bool(true)
      ["postLock"]=>
      array(2) {
        ["isLocked"]=>
        bool(false)
        ["activePostLock"]=>
        string(12) "1643739626:1"
      }
      ["postLockUtils"]=>
      array(3) {
        ["nonce"]=>
        string(10) "ae72103d65"
        ["unlockNonce"]=>
        string(10) "71aa622c0a"
        ["ajaxUrl"]=>
        string(40) "http://localhost/wp-admin/admin-ajax.php"
      }
      ["supportsLayout"]=>
      bool(true)
      ["__experimentalBlockPatterns"]=> array(29){}
      ["__experimentalBlockPatternCategories"]=>
      array(7) {
        [0]=>
        array(2) {
          ["name"]=>
          string(7) "buttons"
          ["label"]=>
          string(7) "Buttons"
        }
        [1]=>
        array(2) {
          ["name"]=>
          string(7) "columns"
          ["label"]=>
          string(7) "Columns"
        }
        [2]=>
        array(2) {
          ["name"]=>
          string(7) "gallery"
          ["label"]=>
          string(7) "Gallery"
        }
        [3]=>
        array(2) {
          ["name"]=>
          string(6) "header"
          ["label"]=>
          string(7) "Headers"
        }
        [4]=>
        array(2) {
          ["name"]=>
          string(4) "text"
          ["label"]=>
          string(4) "Text"
        }
        [5]=>
        array(2) {
          ["name"]=>
          string(5) "query"
          ["label"]=>
          string(5) "Query"
        }
        [6]=>
        array(2) {
          ["name"]=>
          string(8) "featured"
          ["label"]=>
          string(8) "Featured"
        }
      }
      ["supportsTemplateMode"]=>
      bool(true)
      ["enableCustomFields"]=>
      bool(false)
      ["autosave"]=>
      array(1) {
        ["editLink"]=>
        string(50) "http://localhost/wp-admin/revision.php?revision=23"
      }
      ["__experimentalFeatures"]=>
      array(6) {
        ["appearanceTools"]=>
        bool(false)
        ["border"]=>
        array(4) {
          ["color"]=>
          bool(false)
          ["radius"]=>
          bool(false)
          ["style"]=>
          bool(false)
          ["width"]=>
          bool(false)
        }
        ["color"]=>
        array(9) {
          ["background"]=>
          bool(true)
          ["customDuotone"]=>
          bool(true)
          ["defaultGradients"]=>
          bool(true)
          ["defaultPalette"]=>
          bool(true)
          ["duotone"]=>
          array(1) {
            ["default"]=>
            array(8) {
              [0]=>
              array(3) {
                ["name"]=>
                string(14) "Dark grayscale"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#000000"
                  [1]=>
                  string(7) "#7f7f7f"
                }
                ["slug"]=>
                string(14) "dark-grayscale"
              }
              [1]=>
              array(3) {
                ["name"]=>
                string(9) "Grayscale"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#000000"
                  [1]=>
                  string(7) "#ffffff"
                }
                ["slug"]=>
                string(9) "grayscale"
              }
              [2]=>
              array(3) {
                ["name"]=>
                string(17) "Purple and yellow"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#8c00b7"
                  [1]=>
                  string(7) "#fcff41"
                }
                ["slug"]=>
                string(13) "purple-yellow"
              }
              [3]=>
              array(3) {
                ["name"]=>
                string(12) "Blue and red"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#000097"
                  [1]=>
                  string(7) "#ff4747"
                }
                ["slug"]=>
                string(8) "blue-red"
              }
              [4]=>
              array(3) {
                ["name"]=>
                string(8) "Midnight"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#000000"
                  [1]=>
                  string(7) "#00a5ff"
                }
                ["slug"]=>
                string(8) "midnight"
              }
              [5]=>
              array(3) {
                ["name"]=>
                string(18) "Magenta and yellow"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#c7005a"
                  [1]=>
                  string(7) "#fff278"
                }
                ["slug"]=>
                string(14) "magenta-yellow"
              }
              [6]=>
              array(3) {
                ["name"]=>
                string(16) "Purple and green"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#a60072"
                  [1]=>
                  string(7) "#67ff66"
                }
                ["slug"]=>
                string(12) "purple-green"
              }
              [7]=>
              array(3) {
                ["name"]=>
                string(15) "Blue and orange"
                ["colors"]=>
                array(2) {
                  [0]=>
                  string(7) "#1900d8"
                  [1]=>
                  string(7) "#ffa96b"
                }
                ["slug"]=>
                string(11) "blue-orange"
              }
            }
          }
          ["gradients"]=>
          array(1) {
            ["default"]=>
            array(12) {
              [0]=>
              array(3) {
                ["name"]=>
                string(31) "Vivid cyan blue to vivid purple"
                ["gradient"]=>
                string(65) "linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"
                ["slug"]=>
                string(31) "vivid-cyan-blue-to-vivid-purple"
              }
              [1]=>
              array(3) {
                ["name"]=>
                string(36) "Light green cyan to vivid green cyan"
                ["gradient"]=>
                string(63) "linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"
                ["slug"]=>
                string(36) "light-green-cyan-to-vivid-green-cyan"
              }
              [2]=>
              array(3) {
                ["name"]=>
                string(45) "Luminous vivid amber to luminous vivid orange"
                ["gradient"]=>
                string(67) "linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)"
                ["slug"]=>
                string(45) "luminous-vivid-amber-to-luminous-vivid-orange"
              }
              [3]=>
              array(3) {
                ["name"]=>
                string(34) "Luminous vivid orange to vivid red"
                ["gradient"]=>
                string(64) "linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)"
                ["slug"]=>
                string(34) "luminous-vivid-orange-to-vivid-red"
              }
              [4]=>
              array(3) {
                ["name"]=>
                string(35) "Very light gray to cyan bluish gray"
                ["gradient"]=>
                string(65) "linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"
                ["slug"]=>
                string(35) "very-light-gray-to-cyan-bluish-gray"
              }
              [5]=>
              array(3) {
                ["name"]=>
                string(21) "Cool to warm spectrum"
                ["gradient"]=>
                string(144) "linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)"
                ["slug"]=>
                string(21) "cool-to-warm-spectrum"
              }
              [6]=>
              array(3) {
                ["name"]=>
                string(18) "Blush light purple"
                ["gradient"]=>
                string(65) "linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)"
                ["slug"]=>
                string(18) "blush-light-purple"
              }
              [7]=>
              array(3) {
                ["name"]=>
                string(14) "Blush bordeaux"
                ["gradient"]=>
                string(81) "linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)"
                ["slug"]=>
                string(14) "blush-bordeaux"
              }
              [8]=>
              array(3) {
                ["name"]=>
                string(13) "Luminous dusk"
                ["gradient"]=>
                string(83) "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)"
                ["slug"]=>
                string(13) "luminous-dusk"
              }
              [9]=>
              array(3) {
                ["name"]=>
                string(10) "Pale ocean"
                ["gradient"]=>
                string(85) "linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)"
                ["slug"]=>
                string(10) "pale-ocean"
              }
              [10]=>
              array(3) {
                ["name"]=>
                string(14) "Electric grass"
                ["gradient"]=>
                string(65) "linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)"
                ["slug"]=>
                string(14) "electric-grass"
              }
              [11]=>
              array(3) {
                ["name"]=>
                string(8) "Midnight"
                ["gradient"]=>
                string(60) "linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)"
                ["slug"]=>
                string(8) "midnight"
              }
            }
          }
          ["link"]=>
          bool(false)
          ["palette"]=>
          array(1) {
            ["default"]=>
            array(12) {
              [0]=>
              array(3) {
                ["name"]=>
                string(5) "Black"
                ["slug"]=>
                string(5) "black"
                ["color"]=>
                string(7) "#000000"
              }
              [1]=>
              array(3) {
                ["name"]=>
                string(16) "Cyan bluish gray"
                ["slug"]=>
                string(16) "cyan-bluish-gray"
                ["color"]=>
                string(7) "#abb8c3"
              }
              [2]=>
              array(3) {
                ["name"]=>
                string(5) "White"
                ["slug"]=>
                string(5) "white"
                ["color"]=>
                string(7) "#ffffff"
              }
              [3]=>
              array(3) {
                ["name"]=>
                string(9) "Pale pink"
                ["slug"]=>
                string(9) "pale-pink"
                ["color"]=>
                string(7) "#f78da7"
              }
              [4]=>
              array(3) {
                ["name"]=>
                string(9) "Vivid red"
                ["slug"]=>
                string(9) "vivid-red"
                ["color"]=>
                string(7) "#cf2e2e"
              }
              [5]=>
              array(3) {
                ["name"]=>
                string(21) "Luminous vivid orange"
                ["slug"]=>
                string(21) "luminous-vivid-orange"
                ["color"]=>
                string(7) "#ff6900"
              }
              [6]=>
              array(3) {
                ["name"]=>
                string(20) "Luminous vivid amber"
                ["slug"]=>
                string(20) "luminous-vivid-amber"
                ["color"]=>
                string(7) "#fcb900"
              }
              [7]=>
              array(3) {
                ["name"]=>
                string(16) "Light green cyan"
                ["slug"]=>
                string(16) "light-green-cyan"
                ["color"]=>
                string(7) "#7bdcb5"
              }
              [8]=>
              array(3) {
                ["name"]=>
                string(16) "Vivid green cyan"
                ["slug"]=>
                string(16) "vivid-green-cyan"
                ["color"]=>
                string(7) "#00d084"
              }
              [9]=>
              array(3) {
                ["name"]=>
                string(14) "Pale cyan blue"
                ["slug"]=>
                string(14) "pale-cyan-blue"
                ["color"]=>
                string(7) "#8ed1fc"
              }
              [10]=>
              array(3) {
                ["name"]=>
                string(15) "Vivid cyan blue"
                ["slug"]=>
                string(15) "vivid-cyan-blue"
                ["color"]=>
                string(7) "#0693e3"
              }
              [11]=>
              array(3) {
                ["name"]=>
                string(12) "Vivid purple"
                ["slug"]=>
                string(12) "vivid-purple"
                ["color"]=>
                string(7) "#9b51e0"
              }
            }
          }
          ["text"]=>
          bool(true)
        }
        ["spacing"]=>
        array(2) {
          ["blockGap"]=>
          NULL
          ["margin"]=>
          bool(false)
        }
        ["typography"]=>
        array(8) {
          ["dropCap"]=>
          bool(false)
          ["fontSizes"]=>
          array(1) {
            ["default"]=>
            array(4) {
              [0]=>
              array(3) {
                ["name"]=>
                string(5) "Small"
                ["slug"]=>
                string(5) "small"
                ["size"]=>
                string(4) "13px"
              }
              [1]=>
              array(3) {
                ["name"]=>
                string(6) "Medium"
                ["slug"]=>
                string(6) "medium"
                ["size"]=>
                string(4) "20px"
              }
              [2]=>
              array(3) {
                ["name"]=>
                string(5) "Large"
                ["slug"]=>
                string(5) "large"
                ["size"]=>
                string(4) "36px"
              }
              [3]=>
              array(3) {
                ["name"]=>
                string(11) "Extra Large"
                ["slug"]=>
                string(7) "x-large"
                ["size"]=>
                string(4) "42px"
              }
            }
          }
          ["fontStyle"]=>
          bool(false)
          ["fontWeight"]=>
          bool(false)
          ["letterSpacing"]=>
          bool(false)
          ["textDecoration"]=>
          bool(false)
          ["textTransform"]=>
          bool(false)
          ["fontFamilies"]=>
          array(1) {
            ["theme"]=>
            array(0) {
            }
          }
        }
        ["blocks"]=>
        array(2) {
          ["core/button"]=>
          array(1) {
            ["border"]=>
            array(1) {
              ["radius"]=>
              bool(true)
            }
          }
          ["core/pullquote"]=>
          array(1) {
            ["border"]=>
            array(4) {
              ["color"]=>
              bool(true)
              ["radius"]=>
              bool(true)
              ["style"]=>
              bool(true)
              ["width"]=>
              bool(true)
            }
          }
        }
      }
      ["colors"]=>
      array(12) {
        [0]=>
        array(3) {
          ["name"]=>
          string(5) "Black"
          ["slug"]=>
          string(5) "black"
          ["color"]=>
          string(7) "#000000"
        }
        [1]=>
        array(3) {
          ["name"]=>
          string(16) "Cyan bluish gray"
          ["slug"]=>
          string(16) "cyan-bluish-gray"
          ["color"]=>
          string(7) "#abb8c3"
        }
        [2]=>
        array(3) {
          ["name"]=>
          string(5) "White"
          ["slug"]=>
          string(5) "white"
          ["color"]=>
          string(7) "#ffffff"
        }
        [3]=>
        array(3) {
          ["name"]=>
          string(9) "Pale pink"
          ["slug"]=>
          string(9) "pale-pink"
          ["color"]=>
          string(7) "#f78da7"
        }
        [4]=>
        array(3) {
          ["name"]=>
          string(9) "Vivid red"
          ["slug"]=>
          string(9) "vivid-red"
          ["color"]=>
          string(7) "#cf2e2e"
        }
        [5]=>
        array(3) {
          ["name"]=>
          string(21) "Luminous vivid orange"
          ["slug"]=>
          string(21) "luminous-vivid-orange"
          ["color"]=>
          string(7) "#ff6900"
        }
        [6]=>
        array(3) {
          ["name"]=>
          string(20) "Luminous vivid amber"
          ["slug"]=>
          string(20) "luminous-vivid-amber"
          ["color"]=>
          string(7) "#fcb900"
        }
        [7]=>
        array(3) {
          ["name"]=>
          string(16) "Light green cyan"
          ["slug"]=>
          string(16) "light-green-cyan"
          ["color"]=>
          string(7) "#7bdcb5"
        }
        [8]=>
        array(3) {
          ["name"]=>
          string(16) "Vivid green cyan"
          ["slug"]=>
          string(16) "vivid-green-cyan"
          ["color"]=>
          string(7) "#00d084"
        }
        [9]=>
        array(3) {
          ["name"]=>
          string(14) "Pale cyan blue"
          ["slug"]=>
          string(14) "pale-cyan-blue"
          ["color"]=>
          string(7) "#8ed1fc"
        }
        [10]=>
        array(3) {
          ["name"]=>
          string(15) "Vivid cyan blue"
          ["slug"]=>
          string(15) "vivid-cyan-blue"
          ["color"]=>
          string(7) "#0693e3"
        }
        [11]=>
        array(3) {
          ["name"]=>
          string(12) "Vivid purple"
          ["slug"]=>
          string(12) "vivid-purple"
          ["color"]=>
          string(7) "#9b51e0"
        }
      }
      ["gradients"]=>
      array(12) {
        [0]=>
        array(3) {
          ["name"]=>
          string(31) "Vivid cyan blue to vivid purple"
          ["gradient"]=>
          string(65) "linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"
          ["slug"]=>
          string(31) "vivid-cyan-blue-to-vivid-purple"
        }
        [1]=>
        array(3) {
          ["name"]=>
          string(36) "Light green cyan to vivid green cyan"
          ["gradient"]=>
          string(63) "linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)"
          ["slug"]=>
          string(36) "light-green-cyan-to-vivid-green-cyan"
        }
        [2]=>
        array(3) {
          ["name"]=>
          string(45) "Luminous vivid amber to luminous vivid orange"
          ["gradient"]=>
          string(67) "linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)"
          ["slug"]=>
          string(45) "luminous-vivid-amber-to-luminous-vivid-orange"
        }
        [3]=>
        array(3) {
          ["name"]=>
          string(34) "Luminous vivid orange to vivid red"
          ["gradient"]=>
          string(64) "linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)"
          ["slug"]=>
          string(34) "luminous-vivid-orange-to-vivid-red"
        }
        [4]=>
        array(3) {
          ["name"]=>
          string(35) "Very light gray to cyan bluish gray"
          ["gradient"]=>
          string(65) "linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"
          ["slug"]=>
          string(35) "very-light-gray-to-cyan-bluish-gray"
        }
        [5]=>
        array(3) {
          ["name"]=>
          string(21) "Cool to warm spectrum"
          ["gradient"]=>
          string(144) "linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)"
          ["slug"]=>
          string(21) "cool-to-warm-spectrum"
        }
        [6]=>
        array(3) {
          ["name"]=>
          string(18) "Blush light purple"
          ["gradient"]=>
          string(65) "linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)"
          ["slug"]=>
          string(18) "blush-light-purple"
        }
        [7]=>
        array(3) {
          ["name"]=>
          string(14) "Blush bordeaux"
          ["gradient"]=>
          string(81) "linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)"
          ["slug"]=>
          string(14) "blush-bordeaux"
        }
        [8]=>
        array(3) {
          ["name"]=>
          string(13) "Luminous dusk"
          ["gradient"]=>
          string(83) "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)"
          ["slug"]=>
          string(13) "luminous-dusk"
        }
        [9]=>
        array(3) {
          ["name"]=>
          string(10) "Pale ocean"
          ["gradient"]=>
          string(85) "linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)"
          ["slug"]=>
          string(10) "pale-ocean"
        }
        [10]=>
        array(3) {
          ["name"]=>
          string(14) "Electric grass"
          ["gradient"]=>
          string(65) "linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)"
          ["slug"]=>
          string(14) "electric-grass"
        }
        [11]=>
        array(3) {
          ["name"]=>
          string(8) "Midnight"
          ["gradient"]=>
          string(60) "linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)"
          ["slug"]=>
          string(8) "midnight"
        }
      }
      ["fontSizes"]=>
      array(4) {
        [0]=>
        array(3) {
          ["name"]=>
          string(5) "Small"
          ["slug"]=>
          string(5) "small"
          ["size"]=>
          string(4) "13px"
        }
        [1]=>
        array(3) {
          ["name"]=>
          string(6) "Medium"
          ["slug"]=>
          string(6) "medium"
          ["size"]=>
          string(4) "20px"
        }
        [2]=>
        array(3) {
          ["name"]=>
          string(5) "Large"
          ["slug"]=>
          string(5) "large"
          ["size"]=>
          string(4) "36px"
        }
        [3]=>
        array(3) {
          ["name"]=>
          string(11) "Extra Large"
          ["slug"]=>
          string(7) "x-large"
          ["size"]=>
          string(4) "42px"
        }
      }
    }

    Note: The default block patterns have been cut for length.

  2. Skip to note 4 content

    Basic example

    function wp_docs_block_editor_settings( $editor_settings, $editor_context ) {
        if ( ! empty( $editor_context->post ) ) {
            $editor_settings['maxUploadFileSize'] = 12345;
        }
        return $editor_settings;
    }
    
    add_filter( 'block_editor_settings_all', 'wp_docs_block_editor_settings', 10, 2 );

You must log in before being able to contribute a note or feedback.