add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n"
msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 2.0.3\n" "Language: ja_JP\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" msgid "Products" msgstr "製品投稿" msgid "Product" msgstr "製品" msgid "Add New" msgstr "新規作成" msgid "Add New Product" msgstr "新規製品作成" msgid "Edit Product" msgstr "製品編集" msgid "New Product" msgstr "新規製品" msgid "All Products" msgstr "全製品" msgid "View Product" msgstr "製品表示" msgid "Search Products" msgstr "製品検" msgid "No products found" msgstr "製品を見つからない" msgid "No products found in the Trash" msgstr "ゴミ箱から製品を見つからない"
// 翻訳ファイルをロード load_theme_textdomain("product", get_stylesheet_directory() . '/languages'); // カスタム投稿タイプ登録 add_action( 'init', 'my_custom_post_product' );
// プラグインファイルの先頭に置きます // ABSPATH 定数が定義されていない場合、プラグインが有効かされていない defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */
<?php /* Plugin Name: Product Post Type Plugin URI: http://old-pine.net Description: Product of the custom post type which created with a new custom plugin Version: 1.0 Author: Old-pine Author URI: http://old-pine.net/ License: GPLv2 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); load_plugin_textdomain("product",false , 'product-post-type/languages'); add_action( 'init', 'my_custom_post_product' ); function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name', 'product' ), 'singular_name' => _x( 'Product', 'post type singular name', 'product' ), 'add_new' => _x( 'Add New', 'post type singular name', 'product' ), 'add_new_item' => __( 'Add New Product', 'product' ), 'edit_item' => __( 'Edit Product', 'product' ), 'new_item' => __( 'New Product', 'product' ), 'all_items' => __( 'All Products', 'product' ), 'view_item' => __( 'View Product', 'product' ), 'search_items' => __( 'Search Products', 'product' ), 'not_found' => __( 'No products found', 'product' ), 'not_found_in_trash' => __( 'No products found in the Trash', 'product' ), 'parent_item_colon' => '', 'menu_name' => __('Products', 'product'), ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); }
load_plugin_textdomain("product",false , 'product-post-type/languages');
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'view_item' => __( 'View Product' ), 'search_items' => __( 'Search Products' ), 'not_found' => __( 'No products found' ), 'not_found_in_trash' => __( 'No products found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Products' ); $args = array( 'labels' => $labels, 'description' => 'Holds our products and product specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' );