fb CPT videos
CPT crear videos
if ( ! function_exists('finebody_create_cpt_videos') ) { // Register Custom Post Type function finebody_create_cpt_videos() { $labels = array( 'name' => 'videos', 'singular_name' => 'video', 'menu_name' => 'Videos', 'name_admin_bar' => 'Videos', 'archives' => 'Video Archives', 'attributes' => 'Video Attributes', 'parent_item_colon' => 'Parent item:', 'all_items' => 'All videos', 'add_new_item' => 'Add New Video', 'add_new' => 'Add New', 'new_item' => 'New Video', 'edit_item' => 'Edit Video', 'update_item' => 'Update Video', 'view_item' => 'View Video', 'view_items' => 'View Videos', 'search_items' => 'Search Video', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into item', 'uploaded_to_this_item' => 'Uploaded to this item', 'items_list' => 'Items list', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Filter items list', ); $rewrite = array( 'slug' => 'video', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => 'video', 'description' => 'CPT of videos', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-format-video', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'finebody-videos', $args ); } add_action( 'init', 'finebody_create_cpt_videos', 0 ); }