| 1 | <?php |
||
| 11 | class Wordlift_Page_Service { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Hook to wp_head and create a response buffer. |
||
| 15 | * |
||
| 16 | * @since 3.5.3 |
||
| 17 | */ |
||
| 18 | public function wp_head() { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Hook to wp_footer and flush the response buffer. |
||
| 27 | * |
||
| 28 | * @since 3.5.3 |
||
| 29 | */ |
||
| 30 | public function wp_footer() { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Handle the buffer, by inserting schema.org microdata markup with itemscope/itemtype/itemprop. |
||
| 38 | * |
||
| 39 | * @since 3.5.3 |
||
| 40 | * |
||
| 41 | * @param string $buffer The output buffer. |
||
| 42 | * |
||
| 43 | * @return string The processed output buffer. |
||
| 44 | */ |
||
| 45 | public function handler( $buffer ) { |
||
| 62 | |||
| 63 | } |
||
| 64 |