Skip to content

Commit

Permalink
Assign registering post types and taxonomies to the 'init' hook (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
luboskmetko authored Jan 3, 2018
1 parent 74f450c commit dc7bbed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/
class DataType implements ChiselExtension {
public function extend() {
$this->registerPostTypes();
$this->registerTaxonomies();
add_action( 'init', array( $this, 'registerPostTypes' ) );
add_action( 'init', array( $this, 'registerTaxonomies' ) );
}

/**
Expand Down

0 comments on commit dc7bbed

Please sign in to comment.