[ 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 editMembersBlock from './members/edit'; 17 18 registerBlockType( 'bp/members', { 19 title: __( 'Members', 'buddypress' ), 20 description: __( 'BuddyPress Members.', 'buddypress' ), 21 icon: { 22 background: '#fff', 23 foreground: '#d84800', 24 src: '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 displayMentionSlug: { 40 type: 'boolean', 41 default: true, 42 }, 43 displayUserName: { 44 type: 'boolean', 45 default: true, 46 }, 47 extraData: { 48 type: 'string', 49 default: 'none', 50 }, 51 layoutPreference: { 52 type: 'string', 53 default: 'list', 54 }, 55 columns: { 56 type: 'number', 57 default: 2 58 }, 59 }, 60 edit: editMembersBlock, 61 } );
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 |