[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 /** 2 * WordPress dependencies. 3 */ 4 const { 5 blocks: { 6 registerBlockType, 7 }, 8 i18n: { 9 __, 10 }, 11 } = wp; 12 13 /** 14 * Internal dependencies. 15 */ 16 import editGroupsBlock from './groups/edit'; 17 18 registerBlockType( 'bp/groups', { 19 title: __( 'Groups', 'buddypress' ), 20 description: __( 'BuddyPress Groups.', 'buddypress' ), 21 icon: { 22 background: '#fff', 23 foreground: '#d84800', 24 src: 'buddicons-groups', 25 }, 26 category: 'buddypress', 27 attributes: { 28 itemIDs: { 29 type: 'array', 30 items: { 31 type: 'integer', 32 }, 33 default: [], 34 }, 35 avatarSize: { 36 type: 'string', 37 default: 'full', 38 }, 39 displayGroupName: { 40 type: 'boolean', 41 default: true, 42 }, 43 extraInfo: { 44 type: 'string', 45 default: 'none', 46 }, 47 layoutPreference: { 48 type: 'string', 49 default: 'list', 50 }, 51 columns: { 52 type: 'number', 53 default: 2 54 }, 55 }, 56 edit: editGroupsBlock, 57 } );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri May 5 01:01:24 2023 | Cross-referenced by PHPXref 0.7.1 |