| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Frontend\Schema |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! interface_exists( 'WPSEO_Graph_Piece' ) ) { |
| 9 |
/** |
| 10 |
* An interface for registering Schema Graph Pieces. |
| 11 |
* |
| 12 |
* @since 10.2 |
| 13 |
* @deprecated 14.0 |
| 14 |
*/ |
| 15 |
interface WPSEO_Graph_Piece { |
| 16 |
|
| 17 |
/** |
| 18 |
* Add your piece of the graph. |
| 19 |
* |
| 20 |
* @return array|bool A graph piece on success, false on failure. |
| 21 |
*/ |
| 22 |
public function generate(); |
| 23 |
|
| 24 |
/** |
| 25 |
* Determines whether or not a piece should be added to the graph. |
| 26 |
* |
| 27 |
* @return bool |
| 28 |
*/ |
| 29 |
public function is_needed(); |
| 30 |
} |
| 31 |
} |
| 32 |
|