Visual Composer Grid support for new post types

If you are needing Visual Composer Grid support and they are telling you that you need to change when your post types are registered, the following snippet should work

remove_action( 'init', 'cptui_create_custom_post_types', 10 );
add_action( 'init', 'cptui_create_custom_post_types', 1 );

You will also need to make sure that the intended post types are set to be public, so that they can be properly queried for within Visual Composer.

Visual Composer Grid requires post types to be registered on a very high priority, and higher than what we register them at by default. Adding the snippet of code above to your theme's functions.php file should remove our default callback priority and re-add the same callback at the much higher priority level so that it works accurately with Visual Composer Grid.