diff --git a/packages/components/src/panel/body.js b/packages/components/src/panel/body.js index 2c297223a604a5..376adb8aa53fa2 100644 --- a/packages/components/src/panel/body.js +++ b/packages/components/src/panel/body.js @@ -11,6 +11,7 @@ import mergeRefs from 'react-merge-refs'; import { useReducedMotion } from '@wordpress/compose'; import { forwardRef, useRef } from '@wordpress/element'; import { chevronUp, chevronDown } from '@wordpress/icons'; +import { applyFilters } from '@wordpress/hooks'; /** * Internal dependencies @@ -39,6 +40,13 @@ export function PanelBody( onToggle( next ); }; + children = applyFilters( + 'editor.PanelBody.children', + children, + className, + isOpened + ); + // Runs after initial render useUpdateEffect( () => { if ( isOpened ) {