Title: Programmatically disable plugin settings
Last modified: April 29, 2019

---

# Programmatically disable plugin settings

 *  Resolved [wpublish2](https://wordpress.org/support/users/wpublish2/)
 * (@wpublish2)
 * [7 years ago](https://wordpress.org/support/topic/programmatically-disable-plugin-settings/)
 * I’m developing a WordPress theme. Can I programmatically disable the custom fields
   for all post types, except for a specific custom post type? I need to perform
   it right after the plugin is activated. There is a filter/action to do it?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years ago](https://wordpress.org/support/topic/programmatically-disable-plugin-settings/#post-11478293)
 * It probably is possible to do with WP core functionality, but is not something
   that this plugin can do (i.e., not a current feature).

Viewing 1 replies (of 1 total)

The topic ‘Programmatically disable plugin settings’ is closed to new replies.

 * ![](https://ps.w.org/custom-fields-gutenberg/assets/icon-256x256.png?rev=1924874)
 * [Custom Fields for Gutenberg](https://wordpress.org/plugins/custom-fields-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-fields-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-fields-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-fields-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-fields-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-fields-gutenberg/reviews/)

## Tags

 * [plugin settings](https://wordpress.org/support/topic-tag/plugin-settings/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/programmatically-disable-plugin-settings/#post-11478293)
 * Status: resolved