Skip to content
Snippets Groups Projects

1.x

Merged 1.x
11 unresolved threads
Merged Bartek Jaskulski requested to merge 1.x into review
11 unresolved threads
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
+ 19
0
<?php
declare( strict_types=1 );
namespace WPDesk\Init\HookDriver;
/**
* Hook can be attached to WordPress in different ways, and this
* interface decouples possible methods from our initialization system,
* to make it more flexible.
*
* Even though hook registration is sort of the main purpose of this
* library, it's better to encapsulate hook registration in a separate
* class, so that it can be easily replaced with a different
* implementation and composition.
*/
interface HookDriver {
public function register_hooks(): void;
}
Loading