| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
defined('ABSPATH') || exit; |
| 5 |
|
| 6 |
interface Blockspare_TB_Condition_Interface |
| 7 |
{ |
| 8 |
|
| 9 |
/** |
| 10 |
* Unique slug for this condition, e.g. 'category', 'author'. |
| 11 |
* |
| 12 |
* @return string |
| 13 |
*/ |
| 14 |
public function get_slug(); |
| 15 |
|
| 16 |
/** |
| 17 |
* Human-readable label for the admin UI. |
| 18 |
* |
| 19 |
* @return string |
| 20 |
*/ |
| 21 |
public function get_label(); |
| 22 |
|
| 23 |
/** |
| 24 |
* Determines whether this condition matches the current request. |
| 25 |
* |
| 26 |
* @param array $settings Condition-specific settings, e.g. ['term_id' => 12]. |
| 27 |
* @return bool |
| 28 |
*/ |
| 29 |
public function is_match($settings); |
| 30 |
} |
| 31 |
|