acf/settings/enable_post_types


目录

Description

Used to disable the custom post type and taxonomies feature.

Changelog

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' );

版本号 #1
由 壳壳虫 创建于 2026-08-29 15:44:03 UTC
由 壳壳虫 更新于 2026-08-29 15:44:03 UTC