I am using All in One SEO Version 4.2.7.1 I just added a custom post type using below code-
function RK_FAQs_register_post_types() {
// Set UI labels for the recipes post type.
$labels = array(
'name' => _x( 'FAQs', 'Post Type General Name', 'hot-recipes' ),
'singular_name' => _x( 'FAQ', 'Post Type Singular Name', 'hot-recipes' ),
'menu_name' => __( 'RK FAQs', 'hot-recipes' ),
'parent_item_colon' => __( 'Parent FAQ', 'hot-recipes' ),
'all_items' => __( 'All FAQs', 'hot-recipes' ),
'view_item' => __( 'View FAQ', 'hot-recipes' ),
'add_new_item' => __( 'Add New FAQ', 'hot-recipes' ),
'add_new' => __( 'Add New', 'hot-recipes' ),
'edit_item' => __( 'Edit FAQ', 'hot-recipes' ),
'update_item' => __( 'Update FAQ', 'hot-recipes' ),
'search_items' => __( 'Search FAQ', 'hot-recipes' ),
'not_found' => __( 'Not Found', 'hot-recipes' ),
'not_found_in_trash' => __( 'Not found in Trash', 'hot-recipes' ),
);
// Set other arguments for the recipes post type.
$args = array(
'label' => __( 'rk_faqs', 'hot-recipes' ),
'description' => __( 'FAQs.', 'hot-recipes' ),
'labels' => $labels,
'supports' => array(
'title',
'editor',
),
'taxonomies' => array(),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
'show_in_rest' => true,
);
// Registes the recipes post type.
register_post_type( 'rk_faqs', $args );
}
add_action( 'init', 'RK_FAQs_register_post_types' );
Now when I am adding new post in admin panel, its loading and loading and then page dead. If I disable plugin, then all is Good.
There is no option found in plugin where I can disable it for custom post type.
Anyone has solution to disable it?