Skip to content

Commit

Permalink
Move hooks registration to a separate method
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobattocchi committed Oct 8, 2024
1 parent a4f23a5 commit 898e662
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/duplicate-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ public function __construct() {
$this->revisions_migrator = new Revisions_Migrator();
$this->watchers = new Watchers( $this->permissions_helper );

$this->register_hooks();
}

/**
* Registers the hooks.
*
* @return void
*/
protected function register_hooks() {
$this->post_republisher->register_hooks();
$this->revisions_migrator->register_hooks();
}
Expand Down

0 comments on commit 898e662

Please sign in to comment.