Skip to content

Commit

Permalink
Merge pull request #15 from alleyinteractive/init-post-type
Browse files Browse the repository at this point in the history
Register post type on init
  • Loading branch information
srtfisher authored Dec 7, 2022
2 parents 04fd0b1 + 0a4feba commit 51cd970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to Cache Collector will be documented in this file.

## 0.1.1 - 2022-12-07

- Fix bug with post type registration being called before `init`.

## 0.1.0 - 2022-12-02

- Initial release of the plugin.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Instantiate the plugin.
*/
function cache_collector_setup() {
Cache_Collector::register_post_type();
add_action( 'init', [ Cache_Collector::class, 'register_post_type' ] );

// Register the post/term purge actions.
add_action( 'clean_post_cache', [ Cache_Collector::class, 'on_post_update' ] );
Expand Down

0 comments on commit 51cd970

Please sign in to comment.