| 1 |
<?php namespace Datafeedr\Api\Wuwei\Shortcode; |
| 2 |
|
| 3 |
/** |
| 4 |
* Interface Contract |
| 5 |
* |
| 6 |
* A shortcode represents the shortcode registered with the WordPress shortcode API. |
| 7 |
* |
| 8 |
* @link https://github.com/postmatic/elevated-comments (copyright) |
| 9 |
* |
| 10 |
* @author Carl Alexander <carlalexander@helthe.co> |
| 11 |
*/ |
| 12 |
interface Shortcode_Interface { |
| 13 |
|
| 14 |
/** |
| 15 |
* Get the tag name used by the shortcode. |
| 16 |
* |
| 17 |
* @return string |
| 18 |
*/ |
| 19 |
public static function get_name(); |
| 20 |
|
| 21 |
/** |
| 22 |
* Generate the output of the shortcode. |
| 23 |
* |
| 24 |
* @param array $attrs |
| 25 |
* @param string $content |
| 26 |
* |
| 27 |
* @return string |
| 28 |
*/ |
| 29 |
public function generate_output( $attrs, $content = '' ); |
| 30 |
} |