---
description: https://developer.wordpress.org/reference/hooks/customize_register/
---

# \[CUSTOMIZE] remove\_panel, remove\_section (ok)

![](https://2370029328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LWPtKFbhw0XehxVuoiZ%2Fuploads%2FV09rGvCSNj8tUG88ObvP%2FScreenshot_1.png?alt=media\&token=abe9b92b-6d5a-466f-88bd-a349d1451037)

![](https://2370029328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LWPtKFbhw0XehxVuoiZ%2Fuploads%2FPR4887BHZXehWfigsa8G%2FScreenshot_2.png?alt=media\&token=2ee4e08d-3013-4473-b903-d5db1294cbe1)

![](https://2370029328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LWPtKFbhw0XehxVuoiZ%2Fuploads%2FJAndpUQ2MMeyXBqRJudg%2FScreenshot_3.png?alt=media\&token=de989407-537a-40e1-9e0b-95fe48cccf0c)

```
function wpdocs_deregister_section( $wp_customize ) {
  $wp_customize->remove_section( 'infinite-photography-reset-options' );
  $wp_customize->remove_section( 'infinite-photography-imp-links' );
  $wp_customize->remove_panel( 'infinite-photography-wc-panel' );
  $wp_customize->remove_panel( 'infinite-photography-feature-panel' );
}
add_action( 'customize_register', 'wpdocs_deregister_section', 999 );
=== a ===
```
