_x( 'Amazon Ratings', 'Post Type General Name', 'affiliate-rating-for-amazon' ), 'singular_name' => _x( 'Amazon Rating', 'Post Type Singular Name', 'affiliate-rating-for-amazon' ), 'menu_name' => __( 'Amazon Ratings', 'affiliate-rating-for-amazon' ), 'name_admin:_bar' => __( 'Amazon Ratings', 'affiliate-rating-for-amazon' ), 'parent_item_colon' => __( 'Parent Item:', 'affiliate-rating-for-amazon' ), 'all_items' => __( 'All Items', 'affiliate-rating-for-amazon' ), 'add_new_item' => __( 'Add New Item', 'affiliate-rating-for-amazon' ), 'add_new' => __( 'Add New', 'affiliate-rating-for-amazon' ), 'new_item' => __( 'New Item', 'affiliate-rating-for-amazon'), 'edit_item' => __( 'Edit Item', 'affiliate-rating-for-amazon'), 'update_item' => __( 'Update Item', 'affiliate-rating-for-amazon'), 'view_item' => __( 'View Item', 'affiliate-rating-for-amazon'), 'search_item' => __( 'Search Item', 'affiliate-rating-for-amazon'), 'not_found' => __( 'Not Found', 'affiliate-rating-for-amazon'), 'not_found_in_trash' => __( 'Not found in trash', 'affiliate-rating-for-amazon'), 'items_list' => __( 'Items list', 'affiliate-rating-for-amazon'), 'items_list_navigation' => __( 'Items list navigation', 'affiliate-rating-for-amazon'), 'filter_items_list' => __( 'Filter Items list', 'affiliate-rating-for-amazon'), ); $args = array( 'label' => __( 'Amazon Rating', 'affiliate-rating-for-amazon'), 'labels' => $labels, 'supports' => array( ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, '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' => 'post', ); register_post_type( 'aa_rating', $args ); } add_action( 'init', 'aa_rating_add_post_type', 0 ); //Hinzufügen der Meta-Box add_action( 'add_meta_boxes', 'aa_rating_add_custom_meta_box' ); function aa_rating_add_custom_meta_box() { add_meta_box( 'aa_rating_editor', __( 'Amazon Rating', 'affiliate-rating-for-amazon' ), 'aa_rating_editor', 'aa_rating', 'advanced', 'high' ); } //Inhalt und Darstellung der Meta-Box function aa_rating_editor( $post ) { wp_nonce_field( 'aa_rating_save_meta_box_data', 'aa_rating_save_meta_box_nonce' ); ?>
| > | |