Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- // add_action( 'init', [$this, 'my_custom_postypess'], 0 );
- function my_custom_postypess()
- {
- // VIDEO
- $args = array('label' => __( 'Videos'), 'description' => __( 'videoebi'),
- 'labels' => array( ),
- 'supports' => array('title','editor', 'thumbnail', 'excerpt' , ), // 'page-attributes',
- 'taxonomies' => array('category',), 'hierarchical' => true,
- 'public' => true, 'show_ui' => true, 'show_in_menu' => true,
- 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 16,
- 'menu_icon' => '', 'can_export' => true, 'has_archive' => true,
- 'exclude_from_search' => false, 'publicly_queryable'=> true, 'capability_type'=> 'post',
- );
- register_post_type( 'vvid', $args );
- // AUDIO
- $args = array
- (
- 'label' => __( 'Audios'), 'description' => __( 'audioebi'),
- 'labels' => array(),
- 'supports' => array('title','editor', 'thumbnail', 'excerpt' ),
- 'taxonomies' => array('category',), // array( 'category', 'post_tag' );
- 'hierarchical' => true,
- 'public' => true, 'show_ui' => true, 'show_in_menu' => true,
- 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 17,
- 'menu_icon' => '', 'can_export' => true, 'has_archive' => true,
- 'exclude_from_search' => false, 'publicly_queryable'=> true, 'capability_type'=> 'post',
- 'publicly_queryable' => true, 'query_var' => true, //'rewrite' => false,
- );
- global $odd;
- register_post_type( 'aaud', $args );
- // BOOK
- $args = array(
- 'label' => __( 'Wignebi'), 'description' => __( 'wignebii'),
- 'labels' => array(),
- 'supports' => array('title','editor', 'thumbnail', 'excerpt' ),
- 'taxonomies' => array('category',), 'hierarchical' => true, // array( 'category', 'post_tag' )
- 'public' => true, 'show_ui' => true, 'show_in_menu' => true,
- 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 18,
- 'menu_icon' => '', 'can_export' => true, 'has_archive' => true,
- 'exclude_from_search' => false, 'publicly_queryable'=> true, 'capability_type'=> 'post',
- );
- global $odd;
- register_post_type( 'wwig', $args );
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement