Skip to content

Commit 15d0788

Browse files
kaeizenbfintal
andauthored
fix (dynamic content): remove dynamic content in customizer (#3365)
* remove dynamic content in customizer * Update src/components/dynamic-content-control/index.js [skip ci] --------- Co-authored-by: Benjamin Intal <[email protected]>
1 parent 74c0af7 commit 15d0788

File tree

1 file changed

+4
-0
lines changed
  • src/components/dynamic-content-control

1 file changed

+4
-0
lines changed

src/components/dynamic-content-control/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ export const useValueWithFieldsTitle = ( value = '' ) => {
499499
const dynamicContent = <SVGDatabaseIcon />
500500

501501
export const DynamicContentButton = memo( props => {
502+
// Hide the button if inside the Customizer
503+
if ( select( 'core/customize-widgets' ) ) {
504+
return null
505+
}
502506
if ( ! isPro && ! showProNotice ) {
503507
return null
504508
}

0 commit comments

Comments
 (0)