[ 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 editDynamicActivitiesBlock from './latest-activities/edit'; 17 import transforms from './latest-activities/transforms'; 18 19 registerBlockType( 'bp/latest-activities', { 20 title: __( 'Latest Activities', 'buddypress' ), 21 description: __( 'Display the latest updates of the post author (when used into a page or post), of the displayed user (when viewing their profile) or of your community.', 'buddypress' ), 22 icon: { 23 background: '#fff', 24 foreground: '#d84800', 25 src: 'buddicons-activity', 26 }, 27 category: 'buddypress', 28 attributes: { 29 title: { 30 type: 'string', 31 default: __( 'Latest updates', 'buddypress' ), 32 }, 33 maxActivities: { 34 type: 'number', 35 default: 5 36 }, 37 type: { 38 type: 'array', 39 default: ['activity_update'], 40 }, 41 postId: { 42 type: 'number', 43 default: 0, 44 }, 45 }, 46 edit: editDynamicActivitiesBlock, 47 transforms: transforms, 48 } );
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 |