跳转到主要内容

acf/settings/enable_post_types

Description

Used to disable the custom post type and taxonomies feature.

Changelog

  • Added in version 6.1.

Example

This example demonstrates how to disable custom post type and taxonomies registration feature, if you are registering with code or another plugin.

functions.php

<?php
add_filter( 'acf/settings/enable_post_types', '__return_false' );