Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Stefan Haas

Completely ACP disable for specific post types

Hey ACP team,

is there any hook to completely disable ACP for specific post types?

For example, i don’t want the plugin to be loaded on ACF-Pro post types (field groups, post types, taxonomies, options pages), but I noticed that ACP is running on every single admin list view by default and i couldn’t find any setting or hook in the documentation to completely disable it for a specific post type.

I already tried to use
add_filter( 'ac/post_types', 'acp_disable_support_for_pages' );
but this seems to only remove the post type from the select field within the ACP settings.


10 months, 1 week ago
Stefan Haas

To follow up with some more information:

I have now tested it with a completely new installation. As soon as I activate admin columns pro, all its css and js files are loaded in every single admin list view. I wouldn’t have noticed it at first if it didn’t also load and display all bulk-edit / – delete and export functions in the list views.

Especially for admin lists like ACF-Pro, however, this is absolutely not necessary and rather counterproductive.

By the way, I had forgotten to mention earlier that I had also tried the two filters “ac/list_screen/is_active” and “ac/list_screen/key/is_active”, but unfortunately without success.

10 months, 1 week ago
Stefan van den Dungen Gronovius

Hi Stefan,

Thanks for letting me know.
The hook you mentioned add_filter( ‘ac/post_types’, ‘acp_disable_support_for_pages’ ); will work again in version 6.3.

You should also be able to use the other hooks you mentioned to completely disable a list screen, but these hooks are also added since 6.3 wich is not yet released and will be release in the upcoming week.

10 months, 1 week ago

You must be logged in to reply to this topic.