|
@@ 374-401 (lines=28) @@
|
| 371 |
|
* |
| 372 |
|
* @since 1.0.0 |
| 373 |
|
*/ |
| 374 |
|
public function register_channel() { |
| 375 |
|
|
| 376 |
|
$labels = array( |
| 377 |
|
'name' => _x( 'Channels', 'taxonomy general name', 'remote-notifications' ), |
| 378 |
|
'singular_name' => _x( 'Channel', 'taxonomy singular name', 'remote-notifications' ), |
| 379 |
|
'search_items' => __( 'Search Channels', 'remote-notifications' ), |
| 380 |
|
'all_items' => __( 'All Channels', 'remote-notifications' ), |
| 381 |
|
'parent_item' => __( 'Parent Channel', 'remote-notifications' ), |
| 382 |
|
'parent_item_colon' => __( 'Parent Channel:', 'remote-notifications' ), |
| 383 |
|
'edit_item' => __( 'Edit Channel', 'remote-notifications' ), |
| 384 |
|
'update_item' => __( 'Update Channel', 'remote-notifications' ), |
| 385 |
|
'add_new_item' => __( 'Add New Channel', 'remote-notifications' ), |
| 386 |
|
'new_item_name' => __( 'New Channel Name', 'remote-notifications' ), |
| 387 |
|
'menu_name' => __( 'Channels', 'remote-notifications' ), |
| 388 |
|
); |
| 389 |
|
|
| 390 |
|
$args = array( |
| 391 |
|
'hierarchical' => true, |
| 392 |
|
'labels' => $labels, |
| 393 |
|
'show_ui' => true, |
| 394 |
|
'show_admin_column' => true, |
| 395 |
|
'query_var' => true, |
| 396 |
|
'rewrite' => array( 'slug' => 'channel' ), |
| 397 |
|
); |
| 398 |
|
|
| 399 |
|
register_taxonomy( 'rn-channel', array( 'notification' ), $args ); |
| 400 |
|
|
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
/** |
| 404 |
|
* Register the post type taxonomy |
|
@@ 411-438 (lines=28) @@
|
| 408 |
|
* |
| 409 |
|
* @since 1.0.0 |
| 410 |
|
*/ |
| 411 |
|
public function register_post_type() { |
| 412 |
|
|
| 413 |
|
$labels = array( |
| 414 |
|
'name' => _x( 'Post Types Limitation', 'taxonomy general name', 'remote-notifications' ), |
| 415 |
|
'singular_name' => _x( 'Post Type', 'taxonomy singular name', 'remote-notifications' ), |
| 416 |
|
'search_items' => __( 'Search Post Types', 'remote-notifications' ), |
| 417 |
|
'all_items' => __( 'All Post Types', 'remote-notifications' ), |
| 418 |
|
'parent_item' => __( 'Parent Post Type', 'remote-notifications' ), |
| 419 |
|
'parent_item_colon' => __( 'Parent Post Type:', 'remote-notifications' ), |
| 420 |
|
'edit_item' => __( 'Edit Post Type', 'remote-notifications' ), |
| 421 |
|
'update_item' => __( 'Update Post Type', 'remote-notifications' ), |
| 422 |
|
'add_new_item' => __( 'Add New Post Type', 'remote-notifications' ), |
| 423 |
|
'new_item_name' => __( 'New Post Type Name', 'remote-notifications' ), |
| 424 |
|
'menu_name' => __( 'Post Types', 'remote-notifications' ), |
| 425 |
|
); |
| 426 |
|
|
| 427 |
|
$args = array( |
| 428 |
|
'hierarchical' => false, |
| 429 |
|
'labels' => $labels, |
| 430 |
|
'show_ui' => true, |
| 431 |
|
'show_admin_column' => true, |
| 432 |
|
'query_var' => true, |
| 433 |
|
'rewrite' => array( 'slug' => 'post-type' ), |
| 434 |
|
); |
| 435 |
|
|
| 436 |
|
register_taxonomy( 'rn-pt', array( 'notification' ), $args ); |
| 437 |
|
|
| 438 |
|
} |
| 439 |
|
|
| 440 |
|
} |