Support

Account

Home Forums Bug Reports unsetting default post type disables advanced custom fields

Helping

unsetting default post type disables advanced custom fields

  • Hi there! I have the following problem: I want to completely disable the default post types of my wordpress install, like this on the “init” hook:

    add_action("init", "b09_unset_post_types");
    function b09_unset_post_types() {
    
    	global $wp_post_types;
    
    	unset( $wp_post_types['post'] );
    		
    	unset( $wp_post_types['page'] ); 
    }

    Now if I do this, everything works fine, except that if I go to the “Add new Fieldgroup” (post-new.php?post_type=acf-field-group) section it says the following: “You do not have sufficient permissions to access this page.” This seems to me like a bug, since all my other custom post types still work as expected.

  • I just checked it with ACF 4.3.8, the bug also exists there.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘unsetting default post type disables advanced custom fields’ is closed to new replies.