1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00
wp-theme/functions/cpt-presscoverage.php

32 lines
696 B
PHP
Raw Normal View History

<?php
function ascribe_register_cpt_press() {
$labels = array(
"name" => "Press Coverage",
"singular_name" => "Press Coverage",
);
$args = array(
"labels" => $labels,
"description" => "",
"public" => true,
"show_ui" => true,
"show_in_rest" => false,
"has_archive" => false,
"show_in_menu" => true,
"exclude_from_search" => false,
"capability_type" => "post",
"map_meta_cap" => true,
"hierarchical" => false,
"rewrite" => array( "slug" => "presscoverage", "with_front" => true ),
"query_var" => true,
2016-03-08 10:47:40 +01:00
"menu_icon" => 'dashicons-media-document'
);
register_post_type( "presscoverage", $args );
}
add_action( 'init', 'ascribe_register_cpt_press' );
?>