<snippet>
	<content><![CDATA[
//Add custom post type (${1:actors})
function ${1:actors}_custompost_init() {
  \$labels_${1:actors} = array(
    'name' => _x('${3:Актеры}', 'post type general name'),
    'singular_name' => _x('${5:Актер}', 'post type singular name'),
    'add_new' => _x('Добавить', '${2:actor}'),
    'add_new_item' => __('Добавить ${9:актера}'),
    'edit_item' => __('Редактировать'),
    'new_item' => __('Нов${6:ый актер}'),
    'all_items' => __('Все ${4:актеры}'),
    'view_item' => __('Просмотреть страницу ${7:актера}'),
    'search_items' => __('Поиск ${10:актеров}'),
    'not_found' =>  __('Ни одно${8:го актера} не найдено'),
    'not_found_in_trash' => __('В корзине ни одно${8:го актера} не найдено'), 
    'parent_item_colon' => '',
    'menu_name' => '${3:Актеры}'

  );
  \$args = array(
    'labels' => \$labels_${1:actors},
    'public' => true,
    'publicly_queryable' => true,
    'show_ui' => true, 
    'show_in_menu' => true, 
    'query_var' => true,
    //'_builtin' => false,
    'rewrite' => array("slug" => "${1:actors}"),
    'capability_type' => 'post',
    'has_archive' => true, 
    'hierarchical' => false,
    'menu_position' => 22,
    'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', ${11:'comments', }'revisions', 'custom-fields' )
  ); 
  register_post_type('${2:actor}',\$args);
}
add_action( 'init', '${1:actors}_custompost_init' );
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>wp_registercustomposttype</tabTrigger>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<scope>text.html</scope>
	<description>Register custom post type / WP</description>
</snippet>