| 1 |
<?php |
| 2 |
/** |
| 3 |
* Class Optml_compatibility. |
| 4 |
*/ |
| 5 |
abstract class Optml_compatibility { |
| 6 |
/** |
| 7 |
* Register compatibility actions/filters. |
| 8 |
*/ |
| 9 |
abstract function register(); |
| 10 |
|
| 11 |
/** |
| 12 |
* Should we load the compatibility? |
| 13 |
* |
| 14 |
* @return bool Compatiblity |
| 15 |
*/ |
| 16 |
abstract function should_load(); |
| 17 |
/** |
| 18 |
* Should we early load the compatibility? |
| 19 |
* |
| 20 |
* @return bool Whether to load the compatibility or not. |
| 21 |
*/ |
| 22 |
public function should_load_early() { |
| 23 |
return false; |
| 24 |
} |
| 25 |
} |
| 26 |
|