[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: column-block-compatibility.js
const updatingBlock = ['core/group']; wp.hooks.addFilter( 'blocks.registerBlockType', 'astra/meta/groupLayoutSettings', (settings, name) => { if (!updatingBlock.includes(name)) { return settings; } const newSettings = { ...settings, supports: { ...(settings.supports || {}), layout: { ...(settings.supports.layout || {}), allowEditing: true, allowSwitching: false, allowInheriting: true, }, __experimentalLayout: { ...(settings.supports.__experimentalLayout || {}), allowEditing: true, allowSwitching: false, allowInheriting: true, }, }, }; return newSettings; }, 20 ); wp.hooks.addFilter( 'blocks.getBlockAttributes', 'astra/groupBlockSetting/checkInheritOption', (attributes, blockType) => { if (!updatingBlock.includes(blockType.name)) { return attributes; } if (blockType.name == 'core/group' && undefined != attributes.layout && 'flex' === attributes.layout.type) { return attributes; } if (blockType.name == 'core/group' && undefined != attributes.layout && false == attributes.layout.inherit ) { return attributes; } attributes = { ...attributes, layout: { inherit: true, }, }; return attributes; } ); /** * Set "Inherit default layout" option enable by default for Group block. * * Also set "Full Width" layout by default on drag-drop for following blocks. */ wp.blocks.registerBlockVariation( 'core/group', { isDefault: true, attributes: { layout: { inherit: true, }, align: 'full' }, } ); wp.blocks.registerBlockVariation( 'core/cover', { isDefault: true, attributes: { align: 'full' }, } );
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.dijitaldukkanim.com.tr
Server IP: 104.247.168.220
PHP Version: 8.1.33
Server Software: Apache
System: Linux server.dijitaldukkanim.com.tr 4.18.0-553.105.1.el8_10.x86_64 #1 SMP Tue Feb 17 05:17:39 EST 2026 x86_64
HDD Total: 492.3 GB
HDD Free: 180.47 GB
Domains on IP: N/A (Requires external lookup)
System Features