Skip to content

Commit

Permalink
Merge pull request #112 from thrijith/GH-109-taxonomy
Browse files Browse the repository at this point in the history
fix wpcs in taxonomy generation
  • Loading branch information
gitlost authored Jan 11, 2018
2 parents 10b38c5 + bcb2e71 commit 71c49e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/taxonomy.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'manage_terms' => 'edit_posts',
'edit_terms' => 'edit_posts',
'delete_terms' => 'edit_posts',
'assign_terms' => 'edit_posts'
'assign_terms' => 'edit_posts',
),
'labels' => array(
'name' => __( '{{label_plural_ucfirst}}', '{{textdomain}}' ),
Expand Down
10 changes: 10 additions & 0 deletions templates/taxonomy_extended.mustache
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<?php

/**
* Registers the `{{machine_name}}` taxonomy,
* for use with {{post_types}}.
*/
function {{machine_name}}_init() {
{{output}}
}
add_action( 'init', '{{machine_name}}_init' );

/**
* Sets the post updated messages for the `{{machine_name}}` taxonomy.
*
* @param array $messages Post updated messages.
* @return array Messages for the `{{machine_name}}` taxonomy.
*/
function {{machine_name}}_updated_messages( $messages ) {
$messages['{{slug}}'] = array(
Expand Down

0 comments on commit 71c49e9

Please sign in to comment.